Class DrumKit

java.lang.Object
org.jjazz.midi.api.DrumKit
All Implemented Interfaces:
Serializable

public class DrumKit extends Object implements Serializable
The main parameters of a drum kit instrument: a drum/key map and its ambiance type.

This is an immutable class.

See Also:
  • Constructor Details

    • DrumKit

      public DrumKit()
      Create a DrumKit with type=STANDARD and keyMap=GM
    • DrumKit

      public DrumKit(DrumKit.Type type, DrumKit.KeyMap map)
  • Method Details

    • getType

      public DrumKit.Type getType()
      Returns:
      the type
    • getKeyMap

      public DrumKit.KeyMap getKeyMap()
      Returns:
      the map
    • getSubsetPitches

      public Map<Integer,DrumKit.Subset> getSubsetPitches(DrumKit.Subset... subsets)
      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

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object