Packageorg.si.sion.sequencer.base
Classpublic class MMLData
InheritanceMMLData Inheritance Object
Subclasses SiMMLData

MML data class. MMLData > MMLSequenceGroup > MMLSequence > MMLEvent (">" meanse "has a").



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
MMLData
  
appendNewSequence(sequence:Vector.<MMLEvent> = null):MMLSequence
Append new sequence.
MMLData
  
clear():void
Clear all parameters and free all sequence groups.
MMLData
  
Get sequence.
MMLData
Public Constants
 ConstantDefined 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
Property Detail
authorproperty
public var author:String

Author

bpmproperty 
bpm:Number

Beat per minutes, set 0 when this data depends on driver's BPM.


Implementation
    public function get bpm():Number
    public function set bpm(value:Number):void
defaultExpressionModeproperty 
public var defaultExpressionMode:int

default expression mode

defaultFPSproperty 
public var defaultFPS:int

default FPS

defaultVCommandShiftproperty 
public var defaultVCommandShift:int

default velocity command shift

defaultVelocityModeproperty 
public var defaultVelocityMode:int

default velocity mode

globalSequenceproperty 
public var globalSequence:MMLSequence

Global sequence

hasRepeatAllproperty 
hasRepeatAll:Boolean  [read-only]

does this song have all repeat comand ?


Implementation
    public function get hasRepeatAll():Boolean
sequenceCountproperty 
sequenceCount:int  [read-only]

sequence count


Implementation
    public function get sequenceCount():int
sequenceGroupproperty 
public var sequenceGroup:MMLSequenceGroup

Sequence group

systemCommandsproperty 
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.


Implementation
    public function get systemCommands():Array
tcommandModeproperty 
public var tcommandMode:int

mode of t command

tcommandResolutionproperty 
public var tcommandResolution:Number

resolution of t command

tickCountproperty 
tickCount:int  [read-only]

Get song length by tick count (1920 for wholetone).


Implementation
    public function get tickCount():int
titleproperty 
public var title:String

Title

Constructor Detail
MMLData()Constructor
public function MMLData()



Method Detail
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.

Returns
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

Returns
MMLSequence
Constant Detail
TCOMMAND_BPMConstant
public static const TCOMMAND_BPM:int = 0

specify tcommand argument by BPM

TCOMMAND_FRAMEConstant 
public static const TCOMMAND_FRAME:int = 2

specify tcommand argument by frame count

TCOMMAND_TIMERBConstant 
public static const TCOMMAND_TIMERB:int = 1

specify tcommand argument by OPNA's TIMERB with 48ticks/beat