Debian Codegraph @

opcodes/resonxk.xml

raw symbols SCIP
1
2 <refentry id="resonxk">
3 <indexterm id="IndexResonxk"><primary>resonxk</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>resonxk</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>resonxk</refname>
13 <refpurpose>
14 Control signal resonant filter stack.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>resonxk</emphasis> is equivalent to a group of resonk filters, with the same arguments, serially connected. Using a stack of a larger number of filters allows a sharper cutoff.
22 </para>
23 </refsect1>
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>kres <command>resonxk</command> ksig, kcf, kbw[, inumlayer, iscl, istor]</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>inumlayer</emphasis> - number of elements of filter stack. Default value is 4. Maximum value is 10
33 </para>
34 <para>
35 <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 balance). The default value is 0.
36 </para>
37 <para>
38 <emphasis>istor</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.
39 </para>
40
41 </refsect1>
42
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 <emphasis>kres</emphasis> - output signal
47 </para>
48 <para>
49 <emphasis>ksig</emphasis> - input signal
50 </para>
51 <para>
52 <emphasis>kcf</emphasis> - the center frequency of the filter, or frequency position of the peak response.
53 </para>
54 <para>
55 <emphasis>kbw</emphasis> - bandwidth of the filter (the Hz difference between the upper and lower half-power points)
56 </para>
57
58 <para><emphasis>resonxk</emphasis> is a lot faster than using individual instances in Csound orchestra of the old opcodes, because only one initialization and 'k' cycle are needed at a time, and the audio loop falls enterely inside the cache memory of processor.
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>Examples</title>
64 <para>
65 Here is an example of the resonxk opcode. It uses the file <ulink url="examples/resonxk.csd"><citetitle>resonxk.csd</citetitle></ulink>.
66 <example>
67 <title>Example of the resonxk opcode.</title>
68 <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>
69 <xi:include href="examples-xml/resonxk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
70 </example>
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>See also</title>
76 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Control signal filters</citetitle></link></para>
77 </refsect1>
78
79 <refsect1>
80 <title>Credits</title>
81 <para>Written by &namegabriel;.</para>
82 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
83 </refsect1>
84 </refentry>
85