Debian Codegraph @

opcodes/clfilt.xml

raw symbols SCIP
1
2 <refentry id="clfilt">
3 <indexterm id="IndexClfilt"><primary>clfilt</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>clfilt</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>clfilt</refname>
13 <refpurpose>
14 Implements low-pass and high-pass filters of different styles.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Implements the classical standard analog filter types: low-pass and high-pass. They are implemented with the four classical kinds of filters: Butterworth, Chebyshev Type I, Chebyshev Type II, and Elliptical. The number of poles may be any even number from 2 to 80.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>clfilt</command> asig, kfreq, itype, inpol [, ikind] [, ipbr] [, isba] [, iskip]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>itype</emphasis> -- 0 for low-pass, 1 for high-pass.
34 </para>
35
36 <para>
37 <emphasis>inpol</emphasis> -- The number of poles in the filter. It must be an even number from 2 to 80.
38 </para>
39
40 <para>
41 <emphasis>ikind</emphasis> (optional) -- 0 for Butterworth, 1 for Chebyshev Type I, 2 for Chebyshev Type II, 3 for Elliptical. Defaults to 0 (Butterworth)
42 </para>
43
44 <para>
45 <emphasis>ipbr</emphasis> (optional) -- The pass-band ripple in dB. Must be greater than 0. It is ignored by Butterworth and Chebyshev Type II. The default is 1 dB.
46 </para>
47
48 <para>
49 <emphasis>isba</emphasis> (optional) -- The stop-band attenuation in dB. Must be less than 0. It is ignored by Butterworth and Chebyshev Type I. The default is -60 dB.
50 </para>
51
52 <para>
53 <emphasis>iskip</emphasis> (optional) -- 0 initializes all filter internal states to 0. 1 skips initialization. The default is 0.
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>Performance</title>
59 <para>
60 <emphasis>asig</emphasis> -- The input audio signal.
61 </para>
62
63 <para>
64 <emphasis>kfreq</emphasis> -- The corner frequency for low-pass or high-pass.
65 </para>
66 </refsect1>
67
68 <refsect1>
69 <title>Examples</title>
70 <para>
71 Here is an example of the clfilt opcode as a low-pass filter. It uses the file <ulink url="examples/clfilt_lowpass.csd"><citetitle>clfilt_lowpass.csd</citetitle></ulink>.
72
73 <example>
74 <title>Example of the clfilt opcode as a low-pass filter.</title>
75
76 <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>
77 <xi:include href="examples-xml/clfilt_lowpass.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
78 </example>
79 </para>
80
81 <para>
82 Here is an example of the clfilt opcode as a high-pass filter. It uses the file <ulink url="examples/clfilt_highpass.csd"><citetitle>clfilt_highpass.csd</citetitle></ulink>.
83
84 <example>
85 <title>Example of the clfilt opcode as a high-pass filter.</title>
86
87 <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>
88 <xi:include href="examples-xml/clfilt_highpass.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
89 </example>
90 </para>
91 </refsect1>
92
93 <refsect1>
94 <title>See also</title>
95 <para><link linkend="SigmodStandard"><citetitle>Standard filters: General filters</citetitle></link></para>
96 </refsect1>
97
98 <refsect1>
99 <title>Credits</title>
100 <para>Author: Erik Spjut</para>
101 <para>New in version 4.20</para>
102 </refsect1>
103 </refentry>