Package | org.si.sound |
Class | public class MMLPlayer |
Inheritance | MMLPlayer ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | coarseTune : 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 | ||
![]() | delay : Number Sound delay, uint in 16th beat. | SoundObject | |
![]() | driver : SiONDriver [read-only] SiONDriver instrance to operate. | SoundObject | |
![]() | effectors : Array Array of SiEffectBase to modify this sound object's output. | SoundObject | |
![]() | effectSend1 : Number Channel effect send level for slot 1 (0:Minimum - 1:Maximum), this property can control track after play(). | SoundObject | |
![]() | effectSend2 : Number Channel effect send level for slot 2 (0:Minimum - 1:Maximum), this property can control track after play(). | SoundObject | |
![]() | effectSend3 : Number Channel effect send level for slot 3 (0:Minimum - 1:Maximum), this property can control track after play(). | SoundObject | |
![]() | effectSend4 : Number Channel effect send level for slot 4 (0:Minimum - 1:Maximum), this property can control track after play(). | SoundObject | |
![]() | eventMask : int Track event mask. | SoundObject | |
![]() | eventTriggerID : int Track event trigger ID | SoundObject | |
![]() | fineTune : Number Master fine tuning, 1 for half-tone, you can specify fineTune<-1 or fineTune>1. | SoundObject | |
![]() | gateTime : Number Track gate time (0:Minimum - 1:Maximum). | SoundObject | |
![]() | isPlaying : Boolean [read-only] is playing ? | SoundObject | |
![]() | length : Number Sound length in 16th beat, 0 sets inifinity length. | SoundObject | |
mml : String MML text | MMLPlayer | ||
![]() | mute : Boolean Channel mute, this property can control track after play(). | SoundObject | |
![]() | name : String Name. | SoundObject | |
![]() | note : int Base note of this sound | SoundObject | |
![]() | noteOffTriggerType : int [read-only] Track note off trigger type | SoundObject | |
![]() | noteOnTriggerType : int [read-only] Track note on trigger type | SoundObject | |
![]() | pan : Number Channel panning (-1:Left - 0:Center - +1:Right), this property can control track after play(). | SoundObject | |
![]() | parent : SoundObjectContainer [read-only] parent container. | SoundObject | |
![]() | pitchBend : Number Channel pitch bend, 1 for halftone, this property can control track after play(). | SoundObject | |
![]() | quantize : Number Synchronizing quantizing, uint in 16th beat. | SoundObject | |
soloTrackNumber : int Solo track number, this value reset when call start() method. | MMLPlayer | ||
![]() | synthesizer : VoiceReference Synthesizer to generate sound | SoundObject | |
trackCount : int [read-only] number of MML playing tracks | MMLPlayer | ||
![]() | trackID : int [read-only] Track id | SoundObject | |
![]() | voice : SiONVoice Voice data to play | SoundObject | |
![]() | volume : Number Channel volume (0:Minimum - 1:Maximum), this property can control track after play(). | SoundObject |
Method | Defined By | ||
---|---|---|---|
MMLPlayer(mml:String = null) constructor | MMLPlayer | ||
![]() | fadeIn(time:Number):void Set fading in. | SoundObject | |
![]() | fadeOut(time:Number):void Set fading out. | SoundObject | |
play():void [override] Play mml data. | MMLPlayer | ||
![]() | reset():void Reset | SoundObject | |
![]() | setVolume(slot:int, volume:Number):void Set volume by index. | SoundObject | |
stop():void [override] Stop mml data. | MMLPlayer |
controlTrackNumber | property |
controlTrackNumber:int
current controling track number
public function get controlTrackNumber():int
public function set controlTrackNumber(value:int):void
data | property |
mml | property |
mml:String
MML text
public function get mml():String
public function set mml(value:String):void
soloTrackNumber | property |
soloTrackNumber:int
Solo track number, this value reset when call start() method. -1 sets no solo tracks.
The default value is -1
.
public function get soloTrackNumber():int
public function set soloTrackNumber(value:int):void
trackCount | property |
trackCount:int
[read-only] number of MML playing tracks
public function get trackCount():int
MMLPlayer | () | Constructor |
public function MMLPlayer(mml:String = null)
constructor
Parametersmml:String (default = null )
|
play | () | method |
override public function play():void
Play mml data.
stop | () | method |
override public function stop():void
Stop mml data.