Debian Codegraph @

opcodes/zdf_2pole.xml

raw symbols SCIP
1
2 <refentry id="zdf_2pole">
3 <indexterm id="IndexZdf_2pole"><primary>zdf_2pole</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>zdf_2pole</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>zdf_2pole</refname>
11 <refpurpose>
12 Zero-delay feedback implementation of 2 pole filter.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Zero-delay feedback implementation of a 2 pole (12 dB/oct) filter. Offers low-pass (default), high-pass, and allpass output modes.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>asig <command>zdf_2pole</command> ain, xcf, xQ [, kmode, istor]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>istor</emphasis> --initial disposition of internal data space.
32 Since filtering incorporates a feedback loop of previous output, the
33 initial status of the storage space used is significant. A zero value
34 will clear the space; a non-zero value will allow previous information to
35 remain. The default value is 0.
36 </para>
37
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>asig</emphasis> -- output signal.
44 </para>
45 <para>
46 <emphasis>ain</emphasis> -- input signal.
47 </para>
48 <para>
49 <emphasis>xcf</emphasis> -- filter cutoff frequency (i-, k-, or a-rate).
50 </para>
51 <para>
52 <emphasis>xQ</emphasis> -- filter Q value (i-, k-, or a-rate). Range 0.5-25.0.
53 </para>
54 <para>
55 <emphasis>kmode</emphasis> -- filter output type. The default value is 0.
56 The output mode may be one of the following.
57
58 <itemizedlist>
59 <listitem><para>0 - low-pass</para></listitem>
60 <listitem><para>1 - high-pass</para></listitem>
61 <listitem><para>2 - band-pass</para></listitem>
62 <listitem><para>3 - unity-gain band-pass</para></listitem>
63 <listitem><para>4 - notch</para></listitem>
64 <listitem><para>5 - allpass</para></listitem>
65 <listitem><para>6 - peak</para></listitem>
66 </itemizedlist>
67
68 </para>
69
70 </refsect1>
71
72 <refsect1>
73 <title>Examples</title>
74 <para>
75 Here is an example of the zdf_2pole opcode. It uses the file <ulink url="examples/zdf_2pole.csd"><citetitle>zdf_2pole.csd</citetitle></ulink>.
76 <example>
77 <title>Example of the zdf_2pole opcode.</title>
78 <xi:include href="examples-xml/zdf_2pole.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
79 </example>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>References</title>
85 <para> This filter is based on the work of Will Pirkle that employs Vadim
86 Zavalishin's work with bilinear tranforms to create topology-preserving
87 transform (TPT) implementations of analog filters.</para>
88
89 <para>
90 <orderedlist>
91 <listitem>
92 <para>
93 Pirkle, Will. Designing Software Synthesizer Plug-ins in C++: For
94 RackAFX, VST3, and Audio Units. CRC Press, 2014.
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 Pirkle, Will. AN-4: Virtual Analog (VA) Filter Implementation. 2013.
100 </para>
101 </listitem>
102 <listitem>
103 <para>
104 Zavalishin, Vadim. "The Art of VA filter design." Native Instruments, 2012.
105 </para>
106 </listitem>
107 </orderedlist>
108 </para>
109 </refsect1>
110
111 <refsect1>
112 <title>See also</title>
113 <para><link linkend="SigmodStandard"><citetitle>Standard filters: Zero-delay Feedback Filters (Virtual Analog)</citetitle></link></para>
114 </refsect1>
115
116 <refsect1>
117 <title>Credits</title>
118 <para>
119 <simplelist>
120 <member>Author: &namesteven;</member>
121 <member>April 2017</member>
122 </simplelist>
123 </para>
124 <para>New in Csound 6.09.0</para>
125 </refsect1>
126 </refentry>