Packageorg.si.sion.events
Classpublic class SiONTrackEvent
InheritanceSiONTrackEvent Inheritance SiONEvent Inheritance flash.events.Event
Subclasses SiONMIDIEvent

SiON Track Event class.



Public Properties
 PropertyDefined By
  bufferIndex : int
[read-only] Buffering index.
SiONTrackEvent
 Inheriteddata : SiONData
[read-only] Sound data.
SiONEvent
 Inheriteddriver : SiONDriver
[read-only] Sound driver.
SiONEvent
  eventTriggerID : int
[read-only] Trigger ID.
SiONTrackEvent
  frameTriggerDelay : Number
[read-only] Delay time to dispatch frame trigger event [ms].
SiONTrackEvent
  note : int
[read-only] Note number.
SiONTrackEvent
 InheritedstreamBuffer : ByteArray
[read-only] ByteArray of sound stream.
SiONEvent
  track : SiMMLTrack
[read-only] Sequencer track instance.
SiONTrackEvent
Public Methods
 MethodDefined By
  
clone():Event
[override] clone.
SiONTrackEvent
Public Constants
 ConstantDefined By
  BEAT : String = beat
[static] Dispatch on beat while streaming.
SiONTrackEvent
  CHANGE_BPM : String = changeBPM
[static] Dispatch when the bpm changes.
SiONTrackEvent
 InheritedFADE_IN_COMPLETE : String = fadeInComplete
[static] Dispatch when fade in is finished.
SiONEvent
 InheritedFADE_OUT_COMPLETE : String = fadeOutComplete
[static] Dispatch when fade out is finished.
SiONEvent
 InheritedFADE_PROGRESS : String = fadeProgress
[static] Dispatch while fading.
SiONEvent
 InheritedFINISH_SEQUENCE : String = finishSequence
[static] Dispatch when finish executing all sequences.
SiONEvent
  NOTE_OFF_FRAME : String = noteOffFrame
[static] Dispatch when the sound ends.
SiONTrackEvent
  NOTE_OFF_STREAM : String = noteOffStream
[static] Dispatch when the note off appears in the sequence with "%t" command.
SiONTrackEvent
  NOTE_ON_FRAME : String = noteOnFrame
[static] Dispatch when the sound starts.
SiONTrackEvent
  NOTE_ON_STREAM : String = noteOnStream
[static] Dispatch when the note on appears in the sequence with "%t" command.
SiONTrackEvent
 InheritedQUEUE_CANCEL : String = queueCancel
[static] Dispatch when cancel all queued jobs.
SiONEvent
 InheritedQUEUE_COMPLETE : String = queueComplete
[static] Dispatch when finish all queued jobs.
SiONEvent
 InheritedQUEUE_PROGRESS : String = queueProgress
[static] Dispatch when executing queued jobs.
SiONEvent
 InheritedSTREAM : String = stream
[static] Dispatch while streaming.
SiONEvent
 InheritedSTREAM_START : String = streamStart
[static] Dispatch when start streaming.
SiONEvent
 InheritedSTREAM_STOP : String = streamStop
[static] Dispatch when stop streaming.
SiONEvent
  USER_DEFINED : String = userDefined
[static] Dispatch when SiONDriver.dispatchUserDefinedTrackEvent() is called.
SiONTrackEvent
Property Detail
bufferIndexproperty
bufferIndex:int  [read-only]

Buffering index.


Implementation
    public function get bufferIndex():int
eventTriggerIDproperty 
eventTriggerID:int  [read-only]

Trigger ID.


Implementation
    public function get eventTriggerID():int
frameTriggerDelayproperty 
frameTriggerDelay:Number  [read-only]

Delay time to dispatch frame trigger event [ms].


Implementation
    public function get frameTriggerDelay():Number
noteproperty 
note:int  [read-only]

Note number.


Implementation
    public function get note():int
trackproperty 
track:SiMMLTrack  [read-only]

Sequencer track instance.


Implementation
    public function get track():SiMMLTrack
Method Detail
clone()method
override public function clone():Event

clone.

Returns
Event
Constant Detail
BEATConstant
public static const BEAT:String = beat

Dispatch on beat while streaming. This event is called in each beat timing on frame. When you want to listen this event, you have to set addEventListener() before SiONDriver.play().

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance playing now.
dataSiONData instance playing now. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull.
tracknull
eventTriggerIDCounter in 16th beat.
note0
bufferIndexBuffering index

CHANGE_BPMConstant 
public static const CHANGE_BPM:String = changeBPM

Dispatch when the bpm changes.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
tracknull
eventTriggerIDnull
note0
bufferIndexBuffering index

NOTE_OFF_FRAMEConstant 
public static const NOTE_OFF_FRAME:String = noteOffFrame

Dispatch when the sound ends.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
trackSiMMLTrack instance executing sequence.
eventTriggerIDTrigger ID specifyed in "%t" commands 1st argument.
noteNote number.
bufferIndexBuffering index

NOTE_OFF_STREAMConstant 
public static const NOTE_OFF_STREAM:String = noteOffStream

Dispatch when the note off appears in the sequence with "%t" command.

The properties of the event object have the following values:

PropertyValue
cancelabletrue; mute the note
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
trackSiMMLTrack instance executing sequence.
eventTriggerIDTrigger ID specifyed in "%t" commands 1st argument.
noteNote number.
bufferIndexBuffering index

NOTE_ON_FRAMEConstant 
public static const NOTE_ON_FRAME:String = noteOnFrame

Dispatch when the sound starts.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
trackSiMMLTrack instance executing sequence.
eventTriggerIDTrigger ID specifyed in "%t" commands 1st argument.
noteNote number.
bufferIndexBuffering index

NOTE_ON_STREAMConstant 
public static const NOTE_ON_STREAM:String = noteOnStream

Dispatch when the note on appears in the sequence with "%t" command.

The properties of the event object have the following values:

PropertyValue
cancelabletrue; mute the note
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
trackSiMMLTrack instance executing sequence.
eventTriggerIDTrigger ID specifyed in "%t" commands 1st argument.
noteNote number.
bufferIndexBuffering index

USER_DEFINEDConstant 
public static const USER_DEFINED:String = userDefined

Dispatch when SiONDriver.dispatchUserDefinedTrackEvent() is called.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance.
dataSiONData instance. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull
tracknull
eventTriggerID1st argument of SiONDriver.dispatchUserDefinedTrackEvent()
note2nd argument of SiONDriver.dispatchUserDefinedTrackEvent()
bufferIndexBuffering index