| Package | org.si.sion.sequencer.base | 
| Class | public class MMLSequencer | 
| Inheritance | MMLSequencer    Object | 
| Subclasses | SiMMLSequencer | 
| Property | Defined By | ||
|---|---|---|---|
| sampleRate : int  Audio setting, sampling ratio.  | MMLSequencer | ||
| setting : MMLParserSetting  MML parser setting.  | MMLSequencer | ||
| Method | Defined By | ||
|---|---|---|---|
 Default constructor initializes event handlers.  | MMLSequencer | ||
compile(interval:int = 1000):Number  Parse mml string.  | MMLSequencer | ||
getEventID(mmlCommand:String):int  Get MMLEvent id by mml command letter.  | MMLSequencer | ||
getEventLetter(eventID:int):String  Get MML command letters by event id.  | MMLSequencer | ||
prepareCompile(data:MMLData, mml:String):Boolean  Prepare to compile mml string.  | MMLSequencer | ||
setGlobalSequence(seq:MMLSequence):void  Set global sequence.  | MMLSequencer | ||
| Method | Defined By | ||
|---|---|---|---|
 default operation for MMLEvent.GLOBAL_WAIT.  | MMLSequencer | ||
 default operation for MMLEvent.INTERNAL_CALL.  | MMLSequencer | ||
 default operation for MMLEvent.INTERNAL_WAIT.  | MMLSequencer | ||
 default operation for MMLEvent.NOP.  | MMLSequencer | ||
 default operation for MMLEvent.PROCESS.  | MMLSequencer | ||
 default operation for MMLEvent.REPEAT_ALL.  | MMLSequencer | ||
 default operation for MMLEvent.REPEAT_BEGIN.  | MMLSequencer | ||
 default operation for MMLEvent.REPEAT_BREAK.  | MMLSequencer | ||
 default operation for MMLEvent.REPEAT_END.  | MMLSequencer | ||
 default operation for MMLEvent.SEQUENCE_TAIL.  | MMLSequencer | ||
 default operation for MMLEvent.TEMPO.  | MMLSequencer | ||
 default operation for MMLEvent.TIMER.  | MMLSequencer | ||
 dummy operation for MMLEvent.PROCESS.  | MMLSequencer | ||
 Operates nothing.  | MMLSequencer | ||
executeGlobalSequence():int  execute global sequence.  | MMLSequencer | ||
isEndGlobalSequence():Boolean  check global sequences pointer acheives to the end.  | MMLSequencer | ||
newMMLEventListener(letter:String, func:Function, isGlobal:Boolean = false):int  Register new MMLEvent letter.  | MMLSequencer | ||
onAfterCompile(seqGroup:MMLSequenceGroup):void  Callback after parse.  | MMLSequencer | ||
onBeat(delaySamples:int, beatCounter:int):void  Callback on every 16th beats.  | MMLSequencer | ||
onBeforeCompile(mml:String):String  Callback before parse.  | MMLSequencer | ||
 Callback on processing.  | MMLSequencer | ||
onTableParse(prev:MMLEvent, table:String):void  Callback when table event was found.  | MMLSequencer | ||
onTempoChanged(tempoRatio:Number):void  Callback when the tempo is changed.  | MMLSequencer | ||
onTimerInterruption():void  Callback when streaming interrupted by timer .  | MMLSequencer | ||
processMMLExecutor(exe:MMLExecutor, bufferSampleCount:int):Boolean  Processing audio by one executor.  | MMLSequencer | ||
setMMLEventListener(id:int, func:Function, isGlobal:Boolean = false):void  Similar with an addEventListener(), but only one listener can be set for one event.  | MMLSequencer | ||
startGlobalSequence():void  start global sequence.  | MMLSequencer | ||
| Constant | Defined By | ||
|---|---|---|---|
| FIXED_BITS : int = 8 [static]  bits for fixed decimal   | MMLSequencer | ||
| FIXED_FILTER : int [static]  filter for decimal fraction area   | MMLSequencer | ||
| _eventCommandLetter | property | 
_sion_internal var _eventCommandLetter:Array| sampleRate | property | 
public var sampleRate:intAudio setting, sampling ratio. The value is restricted as 22050 or 44100.
| setting | property | 
public var setting:MMLParserSettingMML parser setting.
| MMLSequencer | () | Constructor | 
public function MMLSequencer()Default constructor initializes event handlers.
| _default_onGlobalWait | () | method | 
 protected function _default_onGlobalWait(e:MMLEvent):MMLEventdefault operation for MMLEvent.GLOBAL_WAIT.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onInternalCall | () | method | 
 protected function _default_onInternalCall(e:MMLEvent):MMLEventdefault operation for MMLEvent.INTERNAL_CALL.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onInternalWait | () | method | 
 protected function _default_onInternalWait(e:MMLEvent):MMLEventdefault operation for MMLEvent.INTERNAL_WAIT.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onNoOperation | () | method | 
 protected function _default_onNoOperation(e:MMLEvent):MMLEventdefault operation for MMLEvent.NOP.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onProcess | () | method | 
 protected function _default_onProcess(e:MMLEvent):MMLEventdefault operation for MMLEvent.PROCESS.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onRepeatAll | () | method | 
 protected function _default_onRepeatAll(e:MMLEvent):MMLEventdefault operation for MMLEvent.REPEAT_ALL.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onRepeatBegin | () | method | 
 protected function _default_onRepeatBegin(e:MMLEvent):MMLEventdefault operation for MMLEvent.REPEAT_BEGIN.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onRepeatBreak | () | method | 
 protected function _default_onRepeatBreak(e:MMLEvent):MMLEventdefault operation for MMLEvent.REPEAT_BREAK.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onRepeatEnd | () | method | 
 protected function _default_onRepeatEnd(e:MMLEvent):MMLEventdefault operation for MMLEvent.REPEAT_END.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onSequenceTail | () | method | 
 protected function _default_onSequenceTail(e:MMLEvent):MMLEventdefault operation for MMLEvent.SEQUENCE_TAIL.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onTempo | () | method | 
 protected function _default_onTempo(e:MMLEvent):MMLEventdefault operation for MMLEvent.TEMPO.
Parameters
e:MMLEvent | 
MMLEvent | 
| _default_onTimer | () | method | 
 protected function _default_onTimer(e:MMLEvent):MMLEventdefault operation for MMLEvent.TIMER.
Parameters
e:MMLEvent | 
MMLEvent | 
| _dummy_onProcess | () | method | 
 protected function _dummy_onProcess(e:MMLEvent):MMLEventdummy operation for MMLEvent.PROCESS.
Parameters
e:MMLEvent | 
MMLEvent | 
| _nop | () | method | 
| compile | () | method | 
 public function compile(interval:int = 1000):NumberParse mml string. Calls onAfterCompile() inside.
Parameters
interval:int (default = 1000) — Interval to interrupt parsing [ms]. Set 0 to parse at once.
           | 
Number — Return compile progression. Returns 1 when its finished, or when preparation has not completed.
          | 
| executeGlobalSequence | () | method | 
 protected function executeGlobalSequence():intexecute global sequence. returns executing sample length.
Returnsint | 
| getEventID | () | method | 
 public function getEventID(mmlCommand:String):intGet MMLEvent id by mml command letter.
Parameters
mmlCommand:String — letter of MML command.
           | 
int — Event id. Returns 0 if not found.
          | 
| getEventLetter | () | method | 
 public function getEventLetter(eventID:int):StringGet MML command letters by event id.
Parameters
eventID:int — Event id.
           | 
String — letter of MML command. Returns null if not found.
          | 
| isEndGlobalSequence | () | method | 
 protected function isEndGlobalSequence():Booleancheck global sequences pointer acheives to the end.
ReturnsBoolean | 
| newMMLEventListener | () | method | 
 protected function newMMLEventListener(letter:String, func:Function, isGlobal:Boolean = false):intRegister new MMLEvent letter.
Parameters
letter:String — The letter of the event on mml.
           | |
func:Function — The functor of the event called back when its processing.
           | |
isGlobal:Boolean (default = false) | 
int — The ID of the event. This value is greater than or equal to MMLEvent.USER_DEFINE.
          | 
| onAfterCompile | () | method | 
 protected function onAfterCompile(seqGroup:MMLSequenceGroup):voidCallback after parse. This function is called from parse() after parseing.
Parameters
seqGroup:MMLSequenceGroup | 
| onBeat | () | method | 
 protected function onBeat(delaySamples:int, beatCounter:int):voidCallback on every 16th beats.
Parameters
delaySamples:int | |
beatCounter:int | 
| onBeforeCompile | () | method | 
 protected function onBeforeCompile(mml:String):StringCallback before parse. This function is called from parse() before parseing.
Parameters
mml:String — The mml string to parse.
           | 
String — The mml string you want to parse. Parses with default mml string when you return null.
          | 
| onProcess | () | method | 
 protected function onProcess(length:int, e:MMLEvent):voidCallback on processing. This function is called from process().
Parameters
length:int — Sample length to process calculated from settings.
           | |
e:MMLEvent — MMLEvent that calls onProcess().
          | 
| onTableParse | () | method | 
 protected function onTableParse(prev:MMLEvent, table:String):voidCallback when table event was found.
Parameters
prev:MMLEvent | |
table:String | 
| onTempoChanged | () | method | 
 protected function onTempoChanged(tempoRatio:Number):voidCallback when the tempo is changed.
Parameters
tempoRatio:Number — Ratio of changed tempo and previous tempo.
          | 
| onTimerInterruption | () | method | 
 protected function onTimerInterruption():voidCallback when streaming interrupted by timer .
| prepareCompile | () | method | 
 public function prepareCompile(data:MMLData, mml:String):BooleanPrepare to compile mml string. Calls onBeforeCompile() inside.
Parameters
data:MMLData — Data instance.
           | |
mml:String — MML String.
           | 
Boolean — Returns false when it's not necessary to compile.
          | 
| processMMLExecutor | () | method | 
 protected function processMMLExecutor(exe:MMLExecutor, bufferSampleCount:int):BooleanProcessing audio by one executor. Calls onProcess() inside.
Parameters
exe:MMLExecutor — MMLExecutor to process.
           | |
bufferSampleCount:int — Buffering length of processing samples at once.
           | 
Boolean — Returns true if the sequence already finished.
          | 
| setGlobalSequence | () | method | 
 public function setGlobalSequence(seq:MMLSequence):voidSet global sequence. This function must be called after prepareProcess() and before process().
Parameters
seq:MMLSequence | 
| setMMLEventListener | () | method | 
 protected function setMMLEventListener(id:int, func:Function, isGlobal:Boolean = false):voidSimilar with an addEventListener(), but only one listener can be set for one event.
Parameters
id:int — The ID of the event.
           | |
func:Function — The functor of the event called back when its processing.
          | |
isGlobal:Boolean (default = false) | 
| startGlobalSequence | () | method | 
 protected function startGlobalSequence():voidstart global sequence.
| FIXED_BITS | Constant | 
public static const FIXED_BITS:int = 8bits for fixed decimal
| FIXED_FILTER | Constant | 
public static const FIXED_FILTER:intfilter for decimal fraction area