Name | Description | Default value |
---|---|---|
amp | Maximum Amplitude. Linear from >0.0 to 1000 or in dB from 0 to -∞ (see Tutorial Getting Started 02 - Amplitude and Internal Editor for more details) | -6.0 |
freq | (Minimum) current frequency [Hz] | 440.0 |
aenv | Amplitude Envelope [GEN] | Instance: GEN07 |
fdev | (Minimum) frequency deviation [semitones] | 1.0 |
fenv | Envelope of the frequency deviation [GEN] | Instance: GEN07 |
The ADD-A1 Class realizes an Additive Synthesis with the following controls:
The example A brings about a little portamento between two frequencies with an interval of 1, 2, 4, 7, 12 semitones.
The example B collects 4 different frequency deviation envelopes.
For the red patches Synt, C#ed and rnd see Appendix-A.
instr 1
idur = p3
idurosc = 1/idur
iamp = (p4 > 0.0 ? (p4*0.001*0dbfs) : (ampdbfs (p4)))
ifq = p5
ifroct = octcps (ifq)
iaenv = p6
iaudiofun = 1
idfq = p7 / 12.0
ifenv = p8
kfq1 poscil idfq, idurosc, ifenv
kfq = cpsoct (kfq1 + ifroct)
kamp poscil iamp, idurosc, iaenv
a1 poscil kamp, kfq, iaudiofun
out a1
endin