javax.sound.midi
public class Track extends Object
Since: 1.3
Method Summary | |
---|---|
boolean | add(MidiEvent event)
Add a new event to this track. |
MidiEvent | get(int index)
Get an event idetified by its order index
|
boolean | remove(MidiEvent event)
Remove an event from this track.
|
int | size()
Get the number events in this track.
|
long | ticks()
Get the length of the track in MIDI ticks.
|
Parameters: event the event to add
Returns: true if the event was added, false otherwise
Parameters: index the location of the event to get
Returns: the event at index
Throws: ArrayIndexOutOfBoundsException if index is out of bounds
Parameters: event the event to remove
Returns: true if the event was removed, false otherwise
Returns: the number of events in this track
Returns: the length of the track in MIDI ticks