Pragmatic Synth
Make a Synthesizer
We make a simple synthesizer VCF - VCO - VCA models.
UI
The graphical UI omitted because the description is huge, use the following in a simple interface.
T("keyboard")
gets input from the keyboard (line:5)T("ndict.key")
converts from a key code to a MIDI note number (line:6)T("midicps")
converts from a MIDI note number to a frequency (line:8)
VCO (Voltage Controlled Oscillator)
Frequency control by keyboard (line:8)
The property T("osc").freq
can be enter the T-object in non-numeric (line:2). In the following example, vibrato and portamento is performed by .freq
that is the time-varying T-object.
Vibrato
Portament
It is varied to smooth the frequency by using T("param")
(line:1,2,9)
Sound Effect
It directly describes the change in frequency in the envelope object T("env")
.
VCF
Envelope Filtering
(line:1,2,12,13)
Auto Wah
(line:1,13,14)
VCA
Amplitude Envelope
(line:2,10,15)
Tremolo
(line:2,3)