| Package | org.si.sound.synthesizers |
| Class | public class SamplerSynth |
| Inheritance | SamplerSynth IFlashSoundOperator BasicSynth VoiceReference Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | amplitudeModulation : int amplitude modulation. | BasicSynth | |
![]() | attackTime : Number attack rate (0-1), lower value makes attack slow. | BasicSynth | |
![]() | cutoff : Number low-pass filter cutoff(0-1). | BasicSynth | |
![]() | filterType : int filter type (0:lowpass, 1:bandpass, 2:highpass) | BasicSynth | |
| ignoreNoteOff : Boolean true to ignore note off | SamplerSynth | ||
![]() | lfoCycleFrames : int modulation (low-frequency oscillator) cycle frames. | BasicSynth | |
![]() | lfoWaveShape : int modulation (low-frequency oscillator) wave shape, 0=saw, 1=square, 2=triangle, 3=random. | BasicSynth | |
![]() | pitchModulation : int pitch modulation. | BasicSynth | |
![]() | releaseTime : Number release rate (0-1), lower value makes release slow. | BasicSynth | |
![]() | resonance : Number low-pass filter resonance(0-1). | BasicSynth | |
![]() | voice : SiONVoice voice setting | VoiceReference | |
| Property | Defined By | ||
|---|---|---|---|
| _defaultSamplerData : SiOPMWaveSamplerData default PCM data | SamplerSynth | ||
| _samplerTable : SiOPMWaveSamplerTable sample table | SamplerSynth | ||
![]() | _tracks : Vector.<SiMMLTrack> tracks to control | BasicSynth | |
| Method | Defined By | ||
|---|---|---|---|
SamplerSynth(data:* = null, ignoreNoteOff:Boolean = false, channelCount:int = 2) constructor
| SamplerSynth | ||
![]() | 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 | |
![]() | 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 | |
![]() | 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 | |
![]() | 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 | ||
| _defaultSamplerData | property |
protected var _defaultSamplerData:SiOPMWaveSamplerDatadefault PCM data
| _samplerTable | property |
protected var _samplerTable:SiOPMWaveSamplerTablesample table
| ignoreNoteOff | property |
ignoreNoteOff:Booleantrue to ignore note off
public function get ignoreNoteOff():Boolean public function set ignoreNoteOff(value:Boolean):void| SamplerSynth | () | Constructor |
public function SamplerSynth(data:* = null, ignoreNoteOff:Boolean = false, channelCount:int = 2)constructor
Parametersdata:* (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
|
| setSample | () | method |
public function setSample(data:*, ignoreNoteOff:Boolean = false, keyRangeFrom:int = 0, keyRangeTo:int = 127, channelCount:int = 2):SiOPMWaveSamplerDataSet 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
|
SiOPMWaveSamplerData — assigned SiOPMWavePCMData.
|