Debian Codegraph @

opcodes/biquad.xml

raw symbols SCIP
1
2 <refentry id="biquad">
3 <indexterm id="IndexBiquad"><primary>biquad</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>biquad</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>biquad</refname>
11 <refpurpose>
12 A sweepable general purpose biquadratic digital filter.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 A sweepable general purpose biquadratic digital filter.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>biquad</command> asig, kb0, kb1, kb2, ka0, ka1, ka2 [, iskip]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>iskip</emphasis> (optional, default=0) -- if non-zero, intialization will be skipped. Default value 0. (New in Csound version 3.50)
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Performance</title>
37 <para>
38 <emphasis>asig</emphasis> -- input signal
39 </para>
40
41 <para>
42 <emphasis>biquad</emphasis> is a general purpose biquadratic digital filter of the form:
43 <literallayout>
44 a0*y(n) + a1*y[n-1] + a2*y[n-2] = b0*x[n] + b1*x[n-1] + b2*x[n-2]
45 </literallayout>
46 </para>
47
48 <para>
49 This filter has the following frequency response:
50 <literallayout>
51 B(Z) b0 + b1*Z<superscript>-1</superscript> + b2*Z<superscript>-2</superscript>
52 H(Z) = ---- = ------------------
53 A(Z) a0 + a1*Z<superscript>-1</superscript> + a2*Z<superscript>-2</superscript>
54 </literallayout>
55 </para>
56
57 <para>
58 This type of filter is often encountered in digital signal processing literature. It allows six user-defined k-rate coefficients.
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>Examples</title>
64 <para>
65 Here is an example of the biquad opcode. It uses the file <ulink url="examples/biquad.csd"><citetitle>biquad.csd</citetitle></ulink>.
66
67 <example>
68 <title>Example of the biquad opcode.</title>
69
70 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
71 <xi:include href="examples-xml/biquad.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
72 </example>
73 </para><para>
74 Here is another example of the biquad opcode used for modal synthesis. It uses the file <ulink url="examples/biquad-2.csd"><citetitle>biquad-2.csd</citetitle></ulink>. See the <link linkend="MiscModalFreq"><citetitle>Modal Frequency Ratios</citetitle></link> appendix for other frequency ratios.
75
76 <example>
77 <title>Example of the biquad opcode for modal synthesis.</title>
78 <xi:include href="examples-xml/biquad-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
79 </example>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>See also</title>
85 <para><link linkend="SigmodStandard"><citetitle>Standard filters: Biquad filters</citetitle></link></para>
86 </refsect1>
87
88 <refsect1>
89 <title>Credits</title>
90 <para>
91 <simplelist>
92 <member>Author: &namehans;</member>
93 <member>October 1998</member>
94 </simplelist>
95 </para>
96
97 <para>New in Csound version 3.49</para>
98 </refsect1>
99 </refentry>