public abstract class MidiMessage
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
clone()
Create a copy of this MIDI message.
|
int |
getLength()
Returns the length of the whole message in bytes.
|
byte[] |
getMessage()
Return the complete message.
|
int |
getStatus()
Returns the status byte of the message.
|
public byte[] getMessage()
data
and returns a
reference to the copy.
The returned array contains only the bytes that form the MIDI
message, even if data
contains additional invalid
bytes. This requirement also means that the length of the
returned array is equal to length
and equal
to the value returned by getLength()
.public int getStatus()
data
,
which is always the status byte.public int getLength()
length
.
The value returned by this method
is always equal to the length of the array returned by
getMessage()
.length
,
getMessage()
public abstract java.lang.Object clone()
clone
in class java.lang.Object