Packagesora.graybox.smf
Classpublic class SMFTrackEvent
InheritanceSMFTrackEvent Inheritance Object

SMFTrackEventクラスは、スタンダードMIDIファイルのMTrkイベントに相当します. SMFTrackEventオブジェクトは連結リストの要素として機能し、 ひとつのMTrkトラックを表すことができます。

See also

sora.graybox.smf.SMFSequence


Public Properties
 PropertyDefined By
  channel : int = 0
MIDIメッセージのチャンネルの値です.
SMFTrackEvent
  data : ByteArray = null
SysExメッセージ等のバイナリデータです.
SMFTrackEvent
  deltaTime : int = 0
デルタタイム.
SMFTrackEvent
  next : SMFTrackEvent = null
連結リストの次の要素への参照です.
SMFTrackEvent
  type : int = 0x80
MIDIメッセージのイベントタイプの値です.
SMFTrackEvent
  value0 : int = 0
MIDIメッセージの第2バイトの値、または特定の値.
SMFTrackEvent
  value1 : int = 0
MIDIメッセージの第3バイトの値、または特定の値.
SMFTrackEvent
Public Methods
 MethodDefined By
  
SMFTrackEvent(deltaTime:int = 0, type:int = 0x80, ch:int = 0, val0:int = 0, val1:int = 0)
SMFTrackEventオブジェクトを構築します.
SMFTrackEvent
  
clear():void
プロパティをクリアして初期値に戻します.
SMFTrackEvent
Property Detail
channelproperty
public var channel:int = 0

MIDIメッセージのチャンネルの値です.

[プロパティの値の範囲]
Message TypeValueNotes
NoteOff0 - 15
NoteOn0 - 15
Key AfterTouch0 - 15
Control Change0 - 15
Program Change0 - 15
Channel AfterTouch0 - 15
PitchBend Change0 - 15
System Exclusive [F0]0
MIDI Time Code0
Song Position0
Song Select0
Tune Request0
System Exclusive [F7]0
Timing Clock0
Start0
Continue0
Stop0
Active Sensing0
System Reset0
MetaType0

dataproperty 
public var data:ByteArray = null

SysExメッセージ等のバイナリデータです.

[プロパティの値の範囲]
Message TypeValueNotes
NoteOffnull
NoteOnnull
Key AfterTouchnull
Control Changenull
Program Changenull
Channel AfterTouchnull
PitchBend Changenull
System Exclusive [F0]Message Data
MIDI Time Codenull
Song Positionnull
Song Selectnull
Tune Requestnull
System Exclusive [F7]Message Data
Timing Clocknull
Startnull
Continuenull
Stopnull
Active Sensingnull
System Resetnull
MetaTypeMeta Event Data

deltaTimeproperty 
public var deltaTime:int = 0

デルタタイム.

nextproperty 
public var next:SMFTrackEvent = null

連結リストの次の要素への参照です.

typeproperty 
public var type:int = 0x80

MIDIメッセージのイベントタイプの値です.

[プロパティの値の範囲]
Message TypeValueNotes
NoteOff0x80
NoteOn0x90
Key AfterTouch0xA0
Control Change0xB0
Program Change0xC0
Channel AfterTouch0xD0
PitchBend Change0xE0
System Exclusive [F0]0xF0
MIDI Time Code0xF1
Song Position0xF2
Song Select0xF3
Tune Request0xF6
System Exclusive [F7]0xF7
Timing Clock0xF8
Start0xFA
Continue0xFB
Stop0xFC
Active Sensing0xFE
System Reset0xFF
MetaType0xFF00 - 0xFF7F

value0property 
public var value0:int = 0

MIDIメッセージの第2バイトの値、または特定の値.

[プロパティの値の範囲]
Message TypeValueNotes
NoteOff0 - 127Note Number
NoteOn0 - 127Note Number
Key AfterTouch0 - 127Note Number
Control Change0 - 127CC Number
Program Change0 - 127Program Number
Channel AfterTouch0 - 127Value
PitchBend Change0 - 127Value LSB
System Exclusive [F0]0
MIDI Time Code0 - 127Value
Song Position0 - 127Value LSB
Song Select0 - 127Song Number
Tune Request0
System Exclusive [F7]0
Timing Clock0
Start0
Continue0
Stop0
Active Sensing0
System Reset0
MetaType0 or value(※) (※)

FF00 sequence number [0 - 65535]

FF20 channel prefix [0 - 15]

FF2F end of track [0]

FF51 set tempo [0 - 16777215]

value1property 
public var value1:int = 0

MIDIメッセージの第3バイトの値、または特定の値.

[プロパティの値の範囲]
Channel MessageValueNotes
NoteOff0
NoteOn0 - 127Velocity
Key AfterTouch0 - 127Value
Control Change0 - 127Value
Program Change0
Channel AfterTouch0
PitchBend Change0 - 127Value MSB
System Common MessageValueNotes
System Exclusive [F0]0
MIDI Time Code0
Song Position0 - 127Value MSB
Song Select0
Tune Request0
System Exclusive [F7]0
System RealTime MessageValueNotes
Timing Clock0
Start0
Continue0
Stop0
Active Sensing0
System Reset0
Meta Message (SMF Track Event)ValueNotes
MetaType0

Constructor Detail
SMFTrackEvent()Constructor
public function SMFTrackEvent(deltaTime:int = 0, type:int = 0x80, ch:int = 0, val0:int = 0, val1:int = 0)

SMFTrackEventオブジェクトを構築します.

Parameters
deltaTime:int (default = 0) — デルタタイム
 
type:int (default = 0x80) — イベントタイプ
 
ch:int (default = 0) — チャンネル
 
val0:int (default = 0) — MIDIメッセージの第2バイトの値
 
val1:int (default = 0) — MIDIメッセージの第3バイトの値
Method Detail
clear()method
public function clear():void

プロパティをクリアして初期値に戻します.