Packageorg.si.sion.module
Interfacepublic interface ISiOPMWaveInterface
Implementors SiONData, SiONDriver, SiONVoice

Interface to set SiOPMWaveBase based classes.



Public Methods
 MethodDefined By
  
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.
ISiOPMWaveInterface
  
setSamplerWave(index:int, data:*, ignoreNoteOff:Boolean = false, pan:int = 0, srcChannelCount:int = 2, channelCount:int = 0):SiOPMWaveSamplerData
Set sampler wave data refered by %10.
ISiOPMWaveInterface
Method Detail
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

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