Packageorg.si.sion.effector
Classpublic class SiEffectBase
InheritanceSiEffectBase Inheritance Object
Subclasses SiCompositeEffector, SiCtrlFilterBase, SiEffectAutoPan, SiEffectCompressor, SiEffectDistortion, SiEffectDownSampler, SiEffectEqualiser, SiEffectSpeakerSimulator, SiEffectStereoChorus, SiEffectStereoDelay, SiEffectStereoExpander, SiEffectStereoReverb, SiEffectWaveShaper, SiFilterBase, SiFilterVowel

Effector basic class.



Public Methods
 MethodDefined By
  
Constructor.
SiEffectBase
  
initialize():void
Initializer.
SiEffectBase
  
mmlCallback(args:Vector.<Number>):void
Parameter setting by mml arguments.
SiEffectBase
  
Prepare processing.
SiEffectBase
  
process(channels:int, buffer:Vector.<Number>, startIndex:int, length:int):int
Process effect to stream buffer.
SiEffectBase
Constructor Detail
SiEffectBase()Constructor
public function SiEffectBase()

Constructor. do nothing.

Method Detail
initialize()method
public function initialize():void

Initializer. The system calls this when the instance is created.

mmlCallback()method 
public function mmlCallback(args:Vector.<Number>):void

Parameter setting by mml arguments. The sequencer calls this when "#EFFECT" appears.

Parameters

args:Vector.<Number> — The arguments refer from mml. The value of Number.NaN is put when its abbriviated.

prepareProcess()method 
public function prepareProcess():int

Prepare processing. The system calls this before processing.

Returns
int — requesting channels count.
process()method 
public function process(channels:int, buffer:Vector.<Number>, startIndex:int, length:int):int

Process effect to stream buffer. The system calls this to process.

Parameters

channels:int — Stream channel count. 1=monoral(same data in buffer[i] and buffer[i+1]). 2=stereo.
 
buffer:Vector.<Number> — Stream buffer to apply effect. The order is same as wave format [L0,R0,L1,R1,L2,R2 ... ].
 
startIndex:int — startIndex to apply effect. You CANNOT use this index to the stream buffer directly. Should be doubled because its a stereo stream.
 
length:int — length to apply effect. You CANNOT use this length to the stream buffer directly. Should be doubled because its a stereo stream.

Returns
int — output channels count.