public abstract class MidiMessage extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected int |
length |
Modifier | Constructor and Description |
---|---|
protected |
MidiMessage(byte[] data)
Constructor with the raw data
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Clone the object
|
int |
getLength()
Get the length of the
MidiMessage |
byte[] |
getMessage()
Get the message source data
|
int |
getStatus()
Get the status of the
MidiMessage |
void |
setMessage(byte[] data,
int length)
Constructor with the raw data, and its length
|
String |
toString() |
@Nullable protected byte[] data
protected int length
protected MidiMessage(@Nullable byte[] data)
data
- the raw datapublic void setMessage(@Nullable byte[] data, int length) throws InvalidMidiDataException
data
- the raw datalength
- unused parameter. Use always data.lengthInvalidMidiDataException
@Nullable public byte[] getMessage()
public int getStatus()
MidiMessage
public int getLength()
MidiMessage