Packagecom.yoambulante.midifiles
Classpublic class MidiTrack
InheritanceMidiTrack Inheritance Object

MidiTrack contains all events related to the track, note that events channels are independant of the track



Public Properties
 PropertyDefined By
  totalEvents : uint
[read-only] returns total amount of available events in list
MidiTrack
Public Methods
 MethodDefined By
  
MidiTrack(copyFrom:MidiTrack = null)
creates a new midi track which contents all different kind of midi events.
MidiTrack
  
used by the main parser for adding event to the list.
MidiTrack
  
duplicate current track, note it also duplicates its event messages inside track.
MidiTrack
  
getEvent(index:uint):MidiMessage
gets a event from list
MidiTrack
  
removeEvent(index:uint):void
removes a event from list
MidiTrack
Property Detail
totalEventsproperty
totalEvents:uint  [read-only]

returns total amount of available events in list


Implementation
    public function get totalEvents():uint
Constructor Detail
MidiTrack()Constructor
public function MidiTrack(copyFrom:MidiTrack = null)

creates a new midi track which contents all different kind of midi events.

Parameters
copyFrom:MidiTrack (default = null) — copy all events from already created instance of MidiTrack (optional)
Method Detail
addEvent()method
public function addEvent(e:MidiMessage):void

used by the main parser for adding event to the list.

Parameters

e:MidiMessage

clone()method 
public function clone():MidiTrack

duplicate current track, note it also duplicates its event messages inside track.

Returns
MidiTrack
getEvent()method 
public function getEvent(index:uint):MidiMessage

gets a event from list

Parameters

index:uint — must be a uint >= 0 and < totalEvents

Returns
MidiMessage — return null if index is equal or higher than totalEvents
removeEvent()method 
public function removeEvent(index:uint):void

removes a event from list

Parameters

index:uint — must be a uint >= 0 and < totalEvents