Package org.jjazz.midi.api.synths
Class GM1Bank
General Midi 1 bank.
Instance should be obtained from the StdSynth.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final MidiAddress.BankSelectMethod
static final int
static final String
-
Method Summary
Modifier and TypeMethodDescriptionReturn a hard-coded default GM1Instrument for the specified GM family.guessInstrument
(String patchName) Try to guess from patchName the equivalent GM1 Instrument.boolean
guessIsDrums
(String patchName) Try to guess if patchName represents a drums/percussion instrument.static boolean
isGM1Compatible
(InstrumentBank<? extends Instrument> bank) Check if the specified bank holds GM1 instruments: check size and a few instruments patch names.void
setBankSelectLsb
(int lsb) void
void
setBankSelectMsb
(int msb) Methods inherited from class org.jjazz.midi.api.InstrumentBank
addInstrument, clear, findInstruments, getDefaultBankSelectLSB, getDefaultBankSelectMethod, getDefaultBankSelectMSB, getDrumsInstruments, getDrumsInstruments, getIndex, getInstrument, getInstrument, getInstrument, getInstruments, getInstruments, getInstrumentsFromFamily, getInstrumentsFromSubstitute, getKeyMaps, getMidiSynth, getName, getNextInstrument, getNonDrumsInstruments, getPreviousInstrument, getSize, getTypes, removeInstrument, setMidiSynth, toString
-
Field Details
-
GM1_BANKNAME
- See Also:
-
DEFAULT_BANK_SELECT_LSB
public static final int DEFAULT_BANK_SELECT_LSB- See Also:
-
DEFAULT_BANK_SELECT_MSB
public static final int DEFAULT_BANK_SELECT_MSB- See Also:
-
DEFAULT_BANK_SELECT_METHOD
-
-
Method Details
-
guessIsDrums
Try to guess if patchName represents a drums/percussion instrument.- Parameters:
patchName
-- Returns:
-
guessInstrument
Try to guess from patchName the equivalent GM1 Instrument.- Parameters:
patchName
-- Returns:
- Null if nothing found.
-
getDefaultInstrument
Return a hard-coded default GM1Instrument for the specified GM family.- Parameters:
f
-- Returns:
- A GM1Instrument.
-
setBankSelectMethod
-
setBankSelectLsb
public void setBankSelectLsb(int lsb) -
setBankSelectMsb
public void setBankSelectMsb(int msb) -
isGM1Compatible
Check if the specified bank holds GM1 instruments: check size and a few instruments patch names.- Parameters:
bank
-- Returns:
-