Packageorg.si.sound
Classpublic class MMLPlayer
InheritanceMMLPlayer Inheritance SoundObject Inheritance flash.events.EventDispatcher

MML Player provides sequence sound written by MML, and you can control all tracks during playing sequence.



Public Properties
 PropertyDefined By
 InheritedcoarseTune : int
Master coarse tuning, 1 for half-tone.
SoundObject
  controlTrackNumber : int
current controling track number
MMLPlayer
  data : SiONData
[read-only] sequence data to play
MMLPlayer
 Inheriteddelay : Number
Sound delay, uint in 16th beat.
SoundObject
 Inheriteddriver : SiONDriver
[read-only] SiONDriver instrance to operate.
SoundObject
 Inheritedeffectors : Array
Array of SiEffectBase to modify this sound object's output.
SoundObject
 InheritedeffectSend1 : Number
Channel effect send level for slot 1 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend2 : Number
Channel effect send level for slot 2 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend3 : Number
Channel effect send level for slot 3 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend4 : Number
Channel effect send level for slot 4 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeventMask : int
Track event mask.
SoundObject
 InheritedeventTriggerID : int
Track event trigger ID
SoundObject
 InheritedfineTune : Number
Master fine tuning, 1 for half-tone, you can specify fineTune<-1 or fineTune>1.
SoundObject
 InheritedgateTime : Number
Track gate time (0:Minimum - 1:Maximum).
SoundObject
 InheritedisPlaying : Boolean
[read-only] is playing ?
SoundObject
 Inheritedlength : Number
Sound length in 16th beat, 0 sets inifinity length.
SoundObject
  mml : String
MML text
MMLPlayer
 Inheritedmute : Boolean
Channel mute, this property can control track after play().
SoundObject
 Inheritedname : String
Name.
SoundObject
 Inheritednote : int
Base note of this sound
SoundObject
 InheritednoteOffTriggerType : int
[read-only] Track note off trigger type
SoundObject
 InheritednoteOnTriggerType : int
[read-only] Track note on trigger type
SoundObject
 Inheritedpan : Number
Channel panning (-1:Left - 0:Center - +1:Right), this property can control track after play().
SoundObject
 Inheritedparent : SoundObjectContainer
[read-only] parent container.
SoundObject
 InheritedpitchBend : Number
Channel pitch bend, 1 for halftone, this property can control track after play().
SoundObject
 Inheritedquantize : Number
Synchronizing quantizing, uint in 16th beat.
SoundObject
  soloTrackNumber : int
Solo track number, this value reset when call start() method.
MMLPlayer
 Inheritedsynthesizer : VoiceReference
Synthesizer to generate sound
SoundObject
  trackCount : int
[read-only] number of MML playing tracks
MMLPlayer
 InheritedtrackID : int
[read-only] Track id
SoundObject
 Inheritedvoice : SiONVoice
Voice data to play
SoundObject
 Inheritedvolume : Number
Channel volume (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
Public Methods
 MethodDefined By
  
MMLPlayer(mml:String = null)
constructor
MMLPlayer
 Inherited
fadeIn(time:Number):void
Set fading in.
SoundObject
 Inherited
fadeOut(time:Number):void
Set fading out.
SoundObject
  
play():void
[override] Play mml data.
MMLPlayer
 Inherited
reset():void
Reset
SoundObject
 Inherited
setVolume(slot:int, volume:Number):void
Set volume by index.
SoundObject
  
stop():void
[override] Stop mml data.
MMLPlayer
Events
 Event Summary Defined By
 Inherited Dispatch when the sound ends.SoundObject
 Inherited Dispatch when the note off appears in the sequence.SoundObject
 Inherited Dispatch when the sound starts.SoundObject
 Inherited Dispatch when the note on appears.SoundObject
Property Detail
controlTrackNumberproperty
controlTrackNumber:int

current controling track number


Implementation
    public function get controlTrackNumber():int
    public function set controlTrackNumber(value:int):void
dataproperty 
data:SiONData  [read-only]

sequence data to play


Implementation
    public function get data():SiONData
mmlproperty 
mml:String

MML text


Implementation
    public function get mml():String
    public function set mml(value:String):void
soloTrackNumberproperty 
soloTrackNumber:int

Solo track number, this value reset when call start() method. -1 sets no solo tracks.

The default value is -1.


Implementation
    public function get soloTrackNumber():int
    public function set soloTrackNumber(value:int):void
trackCountproperty 
trackCount:int  [read-only]

number of MML playing tracks


Implementation
    public function get trackCount():int
Constructor Detail
MMLPlayer()Constructor
public function MMLPlayer(mml:String = null)

constructor

Parameters
mml:String (default = null)
Method Detail
play()method
override public function play():void

Play mml data.

stop()method 
override public function stop():void

Stop mml data.