public interface MidiChannel
Modifier and Type | Method and Description |
---|---|
void |
allNotesOff()
Stop playing all notes.
|
void |
allSoundOff()
Stop all sound.
|
void |
controlChange(int controller,
int value)
Set a change in a controller's value.
|
int |
getChannelPressure()
Get the key pressure for the channel.
|
int |
getController(int controller)
Get a controller's value.
|
boolean |
getMono()
Get the current mono mode.
|
boolean |
getMute()
Get the current mute mode.
|
boolean |
getOmni()
Get the current omni mode.
|
int |
getPitchBend()
Get the pitch bend for this channel as a positive 14-bit value.
|
int |
getPolyPressure(int noteNumber)
Get the key pressure for a note.
|
int |
getProgram()
Get the current patch for this channel.
|
boolean |
getSolo()
Get the current solo mode.
|
boolean |
localControl(boolean on)
Set whether or not local controls are on or off.
|
void |
noteOff(int noteNumber)
Stop playing a note.
|
void |
noteOff(int noteNumber,
int velocity)
Stop playing a note.
|
void |
noteOn(int noteNumber,
int velocity)
Start playing a note.
|
void |
programChange(int program)
Change the patch for this channel.
|
void |
programChange(int bank,
int program)
Change the bank and patch for this channel.
|
void |
resetAllControllers()
Reset all MIDI controllers to their default values.
|
void |
setChannelPressure(int pressure)
Set the key pressure for the channel.
|
void |
setMono(boolean on)
Turns mono mode on or off.
|
void |
setMute(boolean mute)
Turns mute mode on or off.
|
void |
setOmni(boolean on)
Turns omni mode on or off.
|
void |
setPitchBend(int bend)
Change the pitch bend for this channel using a positive 14-bit value.
|
void |
setPolyPressure(int noteNumber,
int pressure)
Change in a key pressure for a note.
|
void |
setSolo(boolean solo)
Turns solo mode on or off.
|
void noteOn(int noteNumber, int velocity)
noteNumber
- the MIDI note numbervelocity
- the velocity at which the key was pressedvoid noteOff(int noteNumber, int velocity)
noteNumber
- the MIDI note numbervelocity
- the volcity at which the ket was releasedvoid noteOff(int noteNumber)
noteNumber
- the MIDI note numbervoid setPolyPressure(int noteNumber, int pressure)
noteNumber
- the MIDI note numberpressure
- the key pressureint getPolyPressure(int noteNumber)
noteNumber
- the MIDI note numbervoid setChannelPressure(int pressure)
pressure
- the key pressureint getChannelPressure()
void controlChange(int controller, int value)
controller
- the MIDI controller number (0 to 127)value
- the new value (0 to 127)int getController(int controller)
controller
- the MIDI controller number (0 to 127)void programChange(int program)
program
- the patch number to switch to (0 to 127)void programChange(int bank, int program)
bank
- the bank to switch to (0 to 16383)program
- the patch to switch to (0 to 127)int getProgram()
void setPitchBend(int bend)
bend
- the new pitch bend valueint getPitchBend()
void resetAllControllers()
void allNotesOff()
void allSoundOff()
boolean localControl(boolean on)
on
- true to enable local controls, false to disablevoid setMono(boolean on)
on
- true to enable mono mode, false to disableboolean getMono()
void setOmni(boolean on)
on
- true to enable omni mode, false to disableboolean getOmni()
void setMute(boolean mute)
mute
- true to enable mute mode, false to disableboolean getMute()
void setSolo(boolean solo)
solo
- true to enable solo mode, false to disableboolean getSolo()