Make a Synthesizer
We make a simple synthesizer VCF - VCO - VCA models.
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)
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.
It is varied to smooth the frequency by using
It directly describes the change in frequency in the envelope object