Package | org.si.sion.sequencer.base |
Class | public class MMLData |
Inheritance | MMLData ![]() |
Subclasses | SiMMLData |
Property | Defined By | ||
---|---|---|---|
author : String Author | MMLData | ||
bpm : Number Beat per minutes, set 0 when this data depends on driver's BPM. | MMLData | ||
defaultExpressionMode : int default expression mode | MMLData | ||
defaultFPS : int default FPS | MMLData | ||
defaultVCommandShift : int default velocity command shift | MMLData | ||
defaultVelocityMode : int default velocity mode | MMLData | ||
globalSequence : MMLSequence Global sequence | MMLData | ||
hasRepeatAll : Boolean [read-only] does this song have all repeat comand ? | MMLData | ||
sequenceCount : int [read-only] sequence count | MMLData | ||
sequenceGroup : MMLSequenceGroup Sequence group | MMLData | ||
systemCommands : Array [read-only] system commands that can not be parsed. | MMLData | ||
tcommandMode : int mode of t command | MMLData | ||
tcommandResolution : Number resolution of t command | MMLData | ||
tickCount : int [read-only] Get song length by tick count (1920 for wholetone). | MMLData | ||
title : String Title | MMLData |
Method | Defined By | ||
---|---|---|---|
MMLData() | MMLData | ||
Append new sequence. | MMLData | ||
clear():void Clear all parameters and free all sequence groups. | MMLData | ||
getSequence(index:int):MMLSequence Get sequence. | MMLData |
Constant | Defined By | ||
---|---|---|---|
TCOMMAND_BPM : int = 0 [static] specify tcommand argument by BPM | MMLData | ||
TCOMMAND_FRAME : int = 2 [static] specify tcommand argument by frame count | MMLData | ||
TCOMMAND_TIMERB : int = 1 [static] specify tcommand argument by OPNA's TIMERB with 48ticks/beat | MMLData |
author | property |
public var author:String
Author
bpm | property |
bpm:Number
Beat per minutes, set 0 when this data depends on driver's BPM.
public function get bpm():Number
public function set bpm(value:Number):void
defaultExpressionMode | property |
public var defaultExpressionMode:int
default expression mode
defaultFPS | property |
public var defaultFPS:int
default FPS
defaultVCommandShift | property |
public var defaultVCommandShift:int
default velocity command shift
defaultVelocityMode | property |
public var defaultVelocityMode:int
default velocity mode
globalSequence | property |
public var globalSequence:MMLSequence
Global sequence
hasRepeatAll | property |
hasRepeatAll:Boolean
[read-only] does this song have all repeat comand ?
public function get hasRepeatAll():Boolean
sequenceCount | property |
sequenceCount:int
[read-only] sequence count
public function get sequenceCount():int
sequenceGroup | property |
public var sequenceGroup:MMLSequenceGroup
Sequence group
systemCommands | property |
systemCommands:Array
[read-only] system commands that can not be parsed. Examples are for mml string "#ABC5{def}ghi;". the array elements are Object, and it has following properties.
public function get systemCommands():Array
tcommandMode | property |
public var tcommandMode:int
mode of t command
tcommandResolution | property |
public var tcommandResolution:Number
resolution of t command
tickCount | property |
tickCount:int
[read-only] Get song length by tick count (1920 for wholetone).
public function get tickCount():int
title | property |
public var title:String
Title
MMLData | () | Constructor |
public function MMLData()
appendNewSequence | () | method |
public function appendNewSequence(sequence:Vector.<MMLEvent> = null):MMLSequence
Append new sequence.
Parameters
sequence:Vector.<MMLEvent> (default = null ) — event list for new sequence. when null, create empty sequence.
|
MMLSequence — created sequence
|
clear | () | method |
public function clear():void
Clear all parameters and free all sequence groups.
getSequence | () | method |
public function getSequence(index:int):MMLSequence
Get sequence.
Parameters
index:int — The index of seuence
|
MMLSequence |
TCOMMAND_BPM | Constant |
public static const TCOMMAND_BPM:int = 0
specify tcommand argument by BPM
TCOMMAND_FRAME | Constant |
public static const TCOMMAND_FRAME:int = 2
specify tcommand argument by frame count
TCOMMAND_TIMERB | Constant |
public static const TCOMMAND_TIMERB:int = 1
specify tcommand argument by OPNA's TIMERB with 48ticks/beat