Debian Codegraph @

opcodes/svfilter.xml

raw symbols SCIP
1
2 <refentry id="svfilter">
3 <indexterm id="IndexSvfilter"><primary>svfilter</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>svfilter</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>svfilter</refname>
13 <refpurpose>
14 A resonant second order filter, with simultaneous lowpass, highpass and bandpass outputs.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Implementation of a resonant second order filter, with simultaneous lowpass, highpass and bandpass outputs.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>alow, ahigh, aband <command>svfilter</command> asig, kcf, kq [, iscl] [, iskip]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iscl</emphasis> -- coded scaling factor, similar to
34 that in <link
35 linkend="reson"><citetitle>reson</citetitle></link>. A non-zero
36 value signifies a peak response factor of 1, i.e. all
37 frequencies other than <emphasis>kcf</emphasis> are attenuated
38 in accordance with the (normalized) response curve. A zero value
39 signifies no scaling of the signal, leaving that to some later
40 adjustment (see <link
41 linkend="balance"><citetitle>balance</citetitle></link>). The
42 default value is 0.
43 </para>
44 <para>
45 <emphasis>iskip</emphasis> (optional, default=0) -- initial
46 disposition of internal data space. Since filtering incorporates
47 a feedback loop of previous output, the initial status of the
48 storage space used is significant. A zero value will clear the
49 space; a non-zero value will allow previous information to
50 remain. The default value is 0.
51 </para>
52 </refsect1>
53
54
55
56 <refsect1>
57 <title>Performance</title>
58 <para>
59 <emphasis>svfilter</emphasis> 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. <emphasis>svfilter</emphasis> 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 &quot;multimode&quot; 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. <emphasis>svfilter</emphasis> is well suited to the emulation of &quot;analog&quot; sounds, as well as other applications where resonant filters are called for.
60 </para>
61 <para>
62 <emphasis>kcf</emphasis> -- Cutoff or resonant frequency of the filter, measured in Hz.
63 </para>
64
65 <para>
66 <emphasis>kq</emphasis> -- Q of the filter, which is defined (for bandpass filters) as bandwidth/cutoff. <emphasis>kq</emphasis> should be in a range between 1 and 500. As <emphasis>kq</emphasis> is increased, the resonance of the filter increases, which corresponds to an increase in the magnitude and &quot;sharpness&quot; of the resonant peak. When using <emphasis>svfilter</emphasis> without any scaling of the signal (where <emphasis>iscl</emphasis> is either absent or 0), the volume of the resonant peak increases as Q increases. For high values of Q, it is recommended that <emphasis>iscl</emphasis> be set to a non-zero value, or that an external scaling function such as <link linkend="balance"><citetitle>balance</citetitle></link> is used.
67 </para>
68
69 <para>
70 <emphasis>svfilter</emphasis> is based upon an algorithm in Hal Chamberlin's <emphasis>Musical Applications of Microprocessor</emphasis>s (Hayden Books, 1985).
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>Examples</title>
76 <para>
77 Here is an example of the svfilter opcode. It uses the file <ulink url="examples/svfilter.csd"><citetitle>svfilter.csd</citetitle></ulink>.
78
79 <example>
80 <title>Example of the svfilter opcode.</title>
81
82
83
84 <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>
85 <xi:include href="examples-xml/svfilter.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
86 </example>
87 </para>
88 </refsect1>
89
90 <refsect1>
91 <title>See also</title>
92 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
93 </refsect1>
94
95 <refsect1>
96 <title>Credits</title>
97 <para>
98 <simplelist>
99 <member>Author: &namesean;</member>
100 <member>Seattle, Washington</member>
101 <member>1999</member>
102 </simplelist>
103 </para>
104
105 <para>New in Csound version 3.55</para>
106 <para>iskip new in version 6.06</para>
107 </refsect1>
108 </refentry>