Packageorg.si.sound.synthesizers
Classpublic class AnalogSynth
InheritanceAnalogSynth Inheritance BasicSynth Inheritance VoiceReference Inheritance Object

Analog "LIKE" Synthesizer



Public Properties
 PropertyDefined By
 InheritedamplitudeModulation : int
amplitude modulation.
BasicSynth
  attackTime : Number
[override] VCA attack time [0-1], This value is not linear.
AnalogSynth
  balance : Number
mixing balance of 2 oscillators (0-1), 0=1st only, 0.5=same volume, 1=2nd only.
AnalogSynth
  con : int
connection algorism of 2 oscillators
AnalogSynth
  cutoff : Number
[override]
AnalogSynth
  decayTime : Number
VCA decay time [0-1], This value is not linear.
AnalogSynth
 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
  releaseTime : Number
[override] VCA release time [0-1], This value is not linear.
AnalogSynth
 Inheritedresonance : Number
low-pass filter resonance(0-1).
BasicSynth
  sustainLevel : Number
VCA sustain level [0-1], This value is not linear.
AnalogSynth
  vcfAttackTime : Number
VCF attack time [0-1], This value is not linear.
AnalogSynth
  vcfDecayTime : Number
VCF decay time [0-1], This value is not linear.
AnalogSynth
  vcfPeakCutoff : Number
VCF peak cutoff [0-1].
AnalogSynth
  vco2pitch : Number
pitch difference in osc1 and 2.
AnalogSynth
 Inheritedvoice : SiONVoice
voice setting
VoiceReference
  ws1 : int
wave shape of 1st oscillator
AnalogSynth
  ws2 : int
wave shape of 2nd oscillator
AnalogSynth
Protected Properties
 PropertyDefined By
 Inherited_tracks : Vector.<SiMMLTrack>
tracks to control
BasicSynth
Public Methods
 MethodDefined By
  
AnalogSynth(connectionType:int = 0, ws1:int = 1, ws2:int = 1, balance:Number = 0.5, vco2pitch:Number = 0.1)
constructor
AnalogSynth
 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
  
setVCAEnvelop(attackTime:Number, decayTime:Number, sustainLevel:Number, releaseTime:Number):AnalogSynth
set VCA envelope.
AnalogSynth
  
setVCFEnvelop(cutoff:Number = 1, resonance:Number = 0, attackTime:Number = 0, decayTime:Number = 0, peakCutoff:Number = 1):AnalogSynth
set VCF envelope, This is a simplification of BasicSynth.setLPFEnvelop().
AnalogSynth
Public Constants
 ConstantDefined By
  CONNECT_NORMAL : int = 0
[static] nromal connection
AnalogSynth
  CONNECT_RING : int = 1
[static] ring connection
AnalogSynth
  CONNECT_SYNC : int = 2
[static] sync connection
AnalogSynth
  NOISE : int = 6
[static] wave shape number of noise wave
AnalogSynth
  SAW : int = 1
[static] wave shape number of saw wave
AnalogSynth
  SINE : int = 0
[static] wave shape number of sine wave
AnalogSynth
  SQUARE : int = 5
[static] wave shape number of square wave
AnalogSynth
  TRIANGLE : int = 4
[static] wave shape number of triangle wave
AnalogSynth
Property Detail
attackTimeproperty
attackTime:Number[override]

VCA attack time [0-1], This value is not linear.


Implementation
    public function get attackTime():Number
    public function set attackTime(value:Number):void
balanceproperty 
balance:Number

mixing balance of 2 oscillators (0-1), 0=1st only, 0.5=same volume, 1=2nd only.


Implementation
    public function get balance():Number
    public function set balance(value:Number):void
conproperty 
con:int

connection algorism of 2 oscillators


Implementation
    public function get con():int
    public function set con(value:int):void
cutoffproperty 
cutoff:Number[override]


Implementation
    public function get cutoff():Number
    public function set cutoff(value:Number):void
decayTimeproperty 
decayTime:Number

VCA decay time [0-1], This value is not linear.


Implementation
    public function get decayTime():Number
    public function set decayTime(value:Number):void
releaseTimeproperty 
releaseTime:Number[override]

VCA release time [0-1], This value is not linear.


Implementation
    public function get releaseTime():Number
    public function set releaseTime(value:Number):void
sustainLevelproperty 
sustainLevel:Number

VCA sustain level [0-1], This value is not linear.


Implementation
    public function get sustainLevel():Number
    public function set sustainLevel(value:Number):void
vcfAttackTimeproperty 
vcfAttackTime:Number

VCF attack time [0-1], This value is not linear.


Implementation
    public function get vcfAttackTime():Number
    public function set vcfAttackTime(value:Number):void
vcfDecayTimeproperty 
vcfDecayTime:Number

VCF decay time [0-1], This value is not linear.


Implementation
    public function get vcfDecayTime():Number
    public function set vcfDecayTime(value:Number):void
vcfPeakCutoffproperty 
vcfPeakCutoff:Number

VCF peak cutoff [0-1].


Implementation
    public function get vcfPeakCutoff():Number
    public function set vcfPeakCutoff(value:Number):void
vco2pitchproperty 
vco2pitch:Number

pitch difference in osc1 and 2. 1 = halftone.


Implementation
    public function get vco2pitch():Number
    public function set vco2pitch(value:Number):void
ws1property 
ws1:int

wave shape of 1st oscillator


Implementation
    public function get ws1():int
    public function set ws1(value:int):void
ws2property 
ws2:int

wave shape of 2nd oscillator


Implementation
    public function get ws2():int
    public function set ws2(value:int):void
Constructor Detail
AnalogSynth()Constructor
public function AnalogSynth(connectionType:int = 0, ws1:int = 1, ws2:int = 1, balance:Number = 0.5, vco2pitch:Number = 0.1)

constructor

Parameters
connectionType:int (default = 0) — Connection type, 0=normal, 1=ring, 2=sync.
 
ws1:int (default = 1) — Wave shape for osc1.
 
ws2:int (default = 1) — Wave shape for osc2.
 
balance:Number (default = 0.5) — mixing balance of 2 osccilators (0-1), 0=1st only, 0.5=same volume, 1=2nd only.
 
vco2pitch:Number (default = 0.1) — pitch difference in osc1 and 2. 1 for halftone.
Method Detail
setVCAEnvelop()method
public function setVCAEnvelop(attackTime:Number, decayTime:Number, sustainLevel:Number, releaseTime:Number):AnalogSynth

set VCA envelope. This provide basic ADSR envelop.

Parameters

attackTime:Number — attack time [0-1]. This value is not linear.
 
decayTime:Number — decay time [0-1]. This value is not linear.
 
sustainLevel:Number — sustain level [0-1]. This value is not linear.
 
releaseTime:Number — release time [0-1]. This value is not linear.

Returns
AnalogSynth — this instance
setVCFEnvelop()method 
public function setVCFEnvelop(cutoff:Number = 1, resonance:Number = 0, attackTime:Number = 0, decayTime:Number = 0, peakCutoff:Number = 1):AnalogSynth

set VCF envelope, This is a simplification of BasicSynth.setLPFEnvelop().

Parameters

cutoff:Number (default = 1) — cutoff frequency[0-1].
 
resonance:Number (default = 0) — resonanse[0-1].
 
attackTime:Number (default = 0) — attack time [0-1]. This value is not linear.
 
decayTime:Number (default = 0) — decay time [0-1]. This value is not linear.
 
peakCutoff:Number (default = 1)

Returns
AnalogSynth — this instance
Constant Detail
CONNECT_NORMALConstant
public static const CONNECT_NORMAL:int = 0

nromal connection

CONNECT_RINGConstant 
public static const CONNECT_RING:int = 1

ring connection

CONNECT_SYNCConstant 
public static const CONNECT_SYNC:int = 2

sync connection

NOISEConstant 
public static const NOISE:int = 6

wave shape number of noise wave

SAWConstant 
public static const SAW:int = 1

wave shape number of saw wave

SINEConstant 
public static const SINE:int = 0

wave shape number of sine wave

SQUAREConstant 
public static const SQUARE:int = 5

wave shape number of square wave

TRIANGLEConstant 
public static const TRIANGLE:int = 4

wave shape number of triangle wave