|
||||||||||
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 MidiChannelReader
public int getControl(int control)
MidiChannelReader
getControl
in interface MidiChannelReader
public int getPolyPressure(int noteNumber)
getPolyPressure
in interface MidiChannelReader
noteNumber
- 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 MidiChannelReader
controller
- 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 MidiChannelReader
Patch.getProgram()
,
Synthesizer.loadInstrument(javax.sound.midi.Instrument)
,
#programChange(int)
public int getPitchBend()
getPitchBend
in interface MidiChannelReader
#setPitchBend(int)
public int getVolume()
getVolume
in interface MidiChannelReader
public int getPan()
getPan
in interface MidiChannelReader
public boolean getMono()
getMono
in interface MidiChannelReader
true
if mono mode is on, otherwise false
(meaning poly mode is on).#setMono(boolean)
public boolean getOmni()
getOmni
in interface MidiChannelReader
true
if omni mode is on, otherwise false
.#setOmni(boolean)
public boolean getMute()
getMute
in interface MidiChannelReader
true
the channel is muted, false
if not#setMute(boolean)
public boolean getSolo()
getSolo
in interface MidiChannelReader
true
if soloed, false
if not#setSolo(boolean)
public int getIndex()
MidiChannelReader
getIndex
in interface MidiChannelReader
public void setIndex(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |