public class SysexMessage extends MidiMessage
Modifier and Type | Field and Description |
---|---|
static int |
SPECIAL_SYSTEM_EXCLUSIVE
TODO:
|
static int |
SYSTEM_EXCLUSIVE
TODO:
|
Constructor and Description |
---|
SysexMessage()
Create a container for a MIDI system exclusive message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
TODO:
|
byte[] |
getData()
TODO:
|
void |
setMessage(byte[] abData,
int nLength)
TODO:
|
void |
setMessage(int nStatus,
byte[] abData,
int nLength)
TODO:
|
getLength, getMessage, getStatus
public static final int SYSTEM_EXCLUSIVE
public static final int SPECIAL_SYSTEM_EXCLUSIVE
public SysexMessage()
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