|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.midi.MidiMessage
javax.sound.midi.SysexMessage
public class SysexMessage
Holds the data of a MIDI System Exclusive event. Sysex event are tricking me over and over again. I give my understanding of the expected behaviour for review:
Field Summary | |
---|---|
static int |
SPECIAL_SYSTEM_EXCLUSIVE
TODO: |
static int |
SYSTEM_EXCLUSIVE
TODO: |
Constructor Summary | |
---|---|
SysexMessage()
Create a container for a MIDI system exclusive message. |
Method Summary | |
---|---|
java.lang.Object |
clone()
TODO: |
byte[] |
getData()
TODO: |
void |
setMessage(byte[] abData,
int nLength)
TODO: |
void |
setMessage(int nStatus,
byte[] abData,
int nLength)
TODO: |
Methods inherited from class javax.sound.midi.MidiMessage |
---|
getLength, getMessage, getStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SYSTEM_EXCLUSIVE
public static final int SPECIAL_SYSTEM_EXCLUSIVE
Constructor Detail |
---|
public SysexMessage()
setMessage(byte[], int)
,
setMessage(int, byte[], int)
Method Detail |
---|
public void setMessage(byte[] abData, int nLength) throws InvalidMidiDataException
abData
- The bytes to use as MIDI message. This array may
contain trailing invalid bytes. nLength
gives the
number of valid bytes. This means that the length of
abData
has to be equal or greater than
nLength
.nLength
- The length of the MIDI message. This is equal to
the number of valid bytes in abData
. This value
may be less than the length of abData
. In this case,
the remaining bytes have to be considered invalid. This means that
the value of nLength
has to be equal or less than
the length of abData
.
InvalidMidiDataException
public void setMessage(int nStatus, byte[] abData, int nLength) throws InvalidMidiDataException
InvalidMidiDataException
public byte[] getData()
public java.lang.Object clone()
clone
in class MidiMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |