|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.midi.core.channel.DefaultMidiChannelReader
public class DefaultMidiChannelReader
This class decodes state and provides a channel=based read API. It has state.
| Constructor Summary | |
|---|---|
DefaultMidiChannelReader(int index)
|
|
| Method Summary | |
|---|---|
void |
decode(int command,
int data1,
int data2)
|
int |
getChannelPressure()
Obtains the channel's keyboard pressure. |
int |
getControl(int control)
Get the value of the controller with the specified index. |
int |
getController(int controller)
Obtains the current value of the specified controller. |
int |
getIndex()
Get the channel index number. |
boolean |
getMono()
Obtains the current mono/poly mode. |
boolean |
getMute()
Obtains the current mute state for this channel. |
boolean |
getOmni()
Obtains the current omni mode status. |
int |
getPan()
|
int |
getPitchBend()
Obtains the upward or downward pitch offset for this channel. |
int |
getPolyPressure(int noteNumber)
Obtains the pressure with which the specified key is being depressed. |
int |
getProgram()
Obtains the current program number for this channel. |
boolean |
getSolo()
Obtains the current solo state for this channel. |
int |
getVolume()
|
void |
setIndex(int index)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMidiChannelReader(int index)
| Method Detail |
|---|
public void decode(int command,
int data1,
int data2)
decode in interface MidiChannelReaderpublic int getControl(int control)
MidiChannelReader
getControl in interface MidiChannelReaderpublic int getPolyPressure(int noteNumber)
getPolyPressure in interface MidiChannelReadernoteNumber - the MIDI note number, from 0 to 127 (60 = Middle C)
#setPolyPressure(int, int)public int getChannelPressure()
getChannelPressure in interface MidiChannelReader#setChannelPressure(int)public int getController(int controller)
getController in interface MidiChannelReadercontroller - the number of the controller whose value is desired. The allowed range is 0-127; see the MIDI
1.0 Specification for the interpretation.
#controlChange(int, int)public int getProgram()
getProgram in interface MidiChannelReaderPatch.getProgram(),
Synthesizer.loadInstrument(javax.sound.midi.Instrument),
#programChange(int)public int getPitchBend()
getPitchBend in interface MidiChannelReader#setPitchBend(int)public int getVolume()
getVolume in interface MidiChannelReaderpublic int getPan()
getPan in interface MidiChannelReaderpublic boolean getMono()
getMono in interface MidiChannelReadertrue if mono mode is on, otherwise false (meaning poly mode is on).#setMono(boolean)public boolean getOmni()
getOmni in interface MidiChannelReadertrue if omni mode is on, otherwise false.#setOmni(boolean)public boolean getMute()
getMute in interface MidiChannelReadertrue the channel is muted, false if not#setMute(boolean)public boolean getSolo()
getSolo in interface MidiChannelReadertrue if soloed, false if not#setSolo(boolean)public int getIndex()
MidiChannelReader
getIndex in interface MidiChannelReaderpublic void setIndex(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||