Debian Codegraph @

opcodes/tonex.xml

raw symbols SCIP
1
2 <refentry id="tonex">
3 <indexterm id="IndexTonex"><primary>tonex</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>tonex</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>tonex</refname>
13 <refpurpose>
14 Emulates a stack of filters using the tone opcode.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>tonex</emphasis> is equivalent to a filter consisting of more layers of <link linkend="tone"><citetitle>tone</citetitle></link> with the same arguments, serially connected. Using a stack of a larger number of filters allows a sharper cutoff. They are faster than using a larger number instances in a Csound orchestra of the old opcodes, because only one initialization and k- cycle are needed at time and the audio loop falls entirely inside the cache memory of processor.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>tonex</command> asig, khp [, inumlayer] [, iskip]</synopsis>
28 <synopsis>ares <command>tonex</command> asig, ahp [, inumlayer] [, iskip]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>inumlayer</emphasis> (optional) -- number of elements in the filter stack. Default value is 4.
35 </para>
36
37 <para>
38 <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.
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Performance</title>
44 <para>
45 <emphasis>asig</emphasis> -- input signal
46 </para>
47
48 <para>
49 <emphasis>khp</emphasis>/<emphasis>ahp</emphasis> -- the
50 response curve's half-power point. Half power is defined as peak
51 power / root 2.
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>Examples</title>
57 <para>
58 Here is an example of the tonex opcode. It uses the file <ulink url="examples/tonex.csd"><citetitle>tonex.csd</citetitle></ulink>.
59 <example>
60 <title>Example of the tonex opcode.</title>
61 <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>
62 <xi:include href="examples-xml/tonex.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
63 </example>
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>See also</title>
69 <para><link linkend="SigmodStandard"><citetitle>Standard filters: Low-pass filters</citetitle></link></para>
70 </refsect1>
71
72 <refsect1>
73 <title>Credits</title>
74 <para>
75 <simplelist>
76 <member>Author: &namegabriel; (adapted by &namejohn;)</member>
77 <member>Italy</member>
78 </simplelist>
79 </para>
80 <para>New in Csound version 3.49</para>
81 <para>Audio rate parameters introduced in version 6.02</para>
82 <para>October 2013.</para>
83 </refsect1>
84 </refentry>