Debian Codegraph @

opcodes/noise.xml

raw symbols SCIP
1
2 <refentry id="noise">
3 <indexterm id="IndexNoise"><primary>noise</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>noise</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>noise</refname>
13 <refpurpose>
14 A white noise generator with an IIR lowpass filter.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 A white noise generator with an IIR lowpass filter.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>noise</command> xamp, kbeta</synopsis>
28 </refsect1>
29
30 <!-- <refsect1>
31 <title>Initialization</title>
32 </refsect1>-->
33
34 <refsect1>
35 <title>Performance</title>
36 <para>
37 <emphasis>xamp</emphasis> -- amplitude of final output
38 </para>
39
40 <para>
41 <emphasis>kbeta</emphasis> -- beta of the lowpass filter. Should
42 be in the range of -1 to 1, exclusive of the end-points.
43 </para>
44
45 <para>
46 The filter equation is:
47 <mediaobject>
48 <imageobject>
49 <imagedata fileref="images/noise-filter.png" format="PNG"/>
50 </imageobject>
51
52 <textobject>
53 <phrase>[Filter equation for filter in noise opcode.]</phrase>
54 </textobject>
55
56 <!-- <caption>
57 <para>A diagram showing the Poisson distribution.</para>
58 </caption>-->
59 </mediaobject>
60
61 where <emphasis>x<subscript>n</subscript></emphasis> is the original white noise and <emphasis>y<subscript>n</subscript></emphasis> is lowpass filtered noise. The higher &beta; is, the lower the filter's cut-off frequency. The cutoff frequency is roughly sr * ((1-kbeta)/2).
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>Examples</title>
67 <para>
68 Here is an example of the noise opcode. It uses the file <ulink url="examples/noise.csd"><citetitle>noise.csd</citetitle></ulink>.
69
70 <example>
71 <title>Example of the noise opcode.</title>
72
73 <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>
74 <xi:include href="examples-xml/noise.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
75 </example>
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>See also</title>
81 <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link></para>
82 </refsect1>
83
84 <refsect1>
85 <title>Credits</title>
86 <para>
87 <simplelist>
88 <member>Author: &namejohn;</member>
89 <member>University of Bath, Codemist. Ltd.</member>
90 <member>Bath, UK</member>
91 <member>December 2000</member>
92 </simplelist>
93 </para>
94 <para>New in Csound version 4.10</para>
95 </refsect1>
96 </refentry>