Package org.jjazz.midi.api.keymap
Class KeyMapGSGM2
java.lang.Object
org.jjazz.midi.api.keymap.KeyMapGSGM2
- All Implemented Interfaces:
Serializable
,DrumKit.KeyMap
The GS/GM2 Midi Drum Map.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyMapGSGM2
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
-
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.
-
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:
-
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
-
getRange
Description copied from interface:DrumKit.KeyMap
The key getRange of this KeyMap.- Specified by:
getRange
in interfaceDrumKit.KeyMap
- Returns:
-
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.
-