Packageorg.si.sound.synthesizers
Classpublic class SamplerSynth
InheritanceSamplerSynth Inheritance IFlashSoundOperator Inheritance BasicSynth Inheritance VoiceReference Inheritance Object

Sampler Synthesizer



Public Properties
 PropertyDefined By
 InheritedamplitudeModulation : int
amplitude modulation.
BasicSynth
 InheritedattackTime : Number
attack rate (0-1), lower value makes attack slow.
BasicSynth
 Inheritedcutoff : Number
low-pass filter cutoff(0-1).
BasicSynth
 InheritedfilterType : int
filter type (0:lowpass, 1:bandpass, 2:highpass)
BasicSynth
  ignoreNoteOff : Boolean
true to ignore note off
SamplerSynth
 InheritedlfoCycleFrames : int
modulation (low-frequency oscillator) cycle frames.
BasicSynth
 InheritedlfoWaveShape : int
modulation (low-frequency oscillator) wave shape, 0=saw, 1=square, 2=triangle, 3=random.
BasicSynth
 InheritedpitchModulation : int
pitch modulation.
BasicSynth
 InheritedreleaseTime : Number
release rate (0-1), lower value makes release slow.
BasicSynth
 Inheritedresonance : Number
low-pass filter resonance(0-1).
BasicSynth
 Inheritedvoice : SiONVoice
voice setting
VoiceReference
Protected Properties
 PropertyDefined By
  _defaultSamplerData : SiOPMWaveSamplerData
default PCM data
SamplerSynth
  _samplerTable : SiOPMWaveSamplerTable
sample table
SamplerSynth
 Inherited_tracks : Vector.<SiMMLTrack>
tracks to control
BasicSynth
Public Methods
 MethodDefined By
  
SamplerSynth(data:* = null, ignoreNoteOff:Boolean = false, channelCount:int = 2)
constructor
SamplerSynth
 Inherited
setAmplitudeModulation(depth:int = 0, end_depth:int = 0, delay:int = 0, term:int = 0):void
Set amplitude modulation parameters (same as "ma" command in MML).
BasicSynth
 Inherited
setFilterEnvelop(filterType:int = 0, cutoff:Number = 1, resonance:Number = 0, far:int = 0, fdr1:int = 0, fdr2:int = 0, frr:int = 0, fdc1:Number = 1, fdc2:Number = 0.5, fsc:Number = 0.25, frc:Number = 1):void
set filter envelop (same as '@f' command in MML).
BasicSynth
 Inherited
setLPFEnvelop(cutoff:Number = 1, resonance:Number = 0, far:int = 0, fdr1:int = 0, fdr2:int = 0, frr:int = 0, fdc1:Number = 1, fdc2:Number = 0.5, fsc:Number = 0.25, frc:Number = 1):void
[Please use setFilterEnvelop instead of this function].
BasicSynth
 Inherited
setPitchModulation(depth:int = 0, end_depth:int = 0, delay:int = 0, term:int = 0):void
Set amplitude modulation parameters (same as "mp" command in MML).
BasicSynth
  
setSample(data:*, ignoreNoteOff:Boolean = false, keyRangeFrom:int = 0, keyRangeTo:int = 127, channelCount:int = 2):SiOPMWaveSamplerData
Set sample with key range.
SamplerSynth
Property Detail
_defaultSamplerDataproperty
protected var _defaultSamplerData:SiOPMWaveSamplerData

default PCM data

_samplerTableproperty 
protected var _samplerTable:SiOPMWaveSamplerTable

sample table

ignoreNoteOffproperty 
ignoreNoteOff:Boolean

true to ignore note off


Implementation
    public function get ignoreNoteOff():Boolean
    public function set ignoreNoteOff(value:Boolean):void
Constructor Detail
SamplerSynth()Constructor
public function SamplerSynth(data:* = null, ignoreNoteOff:Boolean = false, channelCount:int = 2)

constructor

Parameters
data:* (default = null) — wave data, Sound or Vector.<Number>, the Sound is extracted when the length is shorter than 4[sec].
 
ignoreNoteOff:Boolean (default = false) — flag to ignore note off
 
channelCount:int (default = 2) — channel count of this data, 1 for monoral, 2 for stereo
Method Detail
setSample()method
public function setSample(data:*, ignoreNoteOff:Boolean = false, keyRangeFrom:int = 0, keyRangeTo:int = 127, channelCount:int = 2):SiOPMWaveSamplerData

Set sample with key range.

Parameters

data:* — wave data, Sound or Vector.<Number> can be set, the Sound is extracted when the length is shorter than 4[sec].
 
ignoreNoteOff:Boolean (default = false) — flag to ignore note off
 
keyRangeFrom:int (default = 0) — Assigning key range starts from
 
keyRangeTo:int (default = 127) — Assigning key range ends at. -1 to set only at the key of argument "keyRangeFrom".
 
channelCount:int (default = 2) — channel count of this data, 1 for monoral, 2 for stereo

Returns
SiOPMWaveSamplerData — assigned SiOPMWavePCMData.