lowpass2Signal Modifiers:Standard Filters:Resonantlowpass2lowpass2
A resonant lowpass filter.
Description
Implementation of a resonant second-order lowpass filter.
Syntaxares lowpass2 asig, kcf, kq [, iskip]Initializationiskip -- initial disposition of internal data space. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0.
Performanceasig -- input signal to be filtered
kcf -- cutoff or resonant frequency of the filter, measured in Hz
kq -- Q of the filter, defined, for bandpass filters, as bandwidth/cutoff. kq should be between 1 and 500
lowpass2 is a second order IIR lowpass filter, with k-rate controls for cutoff frequency (kcf) and Q (kq). As kq is increased, a resonant peak forms around the cutoff frequency, transforming the lowpass filter response into a response that is similar to a bandpass filter, but with more low frequency energy. This corresponds to an increase in the magnitude and "sharpness" of the resonant peak. For high values of kq, a scaling function such as balance may be required. In practice, this allows for the simulation of the voltage-controlled filters of analog synthesizers, or for the creation of a pitch of constant amplitude while filtering white noise.
Examples
Here is an example of the lowpass2 opcode. It uses the file lowpass2.csd.
Example of the lowpass2 opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoStandard Filters: Resonant Low-pass filtersCreditsAuthor: &namesean;Seattle, WashingtonAugust 1999New in Csound version 4.0