public final class MidiChannelImpl extends Object implements MidiChannel
MidiChannel implementation| Constructor and Description |
|---|
MidiChannelImpl(int channel,
Receiver receiver,
VoiceStatus voiceStatus)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
allNotesOff()
Indicate 'All notes off' message to the
MidiChannel |
void |
allSoundOff()
Indicate 'All sound off' message to the
MidiChannel |
void |
controlChange(int controller,
int value)
Set 'Controller' status to the
MidiChannel |
int |
getChannelPressure()
Get 'Channel pressure' status of the
MidiChannel |
int |
getController(int controller)
Get 'Controller' status of the
MidiChannel |
boolean |
getMono()
Get 'Mono' status of the
MidiChannel |
boolean |
getMute()
Get 'Mute' status of the
MidiChannel |
boolean |
getOmni()
Get 'Omni' status of the
MidiChannel |
int |
getPitchBend()
Get 'Pitch bend' status of the
MidiChannel |
int |
getPolyPressure(int noteNumber)
Get 'Poly pressure' status of the
MidiChannel |
int |
getProgram()
Get 'Program' status of the
MidiChannel |
boolean |
getSolo()
Get 'Solo' status of the
MidiChannel |
boolean |
localControl(boolean on)
Set 'Local control' status to the
MidiChannel |
void |
noteOff(int noteNumber)
Indicate 'Note off' message to the
MidiChannel |
void |
noteOff(int noteNumber,
int velocity)
Indicate 'Note off' message to the
MidiChannel |
void |
noteOn(int noteNumber,
int velocity)
Indicate 'Note on' message to the
MidiChannel |
void |
programChange(int program)
Set 'Program' status to the
MidiChannel |
void |
programChange(int bank,
int program)
Set 'Bank' and 'Program' status to the
MidiChannel |
void |
resetAllControllers()
Indicate 'Reset all controllers' message to the
MidiChannel |
void |
setChannelPressure(int pressure)
Set 'Channel pressure' status to the
MidiChannel |
void |
setMono(boolean on)
Set 'Mono' status to the
MidiChannel |
void |
setMute(boolean mute)
Set 'Mute' status to the
MidiChannel |
void |
setOmni(boolean on)
Set 'Omni' status to the
MidiChannel |
void |
setPitchBend(int bend)
Set 'Pitch bend' status to the
MidiChannel |
void |
setPolyPressure(int noteNumber,
int pressure)
Set 'Poly pressure' status to the
MidiChannel |
void |
setSolo(boolean soloState)
Set 'Solo' status to the
MidiChannel |
public MidiChannelImpl(int channel,
@NonNull
Receiver receiver,
@NonNull
VoiceStatus voiceStatus)
channel - the channel 0-15receiver - the receiverpublic void allNotesOff()
MidiChannelMidiChannelallNotesOff in interface MidiChannelpublic void allSoundOff()
MidiChannelMidiChannelallSoundOff in interface MidiChannelpublic void resetAllControllers()
MidiChannelMidiChannelresetAllControllers in interface MidiChannelpublic void noteOff(int noteNumber)
MidiChannelMidiChannelnoteOff in interface MidiChannelnoteNumber - the note numberpublic void noteOff(int noteNumber,
int velocity)
MidiChannelMidiChannelnoteOff in interface MidiChannelnoteNumber - the note numbervelocity - the note off velocitypublic void noteOn(int noteNumber,
int velocity)
MidiChannelMidiChannelnoteOn in interface MidiChannelnoteNumber - the note numbervelocity - the note on velocitypublic int getChannelPressure()
MidiChannelMidiChannelgetChannelPressure in interface MidiChannelpublic void setChannelPressure(int pressure)
MidiChannelMidiChannelsetChannelPressure in interface MidiChannelpressure - the channel pressurepublic int getController(int controller)
MidiChannelMidiChannelgetController in interface MidiChannelcontroller - the controller IDpublic void controlChange(int controller,
int value)
MidiChannelMidiChannelcontrolChange in interface MidiChannelcontroller - the controller IDvalue - the controller valuepublic int getProgram()
MidiChannelMidiChannelgetProgram in interface MidiChannelpublic void programChange(int program)
MidiChannelMidiChannelprogramChange in interface MidiChannelprogram - the programpublic void programChange(int bank,
int program)
MidiChannelMidiChannelprogramChange in interface MidiChannelbank - the bankprogram - the programpublic boolean getMono()
MidiChannelMidiChannelgetMono in interface MidiChannelpublic void setMono(boolean on)
MidiChannelMidiChannelsetMono in interface MidiChannelon - 'Mono' statuspublic boolean getMute()
MidiChannelMidiChannelgetMute in interface MidiChannelpublic void setMute(boolean mute)
MidiChannelMidiChannelsetMute in interface MidiChannelmute - 'Mute' statuspublic boolean getOmni()
MidiChannelMidiChannelgetOmni in interface MidiChannelpublic void setOmni(boolean on)
MidiChannelMidiChannelsetOmni in interface MidiChannelon - 'Omni' statuspublic int getPitchBend()
MidiChannelMidiChannelgetPitchBend in interface MidiChannelpublic void setPitchBend(int bend)
MidiChannelMidiChannelsetPitchBend in interface MidiChannelbend - 'Pitch bend' amount 0-8191-16383public int getPolyPressure(int noteNumber)
MidiChannelMidiChannelgetPolyPressure in interface MidiChannelnoteNumber - the note numberpublic void setPolyPressure(int noteNumber,
int pressure)
MidiChannelMidiChannelsetPolyPressure in interface MidiChannelnoteNumber - the note numberpressure - the note pressurepublic boolean getSolo()
MidiChannelMidiChannelgetSolo in interface MidiChannelpublic void setSolo(boolean soloState)
MidiChannelMidiChannelsetSolo in interface MidiChannelsoloState - 'Solo' statuspublic boolean localControl(boolean on)
MidiChannelMidiChannellocalControl in interface MidiChannelon - 'Local control' status