Package | org.si.sound.synthesizers |
Class | public class AnalogSynth |
Inheritance | AnalogSynth ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | amplitudeModulation : 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 | ||
![]() | filterType : int filter type (0:lowpass, 1:bandpass, 2:highpass) | BasicSynth | |
![]() | 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 [override] VCA release time [0-1], This value is not linear. | AnalogSynth | ||
![]() | resonance : 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 | ||
![]() | voice : SiONVoice voice setting | VoiceReference | |
ws1 : int wave shape of 1st oscillator | AnalogSynth | ||
ws2 : int wave shape of 2nd oscillator | AnalogSynth |
Method | Defined By | ||
---|---|---|---|
AnalogSynth(connectionType:int = 0, ws1:int = 1, ws2:int = 1, balance:Number = 0.5, vco2pitch:Number = 0.1) constructor
| AnalogSynth | ||
![]() | 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 | |
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 |
Constant | Defined 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 |
attackTime | property |
attackTime:Number
[override] VCA attack time [0-1], This value is not linear.
public function get attackTime():Number
public function set attackTime(value:Number):void
balance | property |
balance:Number
mixing balance of 2 oscillators (0-1), 0=1st only, 0.5=same volume, 1=2nd only.
public function get balance():Number
public function set balance(value:Number):void
con | property |
con:int
connection algorism of 2 oscillators
public function get con():int
public function set con(value:int):void
cutoff | property |
cutoff:Number
[override] public function get cutoff():Number
public function set cutoff(value:Number):void
decayTime | property |
decayTime:Number
VCA decay time [0-1], This value is not linear.
public function get decayTime():Number
public function set decayTime(value:Number):void
releaseTime | property |
releaseTime:Number
[override] VCA release time [0-1], This value is not linear.
public function get releaseTime():Number
public function set releaseTime(value:Number):void
sustainLevel | property |
sustainLevel:Number
VCA sustain level [0-1], This value is not linear.
public function get sustainLevel():Number
public function set sustainLevel(value:Number):void
vcfAttackTime | property |
vcfAttackTime:Number
VCF attack time [0-1], This value is not linear.
public function get vcfAttackTime():Number
public function set vcfAttackTime(value:Number):void
vcfDecayTime | property |
vcfDecayTime:Number
VCF decay time [0-1], This value is not linear.
public function get vcfDecayTime():Number
public function set vcfDecayTime(value:Number):void
vcfPeakCutoff | property |
vcfPeakCutoff:Number
VCF peak cutoff [0-1].
public function get vcfPeakCutoff():Number
public function set vcfPeakCutoff(value:Number):void
vco2pitch | property |
vco2pitch:Number
pitch difference in osc1 and 2. 1 = halftone.
public function get vco2pitch():Number
public function set vco2pitch(value:Number):void
ws1 | property |
ws1:int
wave shape of 1st oscillator
public function get ws1():int
public function set ws1(value:int):void
ws2 | property |
ws2:int
wave shape of 2nd oscillator
public function get ws2():int
public function set ws2(value:int):void
AnalogSynth | () | Constructor |
public function AnalogSynth(connectionType:int = 0, ws1:int = 1, ws2:int = 1, balance:Number = 0.5, vco2pitch:Number = 0.1)
constructor
ParametersconnectionType: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.
|
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.
|
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 )
|
AnalogSynth — this instance
|
CONNECT_NORMAL | Constant |
public static const CONNECT_NORMAL:int = 0
nromal connection
CONNECT_RING | Constant |
public static const CONNECT_RING:int = 1
ring connection
CONNECT_SYNC | Constant |
public static const CONNECT_SYNC:int = 2
sync connection
NOISE | Constant |
public static const NOISE:int = 6
wave shape number of noise wave
SAW | Constant |
public static const SAW:int = 1
wave shape number of saw wave
SINE | Constant |
public static const SINE:int = 0
wave shape number of sine wave
SQUARE | Constant |
public static const SQUARE:int = 5
wave shape number of square wave
TRIANGLE | Constant |
public static const TRIANGLE:int = 4
wave shape number of triangle wave