public class Track extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Track.TrackUtils
Utilities for
Track |
| Constructor and Description |
|---|
Track() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(MidiEvent event)
|
MidiEvent |
get(int index)
Get specified index of
MidiEvent |
boolean |
remove(MidiEvent event)
|
int |
size()
Get the number of events in the
Track |
long |
ticks()
Get length of ticks for this
Track |
public boolean add(@NonNull MidiEvent event)
event - to add@NonNull public MidiEvent get(int index) throws ArrayIndexOutOfBoundsException
MidiEventindex - the index of eventArrayIndexOutOfBoundsExceptionpublic boolean remove(@NonNull MidiEvent event)
event - to removepublic int size()
Trackpublic long ticks()
Track