|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.midi.Track
public class Track
A Track contains a list of timecoded MIDI events for processing by a Sequencer.
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean add(MidiEvent event)
event
- the event to add
public boolean remove(MidiEvent event)
event
- the event to remove
public MidiEvent get(int index) throws ArrayIndexOutOfBoundsException
index
- the location of the event to get
ArrayIndexOutOfBoundsException
- if index is out of boundspublic int size()
public long ticks()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |