javax.sound.midi
Class MetaMessage

java.lang.Object
  extended by javax.sound.midi.MidiMessage
      extended by javax.sound.midi.MetaMessage
All Implemented Interfaces:
java.lang.Cloneable

public class MetaMessage
extends MidiMessage

Container for meta messages. This class is used to represent meta events that are commonly stored in MIDI files. Note that normally, meta messages are not meaningful when sent over the wire to a MIDI instrument.

The way these messages are separated into bytes for storing in data is the same as specified in the Standard MIDI File Format, except that no delta time in ticks is stored here.


Field Summary
static int META
          Status byte for meta messages (value 255, 0xff).
 
Constructor Summary
MetaMessage()
          Create a container for a MIDI meta message.
 
Method Summary
 java.lang.Object clone()
          TODO:
 byte[] getData()
          TODO:
 int getType()
          TODO:
 void setMessage(int nType, byte[] abData, int nDataLength)
          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

META

public static final int META
Status byte for meta messages (value 255, 0xff).

See Also:
Constant Field Values
Constructor Detail

MetaMessage

public MetaMessage()
Create a container for a MIDI meta message. This constructor does not create an object containing a legal MIDI message. You have to use one of the setMessage() methods. Before calling one of these methods, calling retrieval methods (getLength(), getMessage(), getStatus(), getType(), getData()) may have undesired results.

See Also:
setMessage(int, byte[], int)
Method Detail

setMessage

public void setMessage(int nType,
                       byte[] abData,
                       int nDataLength)
                throws InvalidMidiDataException
TODO:

Throws:
InvalidMidiDataException

getType

public int getType()
TODO:


getData

public byte[] getData()
TODO:


clone

public java.lang.Object clone()
TODO:

Specified by:
clone in class MidiMessage
Returns:
A new MidiMessage object that is a copy of this one.