javax.sound.midi
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean add(MidiEvent event)
event
- the event to addpublic boolean remove(MidiEvent event)
event
- the event to removepublic MidiEvent get(int index) throws ArrayIndexOutOfBoundsException
index
- the location of the event to getArrayIndexOutOfBoundsException
- if index is out of boundspublic int size()
public long ticks()