resonxk
Control signal resonant filter stack.
resonxk connects several resonk filters in series, all with the same settings. More layers give a sharper response.
Syntax
Initialization
inumlayer - number of filters in the stack. The default is 4.
iscl (optional, default=0) - scaling for each filter. A value of 1 gives each filter a peak gain of 1. A value of 2 gives each filter an RMS gain of 1 for white noise; this does not give the whole stack an RMS gain of 1. A value of 0 leaves the signal unscaled.
istor (optional, default=0) -- set to zero to clear the filter history, or nonzero to keep it on reinitialization. First use and a change in the number of filters always clear the history.
Performance
kres - output signal
ksig - input signal
kcf - center frequency in Hz, shared by all filters.
kbw - bandwidth of each filter in Hz (the difference between the upper and lower half-power points).
The filters process one sample per control period. Their frequency range therefore depends on kr. The bandwidth setting applies to each filter; adding layers narrows the response of the whole stack.
Examples
Here is an example of the resonxk opcode. It uses the file resonxk.csd.
See also
Standard Filters: Control signal filters
Credits
Written by Gabriel Maldonado.
New in Csound 5 (Previously available only on CsoundAV)