Package org.jjazz.midi.api.synths
Class GSDrumsInstrument
java.lang.Object
org.jjazz.midi.api.Instrument
org.jjazz.midi.api.synths.GSDrumsInstrument
- All Implemented Interfaces:
Serializable
A special class for GS drums instruments.
GS expects drums channel only on channel 10. To set a drums channel on other channels, SysEx messages must be sent.
- See Also:
-
Constructor Summary
ConstructorDescriptionGSDrumsInstrument
(String patchName, InstrumentBank<?> bank, MidiAddress ma, DrumKit kit, GM1Instrument substitute) -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
getMidiMessages
(int channel) Overridden to use GS SysEx messages to enable Drums on any channel.Methods inherited from class org.jjazz.midi.api.Instrument
getBank, getDrumKit, getFullName, getMidiAddress, getPatchName, getSubstitute, isDrumKit, loadFromString, saveAsString, setBank, setSubstitute, toLongString, toString
-
Constructor Details
-
GSDrumsInstrument
public GSDrumsInstrument(String patchName, InstrumentBank<?> bank, MidiAddress ma, DrumKit kit, GM1Instrument substitute) - Parameters:
patchName
-bank
-ma
- Must have BankSelectMethod set to PC_ONLYkit
-substitute
-
-
-
Method Details
-
getCopy
- Overrides:
getCopy
in classInstrument
-
getMidiMessages
Overridden to use GS SysEx messages to enable Drums on any channel.- Overrides:
getMidiMessages
in classInstrument
- Parameters:
channel
-- Returns:
-