Package org.jjazz.midi.api.synths
Class GSInstrument
java.lang.Object
org.jjazz.midi.api.Instrument
org.jjazz.midi.api.synths.GSInstrument
- All Implemented Interfaces:
Serializable
A special class for GS instruments.
Because GSDrumsInstruments send SysEx to turn channel into drums mode, normal GS Instruments must also do the same to make sure channel is in normal mode (if channel was previously used in drums mode).
- See Also:
-
Constructor Summary
ConstructorDescriptionGSInstrument
(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 turn channel in a normal mode.Methods inherited from class org.jjazz.midi.api.Instrument
getBank, getDrumKit, getFullName, getMidiAddress, getPatchName, getSubstitute, isDrumKit, loadFromString, saveAsString, setBank, setSubstitute, toLongString, toString
-
Constructor Details
-
GSInstrument
public GSInstrument(String patchName, InstrumentBank<?> bank, MidiAddress ma, DrumKit kit, GM1Instrument substitute) - Parameters:
patchName
-bank
-ma
- Must have BankSelectMethod set to MSB_ONLYkit
-substitute
-
-
-
Method Details
-
getCopy
- Overrides:
getCopy
in classInstrument
-
getMidiMessages
Overridden to use GS SysEx messages to turn channel in a normal mode.- Overrides:
getMidiMessages
in classInstrument
- Parameters:
channel
-- Returns:
-