Debian Codegraph @

opcodes/reson.xml

raw symbols SCIP
1
2 <refentry id="reson">
3 <indexterm id="IndexReson"><primary>reson</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>reson</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>reson</refname>
13 <refpurpose>
14 A second-order resonant filter.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 A second-order resonant filter.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>reson</command> asig, xcf, xbw [, iscl] [, iskip]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iscl</emphasis> (optional, default=0) -- coded scaling factor for resonators. A value of 1 signifies a peak response factor of 1, i.e. all frequencies other than kcf are attenuated in accordance with the (normalized) response curve. A value of 2 raises the response factor so that its overall RMS value equals 1. (This intended equalization of input and output power assumes all frequencies are physically present; hence it is most applicable to white noise.) A zero value signifies no scaling of the signal, leaving that to some later adjustment (see <link linkend="balance"><citetitle>balance</citetitle></link>). The default value is 0.
34 </para>
35
36 <para>
37 <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0.
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para>
44 <emphasis>ares</emphasis> -- the output signal at audio rate.
45 </para>
46
47 <para>
48 <emphasis>asig</emphasis> -- the input signal at audio rate.
49 </para>
50
51 <para>
52 <emphasis>xcf</emphasis> -- the center frequency of the filter, or frequency position of the peak response.
53 </para>
54
55 <para>
56 <emphasis>xbw</emphasis> -- bandwidth of the filter (the Hz difference between the upper and lower half-power points).
57 </para>
58
59 <para>
60 <emphasis>reson</emphasis> is a second-order filter in which <emphasis>kcf</emphasis> controls the center frequency, or frequency position of the peak response, and <emphasis>kbw</emphasis> controls its bandwidth (the frequency difference between the upper and lower half-power points).
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>Examples</title>
66 <para>
67 Here is an example of the reson opcode. It uses the file <ulink url="examples/reson.csd"><citetitle>reson.csd</citetitle></ulink>.
68
69 <example>
70 <title>Example of the reson opcode.</title>
71
72
73
74 <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>
75 <xi:include href="examples-xml/reson.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
76 </example>
77 <para>
78 A musical example featuring the reson opcode: <ulink url="examples/musical/ResonPluck_Cucchi.csd"><citetitle>ResonPluck_Cucchi.csd</citetitle></ulink> by Stefano Cucchi.
79 </para>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>See also</title>
85 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
86 </refsect1>
87
88 <refsect1>
89 <title>Credits</title>
90 <para>Audio rate parameters introduced in version 6.02</para>
91 <para>November 2013.</para>
92 </refsect1>
93
94 </refentry>