|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sound.midi.MidiMessage
public abstract class MidiMessage
The base class for all MIDI messages.
| Field Summary | |
|---|---|
protected byte[] |
data
MIDI message data. |
protected int |
length
The total length of the MIDI message. |
| Constructor Summary | |
|---|---|
protected |
MidiMessage(byte[] data)
MidiMessage contructor. |
| Method Summary | |
|---|---|
abstract Object |
clone()
clone creates a shallow clone of this. |
int |
getLength()
Get the length of the MIDI message. |
byte[] |
getMessage()
Get the MIDI message data. |
int |
getStatus()
Get the status byte of the MIDI message (as an int) |
protected void |
setMessage(byte[] data,
int length)
Set the complete MIDI message. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] data
protected int length
| Constructor Detail |
|---|
protected MidiMessage(byte[] data)
data - a valid MIDI message| Method Detail |
|---|
protected void setMessage(byte[] data,
int length)
throws InvalidMidiDataException
data - The complete MIDI message.length - The length of the MIDI message.
InvalidMidiDataException - Thrown when the MIDI message is invalid.public byte[] getMessage()
public int getStatus()
public int getLength()
public abstract Object clone()
Object
clone in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||