Packageorg.si.sion.sequencer.base
Classpublic class MMLEvent
InheritanceMMLEvent Inheritance Object

MML event.



Public Properties
 PropertyDefined By
  data : int = 0
Event data.
MMLEvent
  id : int = 0
Event ID.
MMLEvent
  jump : MMLEvent
Pointer refered by repeating.
MMLEvent
  length : int = 0
Prcessing length.
MMLEvent
  next : MMLEvent
Next event pointer in an event chain.
MMLEvent
  nopEvent : MMLEvent
[static] NOP event
MMLEvent
Public Methods
 MethodDefined By
  
MMLEvent(id:int = 0, data:int = 0, length:int = 0)
Constructor
MMLEvent
  
free():void
free this event to reuse.
MMLEvent
  
getParameters(param:Vector.<int>, length:int):MMLEvent
Get parameters as an array.
MMLEvent
  
initialize(id:int, data:int, length:int):MMLEvent
Initializes
MMLEvent
  
pack():int
Pack to int.
MMLEvent
  
toString():String
Format as "#id; data"
MMLEvent
  
unpack(d:int):void
Unpack from int.
MMLEvent
Public Constants
 ConstantDefined By
  COMMAND_MAX : int = 128
[static] Maximum value of event id.
MMLEvent
  DEBUG_INFO : int = 34
[static]
MMLEvent
  DRIVER_NOTE : int = 37
[static]
MMLEvent
  FINE_VOLUME : int = 13
[static]
MMLEvent
  GLOBAL_WAIT : int = 30
[static]
MMLEvent
  INPUT_PIPE : int = 22
[static]
MMLEvent
  INTERNAL_CALL : int = 35
[static]
MMLEvent
  INTERNAL_WAIT : int = 36
[static]
MMLEvent
  KEY_ON_DELAY : int = 8
[static]
MMLEvent
  MOD_PARAM : int = 21
[static]
MMLEvent
  MOD_TYPE : int = 20
[static]
MMLEvent
  NOP : int = 0
[static]
MMLEvent
  NOTE : int = 3
[static]
MMLEvent
  OUTPUT_PIPE : int = 23
[static]
MMLEvent
  PARAMETER : int = 25
[static]
MMLEvent
  PITCHBEND : int = 16
[static]
MMLEvent
  PROCESS : int = 1
[static]
MMLEvent
  QUANT_COUNT : int = 10
[static]
MMLEvent
  QUANT_RATIO : int = 9
[static]
MMLEvent
  REGISTER : int = 33
[static]
MMLEvent
  REPEAT_ALL : int = 24
[static]
MMLEvent
  REPEAT_BEGIN : int = 17
[static]
MMLEvent
  REPEAT_BREAK : int = 18
[static]
MMLEvent
  REPEAT_END : int = 19
[static]
MMLEvent
  REST : int = 2
[static]
MMLEvent
  SEQUENCE_HEAD : int = 26
[static]
MMLEvent
  SEQUENCE_TAIL : int = 27
[static]
MMLEvent
  SLUR : int = 14
[static]
MMLEvent
  SLUR_WEAK : int = 15
[static]
MMLEvent
  SYSTEM_EVENT : int = 28
[static]
MMLEvent
  TABLE_EVENT : int = 29
[static]
MMLEvent
  TEMPO : int = 31
[static]
MMLEvent
  TIMER : int = 32
[static]
MMLEvent
  USER_DEFINE : int = 64
[static] Event id for the first user defined command.
MMLEvent
  VOLUME : int = 11
[static]
MMLEvent
  VOLUME_SHIFT : int = 12
[static]
MMLEvent
Property Detail
dataproperty
public var data:int = 0

Event data.

idproperty 
public var id:int = 0

Event ID.

jumpproperty 
public var jump:MMLEvent

Pointer refered by repeating.

lengthproperty 
public var length:int = 0

Prcessing length.

nextproperty 
public var next:MMLEvent

Next event pointer in an event chain.

nopEventproperty 
public static var nopEvent:MMLEvent

NOP event

Constructor Detail
MMLEvent()Constructor
public function MMLEvent(id:int = 0, data:int = 0, length:int = 0)

Constructor

Parameters
id:int (default = 0)
 
data:int (default = 0)
 
length:int (default = 0)
Method Detail
free()method
public function free():void

free this event to reuse.

getParameters()method 
public function getParameters(param:Vector.<int>, length:int):MMLEvent

Get parameters as an array.

Parameters

param:Vector.<int> — Reference to get parameters.
 
length:int — Max parameters count to get.

Returns
MMLEvent — The last parameter event.
initialize()method 
public function initialize(id:int, data:int, length:int):MMLEvent

Initializes

Parameters

id:int — Event ID.
 
data:int — Event data. Recommend that the value <= 0xffffff.
 
length:int

Returns
MMLEvent
pack()method 
public function pack():int

Pack to int.

Returns
int
toString()method 
public function toString():String

Format as "#id; data"

Returns
String
unpack()method 
public function unpack(d:int):void

Unpack from int.

Parameters

d:int

Constant Detail
COMMAND_MAXConstant
public static const COMMAND_MAX:int = 128

Maximum value of event id.

DEBUG_INFOConstant 
public static const DEBUG_INFO:int = 34

DRIVER_NOTEConstant 
public static const DRIVER_NOTE:int = 37

FINE_VOLUMEConstant 
public static const FINE_VOLUME:int = 13

GLOBAL_WAITConstant 
public static const GLOBAL_WAIT:int = 30

INPUT_PIPEConstant 
public static const INPUT_PIPE:int = 22

INTERNAL_CALLConstant 
public static const INTERNAL_CALL:int = 35

INTERNAL_WAITConstant 
public static const INTERNAL_WAIT:int = 36

KEY_ON_DELAYConstant 
public static const KEY_ON_DELAY:int = 8

MOD_PARAMConstant 
public static const MOD_PARAM:int = 21

MOD_TYPEConstant 
public static const MOD_TYPE:int = 20

NOPConstant 
public static const NOP:int = 0

NOTEConstant 
public static const NOTE:int = 3

OUTPUT_PIPEConstant 
public static const OUTPUT_PIPE:int = 23

PARAMETERConstant 
public static const PARAMETER:int = 25

PITCHBENDConstant 
public static const PITCHBEND:int = 16

PROCESSConstant 
public static const PROCESS:int = 1

QUANT_COUNTConstant 
public static const QUANT_COUNT:int = 10

QUANT_RATIOConstant 
public static const QUANT_RATIO:int = 9

REGISTERConstant 
public static const REGISTER:int = 33

REPEAT_ALLConstant 
public static const REPEAT_ALL:int = 24

REPEAT_BEGINConstant 
public static const REPEAT_BEGIN:int = 17

REPEAT_BREAKConstant 
public static const REPEAT_BREAK:int = 18

REPEAT_ENDConstant 
public static const REPEAT_END:int = 19

RESTConstant 
public static const REST:int = 2

SEQUENCE_HEADConstant 
public static const SEQUENCE_HEAD:int = 26

SEQUENCE_TAILConstant 
public static const SEQUENCE_TAIL:int = 27

SLURConstant 
public static const SLUR:int = 14

SLUR_WEAKConstant 
public static const SLUR_WEAK:int = 15

SYSTEM_EVENTConstant 
public static const SYSTEM_EVENT:int = 28

TABLE_EVENTConstant 
public static const TABLE_EVENT:int = 29

TEMPOConstant 
public static const TEMPO:int = 31

TIMERConstant 
public static const TIMER:int = 32

USER_DEFINEConstant 
public static const USER_DEFINE:int = 64

Event id for the first user defined command.

VOLUMEConstant 
public static const VOLUME:int = 11

VOLUME_SHIFTConstant 
public static const VOLUME_SHIFT:int = 12