Package org.jjazz.midi.api
Class DrumKit
java.lang.Object
org.jjazz.midi.api.DrumKit
- All Implemented Interfaces:
Serializable
The main parameters of a drum kit instrument: a drum/key map and its ambiance type.
This is an immutable class.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Defines a key map for a drumkit: associate a percussion name to a note pitch.static enum
Subset of instruments (pitches) of a in a KeyMap.static enum
The main ambience types based on GM2 standard. -
Constructor Summary
ConstructorDescriptionDrumKit()
Create a DrumKit with type=STANDARD and keyMap=GMDrumKit
(DrumKit.Type type, DrumKit.KeyMap map) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getSubsetPitches
(DrumKit.Subset... subsets) Get a map which provide the subset corresponding to a pitch for this DrumKit.getType()
int
hashCode()
toString()
-
Constructor Details
-
DrumKit
public DrumKit()Create a DrumKit with type=STANDARD and keyMap=GM -
DrumKit
-
-
Method Details
-
getType
- Returns:
- the type
-
getKeyMap
- Returns:
- the map
-
getSubsetPitches
Get a map which provide the subset corresponding to a pitch for this DrumKit.- Parameters:
subsets
- Limit the map values to these subsets only. If no value specified, use all the possible Subsets values.- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-