Adds a new event to the track. However, if the event is already
contained in the track, it is not added again. The list of events
is kept in time order, meaning that this event inserted at the
appropriate place in the list, not necessarily at the end.
Use this method to add a pattern to the track.
Returns the name of the pattern.
Returns the current quantization of the pattern.
Removes the specified event from the track.
Use this method to add a pattern to the track.
Sets the name of the track.
Sets the quantization for a pattern.
Obtains the number of events in this pattern.
Obtains the length of the pattern, expressed in MIDI ticks. (The duration of
a tick in seconds is determined by the timing resolution of the
Sequence
containing this track, and also by the tempo of
the music as set by the sequencer.)