A two pole resonant filter UGen. It has zeroes at z = +1
and z = -1
.
Based on K. Steiglitz, "A Note on Constant-Gain Digital Resonators", Computer Music Journal, vol 18, no. 4, pp. 8-10, Winter 1994.
===Examples===
// modulated frequency
play {
val in = Saw.ar(200) * 0.5
val freq = SinOsc.ar(XLine.ar(0.3, 100, 20)).mulAdd(3600, 4000)
Resonz.ar(in, freq)
}
// mouse controlled frequency and Q
play {
val in = WhiteNoise.ar(0.5)
val freq = MouseX.kr(200, 10000, 1)
val q = MouseY.kr(1, 100, 1) // bottom to top
val flt = Resonz.ar(in, freq, q.reciprocal)
flt * q.sqrt // compensate for energy loss
}
- See also
- Companion
- class
Type members
Value members
Concrete methods
- Value Params
- freq
resonant frequency in Hertz
- in
input signal to be filtered
- rq
reciprocal of Q. The Q (or quality) is conventionally defined as center-frequency / bandwidth, meaning that rq = bandwidth / center-frequency. A higher Q or lower rq produces a steeper filter.