Packageorg.si.sion.midi
Classpublic class SiONDataConverterSMF
InheritanceSiONDataConverterSMF Inheritance SiONData Inheritance SiMMLData Inheritance MMLData Inheritance Object

Standard MIDI File converter



Public Properties
 PropertyDefined By
 Inheritedauthor : String
Author
MMLData
 Inheritedbpm : Number
Beat per minutes, set 0 when this data depends on driver's BPM.
MMLData
 InheriteddefaultExpressionMode : int
default expression mode
MMLData
 InheriteddefaultFPS : int
default FPS
MMLData
 InheriteddefaultVCommandShift : int
default velocity command shift
MMLData
 InheriteddefaultVelocityMode : int
default velocity mode
MMLData
 Inheritedenvelopes : Vector.<SiMMLEnvelopTable>
envelope tables
SiMMLData
 InheritedfmVoices : Vector.<SiMMLVoice>
FM voice data
SiMMLData
 InheritedglobalSequence : MMLSequence
Global sequence
MMLData
 InheritedhasRepeatAll : Boolean
[read-only] does this song have all repeat comand ?
MMLData
  midiModule : MIDIModule
MIDI sound module object to play
SiONDataConverterSMF
 InheritedpcmVoices : Vector.<SiMMLVoice>
pcm data (log-transformed)
SiMMLData
 InheritedsamplerTables : Vector.<SiOPMWaveSamplerTable>
wave data
SiMMLData
 InheritedsequenceCount : int
[read-only] sequence count
MMLData
 InheritedsequenceGroup : MMLSequenceGroup
Sequence group
MMLData
  smfData : SMFData
Standard MIDI file data to play
SiONDataConverterSMF
 InheritedsystemCommands : Array
[read-only] system commands that can not be parsed.
MMLData
 InheritedtcommandMode : int
mode of t command
MMLData
 InheritedtcommandResolution : Number
resolution of t command
MMLData
 InheritedtickCount : int
[read-only] Get song length by tick count (1920 for wholetone).
MMLData
 Inheritedtitle : String
Title
MMLData
  useMIDIModuleEffector : Boolean = true
use MIDI modules effector
SiONDataConverterSMF
 Inheritedvoices : Vector.<SiMMLVoice>
[read-only] [NOT RECOMMENDED] This property is for the compatibility of previous versions, please use fmVoices instead of this.
SiMMLData
 InheritedwaveTables : Vector.<SiOPMWaveTable>
wave tables
SiMMLData
Public Methods
 MethodDefined By
  
SiONDataConverterSMF(smfData:SMFData = null, midiModule:MIDIModule = null)
Pass SMFData and MIDIModule
SiONDataConverterSMF
 Inherited
appendNewSequence(sequence:Vector.<MMLEvent> = null):MMLSequence
Append new sequence.
MMLData
 Inherited
clear():void
[override] Clear all parameters and free all sequence groups.
SiMMLData
 Inherited
Get sequence.
MMLData
 Inherited
setEnvelopTable(index:int, envelope:SiMMLEnvelopTable):void
Set envelope table data refered by @@,na,np,nt,nf,_@@,_na,_np,_nt and _nf.
SiMMLData
 Inherited
setPCMData(index:int, data:Vector.<Number>, samplingOctave:int = 5, keyRangeFrom:int = 0, keyRangeTo:int = 127, isSourceDataStereo:Boolean = false):SiOPMWavePCMData
[NOT RECOMMENDED] This function is for a compatibility with previous versions, please use setPCMWave instead of this function.
SiONData
 Inherited
setPCMSound(index:int, sound:Sound, samplingOctave:int = 5, keyRangeFrom:int = 0, keyRangeTo:int = 127):SiOPMWavePCMData
[NOT RECOMMENDED] This function is for a compatibility with previous versions, please use setPCMWave instead of this function.
SiONData
 Inherited
setPCMVoice(index:int, voice:SiONVoice):void
Set pcm voice
SiONData
 Inherited
setPCMWave(index:int, data:*, samplingNote:Number = 69, keyRangeFrom:int = 0, keyRangeTo:int = 127, srcChannelCount:int = 2, channelCount:int = 0):SiOPMWavePCMData
Set PCM wave data rederd by %7.
SiONData
 Inherited
setSamplerData(index:int, data:Vector.<Number>, ignoreNoteOff:Boolean = false, channelCount:int = 1):SiOPMWaveSamplerData
[NOT RECOMMENDED] This function is for a compatibility with previous versions, please use setSamplerWave instead of this function.
SiONData
 Inherited
setSamplerSound(index:int, sound:Sound, ignoreNoteOff:Boolean = false, channelCount:int = 2):SiOPMWaveSamplerData
[NOT RECOMMENDED] This function is for a compatibility with previous versions, please use setSamplerWave instead of this function.
SiONData
 Inherited
Set sampler table
SiONData
 Inherited
setSamplerWave(index:int, data:*, ignoreNoteOff:Boolean = false, pan:int = 0, srcChannelCount:int = 2, channelCount:int = 0):SiOPMWaveSamplerData
Set sampler wave data refered by %10.
SiONData
 Inherited
setVoice(index:int, voice:SiMMLVoice):void
Set wave table data refered by %6.
SiMMLData
 Inherited
setWaveTable(index:int, data:Vector.<Number>):SiOPMWaveTable
Set wave table data refered by %4.
SiMMLData
Public Constants
 ConstantDefined By
 InheritedTCOMMAND_BPM : int = 0
[static] specify tcommand argument by BPM
MMLData
 InheritedTCOMMAND_FRAME : int = 2
[static] specify tcommand argument by frame count
MMLData
 InheritedTCOMMAND_TIMERB : int = 1
[static] specify tcommand argument by OPNA's TIMERB with 48ticks/beat
MMLData
Property Detail
midiModuleproperty
midiModule:MIDIModule

MIDI sound module object to play


Implementation
    public function get midiModule():MIDIModule
    public function set midiModule(value:MIDIModule):void
smfDataproperty 
smfData:SMFData

Standard MIDI file data to play


Implementation
    public function get smfData():SMFData
    public function set smfData(value:SMFData):void
useMIDIModuleEffectorproperty 
public var useMIDIModuleEffector:Boolean = true

use MIDI modules effector

Constructor Detail
SiONDataConverterSMF()Constructor
public function SiONDataConverterSMF(smfData:SMFData = null, midiModule:MIDIModule = null)

Pass SMFData and MIDIModule

Parameters
smfData:SMFData (default = null)
 
midiModule:MIDIModule (default = null)