svfilter Signal Modifiers:Standard Filters:Resonant svfilter svfilter A resonant second order filter, with simultaneous lowpass, highpass and bandpass outputs. Description Implementation of a resonant second order filter, with simultaneous lowpass, highpass and bandpass outputs. Syntax alow, ahigh, aband svfilter asig, kcf, kq [, iscl] [, iskip] Initialization iscl -- coded scaling factor, similar to that in reson. A non-zero value signifies a peak response factor of 1, i.e. all frequencies other than kcf are attenuated in accordance with the (normalized) response curve. A zero value signifies no scaling of the signal, leaving that to some later adjustment (see balance). The default value is 0. iskip (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0. Performance svfilter is a second order state-variable filter, with k-rate controls for cutoff frequency and Q. As Q is increased, a resonant peak forms around the cutoff frequency. svfilter has simultaneous lowpass, highpass, and bandpass filter outputs; by mixing the outputs together, a variety of frequency responses can be generated. The state-variable filter, or "multimode" filter was a common feature in early analog synthesizers, due to the wide variety of sounds available from the interaction between cutoff, resonance, and output mix ratios. svfilter is well suited to the emulation of "analog" sounds, as well as other applications where resonant filters are called for. kcf -- Cutoff or resonant frequency of the filter, measured in Hz. kq -- Q of the filter, which is defined (for bandpass filters) as bandwidth/cutoff. kq should be in a range between 1 and 500. As kq is increased, the resonance of the filter increases, which corresponds to an increase in the magnitude and "sharpness" of the resonant peak. When using svfilter without any scaling of the signal (where iscl is either absent or 0), the volume of the resonant peak increases as Q increases. For high values of Q, it is recommended that iscl be set to a non-zero value, or that an external scaling function such as balance is used. svfilter is based upon an algorithm in Hal Chamberlin's Musical Applications of Microprocessors (Hayden Books, 1985). Examples Here is an example of the svfilter opcode. It uses the file svfilter.csd. Example of the svfilter opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Standard Filters: Resonant Low-pass filters Credits Author: &namesean; Seattle, Washington 1999 New in Csound version 3.55 iskip new in version 6.06