biquadSignal Modifiers:Standard Filtersbiquadbiquad
A sweepable general purpose biquadratic digital filter.
Description
A sweepable general purpose biquadratic digital filter.
Syntaxares biquad asig, kb0, kb1, kb2, ka0, ka1, ka2 [, iskip]Initializationiskip (optional, default=0) -- if non-zero, intialization will be skipped. Default value 0. (New in Csound version 3.50)
Performanceasig -- input signal
biquad is a general purpose biquadratic digital filter of the form:
a0*y(n) + a1*y[n-1] + a2*y[n-2] = b0*x[n] + b1*x[n-1] + b2*x[n-2]
This filter has the following frequency response:
B(Z) b0 + b1*Z-1 + b2*Z-2
H(Z) = ---- = ------------------
A(Z) a0 + a1*Z-1 + a2*Z-2
This type of filter is often encountered in digital signal processing literature. It allows six user-defined k-rate coefficients.
Examples
Here is an example of the biquad opcode. It uses the file biquad.csd.
Example of the biquad opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Here is another example of the biquad opcode used for modal synthesis. It uses the file biquad-2.csd. See the Modal Frequency Ratios appendix for other frequency ratios.
Example of the biquad opcode for modal synthesis.See alsoStandard filters: Biquad filtersCreditsAuthor: &namehans;October 1998New in Csound version 3.49