Package org.jjazz.midi.api.synths
Class VoidInstrument
java.lang.Object
org.jjazz.midi.api.Instrument
org.jjazz.midi.api.synths.GM1Instrument
org.jjazz.midi.api.synths.VoidInstrument
- All Implemented Interfaces:
Serializable
A special "void" instrument: no bank change or program change is associated to this instrument.
When used, the system should not send any Midi bank select or program change messages for this instrument.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetBank()
A user-friendly string describing the instrument with its synth (or bank if its a standard bank).getMidiMessages
(int channel) Overridden : return an empty array.void
setBank
(InstrumentBank<?> bank) Overridden to make sure specified bank is the GM1Bank.Methods inherited from class org.jjazz.midi.api.synths.GM1Instrument
getFamily, getSubstitute
Methods inherited from class org.jjazz.midi.api.Instrument
getCopy, getDrumKit, getMidiAddress, getPatchName, isDrumKit, loadFromString, saveAsString, setSubstitute, toLongString, toString
-
Method Details
-
setBank
Description copied from class:GM1Instrument
Overridden to make sure specified bank is the GM1Bank.- Overrides:
setBank
in classGM1Instrument
- Parameters:
bank
- A non null value, the InstrumentBank this Instrument belongs to, e.g. GM1Bank.
-
getBank
- Overrides:
getBank
in classInstrument
- Returns:
- Can be null.
-
getFullName
Description copied from class:Instrument
A user-friendly string describing the instrument with its synth (or bank if its a standard bank).Examples: "GM: Acoustic Piano", "MOXF: JP Strings"
- Overrides:
getFullName
in classInstrument
- Returns:
-
getMidiMessages
Overridden : return an empty array.- Overrides:
getMidiMessages
in classInstrument
- Returns:
-