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 | Maximum frequency of the noise [Hz] | 2000.0 |
bw | Bandwidth of the formant-resonant filter [%] | 0.01 |
aenv | Amplitude Envelope [GEN] | Instance: GEN07 |
The SUB-1 Class realizes a Subtractive Synthesis of a white noise generator and a resonant filter with the following controls:
The example A deals with the center frequency of the resonant filter.
The example B spreads the bandwidth of the resonant filter from 1% to 100%
The example C collects 5 different amplitude envelopes.
instr 1
idur = p3
idurosc = 1.0/idur
iamp = (p4 > 0.0 ? (p4*0.001*0dbfs) : (ampdbfs (p4)))
icfq = p5
ibw = p6*icfq
iaenv = p7
iskip = 2
anoise rand iamp ; white noise
a1 reson anoise, icfq, ibw, iskip ; filter, iskip = 2
a2 poscil 1.0, idurosc, iaenv
asound = a1*a2
out asound
endin