class: mResonz
constant gain resonant bandpass filter
Description
A pingable, resonant bandpass filter with a constant gain across Q values.
Inspired by Supercollider’s Resonz object which is in turn based on K. Steiglitz, “A Note on Constant-Gain Digital Resonators”, Computer Music Journal, vol 18, no 4. pp. 8-10, Winter 1994
Class Methods
Constructor
mResonz(float freq, float rq)freq: center frequency of bandpass filter, in Hz
rq: bandwidth / center frequency (reciprocal of Q)
void updateParameters(float freq, float rq)freq: center frequency of bandpass filter, in Hz
rq: bandwidth / center frequency (reciprocal of Q)
int32_t next(int32_t in_sample)Send a sample into the filter and return a sample back. If a short burst of noise is sent into the filter, it can be pinged, generating an exponentially decaying sine resonance.
Example