Debian Codegraph @

opcodes/areson.xml

raw symbols SCIP
1
2 <refentry id="areson">
3 <indexterm id="IndexAreson"><primary>areson</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>areson</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>areson</refname>
13 <refpurpose>
14 A notch filter whose transfer functions are the complements of
15 the reson opcode.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 A notch filter whose transfer functions are the complements of
23 the reson opcode.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>ares <command>areson</command> asig, kcf, kbw [, iscl] [, iskip]</synopsis>
30 <synopsis>ares <command>areson</command> asig, acf, kbw [, iscl] [, iskip]</synopsis>
31 <synopsis>ares <command>areson</command> asig, kcf, abw [, iscl] [, iskip]</synopsis>
32 <synopsis>ares <command>areson</command> asig, acf, abw [, iscl] [, iskip]</synopsis>
33 </refsect1>
34
35 <refsect1>
36 <title>Initialization</title>
37 <para>
38 <emphasis>iscl</emphasis> (optional, default=0) -- coded scaling
39 factor for resonators. A value of 1 signifies a peak response
40 factor of 1, i.e. all frequencies other than kcf/acf are attenuated
41 in accordance with the (normalized) response curve. A value of 2
42 raises the response factor so that its overall RMS value equals
43 1. (This intended equalization of input and output power assumes
44 all frequencies are physically present; hence it is most
45 applicable to white noise.) A zero value signifies no scaling of
46 the signal, leaving that to some later adjustment (see <link
47 linkend="balance"><citetitle>balance</citetitle></link>). The
48 default value is 0.
49 </para>
50
51 <para>
52 <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.
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Performance</title>
58 <para>
59 <emphasis>ares</emphasis> -- the output signal at audio rate.
60 </para>
61
62 <para>
63 <emphasis>asig</emphasis> -- the input signal at audio rate.
64 </para>
65
66 <para>
67 <emphasis>kcf</emphasis>/<emphasis>acf</emphasis> -- the center
68 frequency of the filter, or frequency position of the peak
69 response.
70 </para>
71
72 <para>
73 <emphasis>kbw</emphasis>/<emphasis>abw</emphasis> -- bandwidth
74 of the filter (the Hz difference between the upper and lower
75 half-power points).
76 </para>
77
78 <para>
79 <emphasis>areson</emphasis> is a filter whose transfer functions
80 is the complement of <link
81 linkend="reson"><citetitle>reson</citetitle></link>. Thus
82 <emphasis>areson</emphasis> is a notch filter whose transfer
83 functions represents the <quote>filtered out</quote> aspects of
84 their complements. However, power scaling is not normalized in
85 <emphasis>areson</emphasis> but remains the true complement of
86 the corresponding unit. Thus an audio signal, filtered by
87 parallel matching <emphasis>reson</emphasis> and
88 <emphasis>areson</emphasis> units, would under addition simply
89 reconstruct the original spectrum.
90 </para>
91
92 <para>
93 This property is particularly useful for controlled mixing of
94 different sources (see <link
95 linkend="lpreson"><citetitle>lpreson</citetitle></link>). Complex
96 response curves such as those with multiple peaks can be
97 obtained by using a bank of suitable filters in series. (The
98 resultant response is the product of the component responses.)
99 In such cases, the combined attenuation may result in a serious
100 loss of signal power, but this can be regained by the use of
101 <link linkend="balance"><citetitle>balance</citetitle></link>.
102 </para>
103 <para>
104 <warning> When used with <emphasis>iscl</emphasis> this opcode
105 is not a notch filter but similar to <link
106 linkend="reson"><citetitle>reson</citetitle></link>.
107 </warning>
108 </para>
109 </refsect1>
110
111 <refsect1>
112 <title>Examples</title>
113 <para>
114 Here is an example of the areson opcode. It uses the file <ulink url="examples/areson.csd"><citetitle>areson.csd</citetitle></ulink>.
115
116 <example>
117 <title>Example of the areson opcode.</title>
118
119
120 <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>
121 <xi:include href="examples-xml/areson.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
122 </example>
123 </para>
124 </refsect1>
125
126 <refsect1>
127 <title>See also</title>
128 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
129 </refsect1>
130
131 <refsect1>
132 <title>Credits</title>
133 <para>Audio rate parameters introduced in version 6.02</para>
134 <para>October 2013.</para>
135 </refsect1>
136 </refentry>