| Package | org.si.sion.sequencer |
| Class | public class SiMMLSequencer |
| Inheritance | SiMMLSequencer MMLSequencer Object |
| Property | Defined By | ||
|---|---|---|---|
| callbackOnParsingSystemCommand : Function [write-only] function called back when parse system command. | SiMMLSequencer | ||
| currentTrack : SiMMLTrack [read-only] Current working track | SiMMLSequencer | ||
| isEnableChangeBPM : Boolean [read-only] Is enable to change BPM ? | SiMMLSequencer | ||
| isFinished : Boolean [read-only] Is finish buffering ? | SiMMLSequencer | ||
| isReadyToProcess : Boolean [read-only] Is ready to process ? | SiMMLSequencer | ||
| isSequenceFinished : Boolean [read-only] Is finish executing sequence ? | SiMMLSequencer | ||
| processedSampleCount : int [read-only] Processed sample count | SiMMLSequencer | ||
![]() | sampleRate : int Audio setting, sampling ratio. | MMLSequencer | |
![]() | setting : MMLParserSetting MML parser setting. | MMLSequencer | |
| streamWritingBeat : int [read-only] current writing position (16beat count) in streaming buffer | SiMMLSequencer | ||
| streamWritingPositionResidue : int [read-only] current writing position in streaming buffer, always less than length of streaming buffer | SiMMLSequencer | ||
| title : String [read-only] Song title | SiMMLSequencer | ||
| tracks : Vector.<SiMMLTrack> SiMMLTrack list | SiMMLSequencer | ||
| Method | Defined By | ||
|---|---|---|---|
SiMMLSequencer(module:SiOPMModule, eventTriggerOn:Function, eventTriggerOff:Function, tempoChanged:Function) Create new sequencer. | SiMMLSequencer | ||
calcSampleDelay(sampleOffset:int = 0, beat16Offset:Number = 0, quant:Number = 0):Number calculate delay (in sample count) quantized by beat. | SiMMLSequencer | ||
calcSampleLength(beat16:Number):Number calculate length (in sample count). | SiMMLSequencer | ||
![]() | compile(interval:int = 1000):Number Parse mml string. | MMLSequencer | |
dummyProcess(sampleCount:int):void Dummy process. | SiMMLSequencer | ||
![]() | 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 [override] Prepare to compile mml string. | SiMMLSequencer | ||
![]() | setGlobalSequence(seq:MMLSequence):void Set global sequence. | MMLSequencer | |
| callbackOnParsingSystemCommand | property |
callbackOnParsingSystemCommand:Function [write-only] function called back when parse system command. The function type is function(data:SiMMLData, command: : Boolean. Return false to append the command to SiONData.systemCommands.
public function set callbackOnParsingSystemCommand(value:Function):void| currentTrack | property |
currentTrack:SiMMLTrack [read-only] Current working track
public function get currentTrack():SiMMLTrack| isEnableChangeBPM | property |
isEnableChangeBPM:Boolean [read-only] Is enable to change BPM ?
public function get isEnableChangeBPM():Boolean| isFinished | property |
isFinished:Boolean [read-only] Is finish buffering ?
public function get isFinished():Boolean| isReadyToProcess | property |
isReadyToProcess:Boolean [read-only] Is ready to process ?
public function get isReadyToProcess():Boolean| isSequenceFinished | property |
isSequenceFinished:Boolean [read-only] Is finish executing sequence ?
public function get isSequenceFinished():Boolean| processedSampleCount | property |
processedSampleCount:int [read-only] Processed sample count
public function get processedSampleCount():int| streamWritingBeat | property |
streamWritingBeat:int [read-only] current writing position (16beat count) in streaming buffer
public function get streamWritingBeat():int| streamWritingPositionResidue | property |
streamWritingPositionResidue:int [read-only] current writing position in streaming buffer, always less than length of streaming buffer
public function get streamWritingPositionResidue():int| title | property |
title:String [read-only] Song title
public function get title():String| tracks | property |
public var tracks:Vector.<SiMMLTrack>SiMMLTrack list
| SiMMLSequencer | () | Constructor |
public function SiMMLSequencer(module:SiOPMModule, eventTriggerOn:Function, eventTriggerOff:Function, tempoChanged:Function)Create new sequencer.
Parametersmodule:SiOPMModule | |
eventTriggerOn:Function | |
eventTriggerOff:Function | |
tempoChanged:Function |
| _setBeatCallbackFilter | () | method |
_sion_internal function _setBeatCallbackFilter(filter:int):voidSiONTrackEvent.BEAT is called if (beatCount16th & onBeatCallbackFilter) == 0.
Parameters
filter:int |
| calcSampleDelay | () | method |
public function calcSampleDelay(sampleOffset:int = 0, beat16Offset:Number = 0, quant:Number = 0):Numbercalculate delay (in sample count) quantized by beat.
Parameters
sampleOffset:int (default = 0) — Offset in sample count.
| |
beat16Offset:Number (default = 0) — Offset in 16th beat.
| |
quant:Number (default = 0) — Quantizing beat in 16th. The 0 sets no quantization, 1 sets quantization by 16th, 4 sets quantization by 4th beat.
|
Number |
| calcSampleLength | () | method |
public function calcSampleLength(beat16:Number):Numbercalculate length (in sample count).
Parameters
beat16:Number — The beat number in 16th calculating from.
|
Number |
| dummyProcess | () | method |
public function dummyProcess(sampleCount:int):voidDummy process. This funciton must be called after prepareProcess().
Parameters
sampleCount:int — dumming sample count. [NOTICE] This value is rounded by a buffer length. Not an exact value.
|
| prepareCompile | () | method |
override 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.
|