Package org.jjazz.midi.api
Class MidiAddress
java.lang.Object
org.jjazz.midi.api.MidiAddress
The data to select an Instrument via Midi.
This is an immutable class.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMidiAddress
(int progChange, int bankMSB, int bankLSB, MidiAddress.BankSelectMethod bsMethod) Create a MidiAddress. -
Method Summary
-
Constructor Details
-
MidiAddress
Create a MidiAddress.- Parameters:
progChange
- [0-127]bankMSB
- [0-127] or -1 if undefinedbankLSB
- [0-127] or -1 if undefinedbsMethod
- null if undefined
-
-
Method Details
-
getBankSelectMethod
- Returns:
- Null if undefined.
-
getBankMSB
public int getBankMSB()The BankSelect MSB byte (Midi CC control #0).- Returns:
- the bankMSB [0;127] or -1 if bankMSB is undefined.
-
getBankLSB
public int getBankLSB()The BankSelect LSB byte (Midi CC control #32).- Returns:
- the bankLSB [0;-127] or -1 if bankLSB is undefined.
-
getProgramChange
public int getProgramChange()- Returns:
- the progChange [0-127]
-
isFullyDefined
public boolean isFullyDefined()Return true if bankMSB, bankLSB and bankSelectMethod are defined consistently.- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-