Packageorg.si.sion
Classpublic class SiONData
InheritanceSiONData Inheritance SiMMLData Inheritance MMLData Inheritance Object
Implements ISiOPMWaveInterface
Subclasses SiONDataConverterSMF

The SiONData class provides musical score (and voice settings) data of SiON.



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
 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
 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
 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
  
SiONData
 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
  
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
  
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
  
setPCMVoice(index:int, voice:SiONVoice):void
Set pcm voice
SiONData
  
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
  
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
  
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
  
Set sampler table
SiONData
  
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
Constructor Detail
SiONData()Constructor
public function SiONData()



Method Detail
setPCMData()method
public function 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.

Parameters

index:int
 
data:Vector.<Number>
 
samplingOctave:int (default = 5)
 
keyRangeFrom:int (default = 0)
 
keyRangeTo:int (default = 127)
 
isSourceDataStereo:Boolean (default = false)

Returns
SiOPMWavePCMData

See also

setPCMSound()method 
public function 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.

Parameters

index:int
 
sound:Sound
 
samplingOctave:int (default = 5)
 
keyRangeFrom:int (default = 0)
 
keyRangeTo:int (default = 127)

Returns
SiOPMWavePCMData

See also

setPCMVoice()method 
public function setPCMVoice(index:int, voice:SiONVoice):void

Set pcm voice

Parameters

index:int — PCM data number.
 
voice:SiONVoice — pcm voice to set, ussualy from SiONSoundFont

setPCMWave()method 
public function 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.

Parameters

index:int — PCM data number.
 
data:* — wave data, Sound, Vector.<Number> or Vector.<int> is available. The Sound instance is extracted internally, the maximum length to extract is SiOPMWavePCMData.maxSampleLengthFromSound[samples].
 
samplingNote:Number (default = 69) — Sampling wave's original note number, this allows decimal number
 
keyRangeFrom:int (default = 0) — Assigning key range starts from (not implemented in current version)
 
keyRangeTo:int (default = 127) — Assigning key range ends at (not implemented in current version)
 
srcChannelCount:int (default = 2) — channel count of source data, 1 for monoral, 2 for stereo.
 
channelCount:int (default = 0) — channel count of this data, 1 for monoral, 2 for stereo, 0 sets same with srcChannelCount.

Returns
SiOPMWavePCMData

See also

setSamplerData()method 
public function 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.

Parameters

index:int
 
data:Vector.<Number>
 
ignoreNoteOff:Boolean (default = false)
 
channelCount:int (default = 1)

Returns
SiOPMWaveSamplerData

See also

setSamplerSound()method 
public function 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.

Parameters

index:int
 
sound:Sound
 
ignoreNoteOff:Boolean (default = false)
 
channelCount:int (default = 2)

Returns
SiOPMWaveSamplerData

See also

setSamplerTable()method 
public function setSamplerTable(bank:int, table:SiOPMWaveSamplerTable):void

Set sampler table

Parameters

bank:int — bank number
 
table:SiOPMWaveSamplerTable — sampler table class, ussualy from SiONSoundFont

See also

SiONSoundFont
setSamplerWave()method 
public function setSamplerWave(index:int, data:*, ignoreNoteOff:Boolean = false, pan:int = 0, srcChannelCount:int = 2, channelCount:int = 0):SiOPMWaveSamplerData

Set sampler wave data refered by %10.

Parameters

index:int — note number. 0-127 for bank0, 128-255 for bank1.
 
data:* — wave data, Sound, Vector.<Number> or Vector.<int> is available. The Sound is extracted when the length is shorter than SiOPMWaveSamplerData.extractThreshold[msec].
 
ignoreNoteOff:Boolean (default = false) — True to set ignoring note off.
 
pan:int (default = 0) — pan of this sample [-64 - 64].
 
srcChannelCount:int (default = 2) — channel count of source data, 1 for monoral, 2 for stereo.
 
channelCount:int (default = 0) — channel count of this data, 1 for monoral, 2 for stereo, 0 sets same with srcChannelCount.

Returns
SiOPMWaveSamplerData — created data instance

See also