|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.confusionists.mjdjApi.midi.MessageWrapper
com.confusionists.mjdjApi.midi.ShortMessageWrapper
public class ShortMessageWrapper
| Field Summary |
|---|
| Fields inherited from class com.confusionists.mjdjApi.midi.MessageWrapper |
|---|
userData |
| Method Summary | |
|---|---|
void |
alterCommand(int command)
Replaces the guts of (the guts of) this wrapper. Particularly useful is more than one object shares this wrapper. |
void |
alterData1(int data1)
Replaces the guts of this wrapper. Particularly useful is more than one object shares this wrapper. |
void |
alterData2(int data2)
Replaces the guts of this wrapper. |
ShortMessageWrapper |
deepClone()
This class does not clone the userData |
boolean |
filter(int command,
ChannelCc channelCc)
Convenience method to check if a message has a certain command, channel and data1 (cc). |
boolean |
filterControlCommand(ChannelCc channelCc)
Same as filter (above), but here command is assumed to be ShortMessage.CONTROL_CHANGE |
int |
getCommand()
|
int |
getData1()
|
int |
getData2()
|
javax.sound.midi.ShortMessage |
getShortMessage()
|
boolean |
isControlChange()
|
boolean |
isNoteOff()
|
boolean |
isNoteOn()
|
java.lang.String |
toString()
|
| Methods inherited from class com.confusionists.mjdjApi.midi.MessageWrapper |
|---|
getAsShortMessageWrapper, getInt, getKeystrokes, getMessage, newInstance, newInstance, newInstance, newInstance, setMessage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public javax.sound.midi.ShortMessage getShortMessage()
public boolean filter(int command,
ChannelCc channelCc)
command - - second half of first byte of MidiMessage. -1 value means accept any.channelCc - - channel and data1 of the MidiMessage. -1 value means accept any.
Will also return false if the message is not a ShortMessage instance.
public boolean filterControlCommand(ChannelCc channelCc)
channelCc - - channel and data1 of the MidiMessage. -1 values mean accept any.
public void alterCommand(int command)
public void alterData1(int data1)
public void alterData2(int data2)
public int getData2()
public int getData1()
public int getCommand()
public boolean isControlChange()
public boolean isNoteOn()
public boolean isNoteOff()
public ShortMessageWrapper deepClone()
public java.lang.String toString()
toString in class MessageWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||