Previous  Next          Package

Class MIDICompose.MetaEvent

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.MIDIEvent
                   |
                   +----MIDICompose.MetaEvent

public abstract class MetaEvent
extends MIDIEvent

Constructor Index

 o MetaEvent(int, int)
Creates new MetaEvent with deltaTime and type.

Method Index

 o dataValueAt(int)
Returns value at index.
 o setDataValueAt(int, int)
Sets (or creates) value at index.
 o setType(int)
Sets MetaEvent-type.
 o type()
Returns current MetaEvent-type.

Constructors

 o MetaEvent
 protected MetaEvent(int deltaTime,
                     int type)
Creates a new MetaEvent.

Parameters:
deltaTime - any int (>= 0).
type - any int between 0 and 255 (=0xff).

Methods

 o type
 protected int type()
Returns the current type (dataValue at index = 0).

Returns:
an int between 0 and 255 representing the MetaEvents-type.
 o setType
 protected void setType(int type)
Sets the type (dataValue at index = 0).

Parameters:
any int between 0 and 255 representing a MetaEvent-type.
 o dataValueAt
 protected int dataValueAt(int index)
Returns dataValue at index.

Parameters:
index - the position of the value. any int (> 0 or 0 for type).
Returns:
the value at position index. an int between 0 and 255.
 o setDataValueAt
 protected void setDataValueAt(int value,
                               int index)
Sets dataValue at index.

Parameters:
value - any int between 0 and 255.
index - the position of the value. any int (> 0 or 0 for type).

 Previous  Next          Package