Packageorg.si.sound.synthesizers
Classpublic class PCMSynth
InheritancePCMSynth Inheritance IFlashSoundOperator Inheritance BasicSynth Inheritance VoiceReference Inheritance Object

Pulse Code Modulation 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
 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
  _defaultPCMData : SiOPMWavePCMData
default PCM data
PCMSynth
  _pcmTable : SiOPMWavePCMTable
PCM table
PCMSynth
 Inherited_tracks : Vector.<SiMMLTrack>
tracks to control
BasicSynth
Public Methods
 MethodDefined By
  
PCMSynth(data:* = null, samplingNote:Number = 68, channelCount:int = 2)
constructor
PCMSynth
 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:*, samplingNote:Number = 68, keyRangeFrom:int = 0, keyRangeTo:int = 127, channelCount:int = 2):SiOPMWavePCMData
Set PCM sample with key range (this feature is not available in currennt version).
PCMSynth
Property Detail
_defaultPCMDataproperty
protected var _defaultPCMData:SiOPMWavePCMData

default PCM data

_pcmTableproperty 
protected var _pcmTable:SiOPMWavePCMTable

PCM table

Constructor Detail
PCMSynth()Constructor
public function PCMSynth(data:* = null, samplingNote:Number = 68, channelCount:int = 2)

constructor

Parameters
data:* (default = null) — wave data, Sound or Vector.<Number> can be set, the Sound is extracted inside.
 
samplingNote:Number (default = 68) — sampling data's note, this argument allows decimal number.
 
channelCount:int (default = 2) — channel count of playing PCM.
Method Detail
setSample()method
public function setSample(data:*, samplingNote:Number = 68, keyRangeFrom:int = 0, keyRangeTo:int = 127, channelCount:int = 2):SiOPMWavePCMData

Set PCM sample with key range (this feature is not available in currennt version).

Parameters

data:* — wave data, Sound or Vector.<Number> can be set, the Sound is extracted inside.
 
samplingNote:Number (default = 68) — sampling data's note, this argument allows decimal number.
 
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
SiOPMWavePCMData — assigned SiOPMWavePCMData.