Previous Next Package
Class MIDICompose.TextMetaEvent
java.lang.Object
|
+----MIDICompose.MIDIObject
|
+----MIDICompose.MIDIEvent
|
+----MIDICompose.MetaEvent
|
+----MIDICompose.TextMetaEvent
- public class TextMetaEvent
- extends MetaEvent
You can create all Textbased-MetaEvents with TextMetaEvent.
-
COPYRIGHT
-
-
CUE_POINT
-
-
INSTRUMENT
-
-
LYRIC
-
-
MARKER
-
-
TEXT
-
-
TRACK_NAME
-
-
TextMetaEvent(String)
- Creates new TextMetaEvent with text.
-
TextMetaEvent(int, int, String)
- Creates new TextMetaEvent with deltaTime, type and text.
-
setText(String)
- Sets text.
-
setType(int)
- Sets type.
-
text()
- Returns current text.
-
type()
- Returns current type.
TextMetaEvent
public TextMetaEvent(String text)
- Creates a new TEXT-typed TextMetaEvent.
- Parameters:
- text - any String.
TextMetaEvent
public TextMetaEvent(int deltaTime,
int type,
String text)
- Creates a new TextMetaEvent.
- Parameters:
- deltaTime - any int (>= 0).
- type - one of the defined types (COPYRIGHT, TEXT, ...).
- text - any String.
type
public int type()
- Returns the current type.
- Returns:
- one of the defined types (COPYRIGHT, TEXT, ...).
setType
public void setType(int type)
- Sets the type.
- Parameters:
- one of the defined types (COPYRIGHT, TEXT, ...).
text
public String text()
- Returns the current text.
- Returns:
- a String.
setText
public void setText(String text)
- Sets the text.
- Parameters:
- text - any String.
Previous Next Package