Package org.jjazz.midi.api.keymap
Class KeyMapXG
java.lang.Object
org.jjazz.midi.api.keymap.KeyMapXG
- All Implemented Interfaces:
Serializable
,DrumKit.KeyMap
The Yamaha XG standard Drum Map.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyMapXG
int
The pitch corresponding to the note name.getKeyName
(int pitch) The isntrument name, eg "Kick" for the given key.getKeys
(DrumKit.Subset... subsets) Get the notes of the given subset(s).getName()
The name of the DrumKitKeyMap.getRange()
The key getRange of this KeyMap.boolean
isContaining
(DrumKit.KeyMap otherKeyMap) True if this KeyMap contains otherKeyMap.toString()
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getInstance
-
getName
Description copied from interface:DrumKit.KeyMap
The name of the DrumKitKeyMap.- Specified by:
getName
in interfaceDrumKit.KeyMap
- Returns:
-
isContaining
Description copied from interface:DrumKit.KeyMap
True if this KeyMap contains otherKeyMap.E.g. the GM2 KeyMap contains the GM keymap (but not the other way around): a GM-keymap-based rhythm can be played on a GM2-keymap-based drums instrument. Should return true if this keymap==otherKeyMap.
- Specified by:
isContaining
in interfaceDrumKit.KeyMap
- Returns:
-
getRange
Description copied from interface:DrumKit.KeyMap
The key getRange of this KeyMap.- Specified by:
getRange
in interfaceDrumKit.KeyMap
- Returns:
-
getKeyName
Description copied from interface:DrumKit.KeyMap
The isntrument name, eg "Kick" for the given key.- Specified by:
getKeyName
in interfaceDrumKit.KeyMap
- Returns:
- Can be null if pitch is not used by this DrumKitKeyMap.
-
toString
-
getKey
Description copied from interface:DrumKit.KeyMap
The pitch corresponding to the note name.- Specified by:
getKey
in interfaceDrumKit.KeyMap
- Returns:
- -1 if noteName is not used by this DrumKitKeyMap.
-
getKeys
Description copied from interface:DrumKit.KeyMap
Get the notes of the given subset(s).- Specified by:
getKeys
in interfaceDrumKit.KeyMap
- Returns:
- Can be an empty list.
-