Debian Codegraph @

opcodes/statevar.xml

raw symbols SCIP
1
2 <refentry id="statevar">
3 <indexterm id="IndexStatevar"><primary>statevar</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>statevar</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>statevar</refname>
11 <refpurpose>
12 State-variable filter.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Statevar is a new digital implementation of the analogue state-variable filter.
20 This filter has four simultaneous outputs: high-pass, low-pass,
21 band-pass and band-reject. This filter uses oversampling for sharper
22 resonance (default: 3 times oversampling). It includes a
23 resonance limiter that prevents the filter from getting unstable.
24 </para>
25
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>ahp,alp,abp,abr <command>statevar</command> ain, xcf, xq [, iosamps, istor]</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35
36 <para>
37 <emphasis>iosamps</emphasis> -- number of times of oversampling used in the
38 filtering process. This will determine the maximum sharpness
39 of the filter resonance (Q). More oversampling allows higher Qs,
40 less oversampling will limit the resonance. The default is 3
41 times (iosamps=0).
42 </para>
43 <para>
44 <emphasis>istor</emphasis> --initial disposition of internal data space. Since
45 filtering incorporates a feedback loop of previous output,
46 the initial status of the storage space used is significant.
47 A zero value will clear the space; a non-zero value will allow
48 previous information to remain. The default value is 0.
49 </para>
50
51 </refsect1>
52
53 <refsect1>
54 <title>Performance</title>
55 <para>
56 <emphasis>ahp</emphasis> -- high-pass output signal.
57 </para>
58 <para>
59 <emphasis>alp</emphasis> -- low-pass output signal.
60 </para>
61 <para>
62 <emphasis>abp</emphasis> -- band-pass signal.
63 </para>
64 <para>
65 <emphasis>abr</emphasis> -- band-reject signal.
66 </para>
67 <para>
68 <emphasis>asig</emphasis> -- input signal.
69 </para>
70 <para>
71 <emphasis>xcf</emphasis> -- filter cutoff frequency (k-rate or a-rate).
72 </para>
73
74 <para>
75 <emphasis>xq</emphasis> -- filter Q (k-rate or a-rate). This
76 value is limited internally depending on the frequency and the
77 number of times of oversampling used in the process (3-times
78 oversampling by default).
79 </para>
80
81 </refsect1>
82
83 <refsect1>
84 <title>Examples</title>
85 <para>
86 Here is an example of the statevar opcode. It uses the file <ulink url="examples/statevar.csd"><citetitle>statevar.csd</citetitle></ulink>.
87 <example>
88 <title>Example of the statevar opcode.</title>
89 <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>
90 <xi:include href="examples-xml/statevar.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
91 </example>
92 </para>
93 </refsect1>
94
95 <refsect1>
96 <title>See also</title>
97 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
98 </refsect1>
99
100 <refsect1>
101 <title>Credits</title>
102 <para>
103 <simplelist>
104 <member>Author: &namevictor;</member>
105 <member>January 2005</member>
106 </simplelist>
107 </para>
108 <para>New plugin in version 5</para>
109 <para>January 2005.</para>
110 <para>Audio rate parameters introduced in version 6.02</para>
111 <para>October 2013.</para>
112 </refsect1>
113 </refentry>