Debian Codegraph @

opcodes/pcauchy.xml

raw symbols SCIP
1
2 <refentry id="pcauchy">
3 <indexterm id="IndexPcauchyXClass"><primary>x-class noise generators</primary></indexterm>
4
5 <indexterm id="IndexPcauchy"><primary>pcauchy</primary></indexterm>
6 <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>pcauchy</refentrytitle>
9 </refmeta>
10
11
12
13 <refnamediv>
14 <refname>pcauchy</refname>
15 <refpurpose>
16 Cauchy distribution random number generator (positive values only).
17 </refpurpose>
18 </refnamediv>
19
20 <refsect1>
21 <title>Description</title>
22 <para>
23 Cauchy distribution random number generator (positive values only). This is an x-class noise generator.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>ares <command>pcauchy</command> kalpha</synopsis>
30
31 <synopsis>ires <command>pcauchy</command> kalpha</synopsis>
32
33 <synopsis>kres <command>pcauchy</command> kalpha</synopsis>
34 </refsect1>
35
36 <refsect1>
37 <title>Performance</title>
38 <para>
39 <emphasis>pcauchy</emphasis> <emphasis>kalpha</emphasis> -- controls the spread from zero (big kalpha = big spread). Outputs positive numbers only.
40 </para>
41
42 <para>
43 For more detailed explanation of these distributions, see:
44 <orderedlist>
45 <listitem>
46 <para>C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286</para>
47 </listitem>
48
49 <listitem>
50 <para>D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.</para>
51 </listitem>
52 </orderedlist>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the pcauchy opcode. It uses the file <ulink url="examples/pcauchy.csd"><citetitle>pcauchy.csd</citetitle></ulink>.
60 <example>
61 <title>Example of the pcauchy opcode.</title>
62 <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>
63 <xi:include href="examples-xml/pcauchy.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
64 </example>
65
66 Its output should include a line like this:
67 <screen>
68 i 1 time 0.00033: 10.48851
69 i 1 time 0.20033: 0.29508
70 i 1 time 0.40033: 1.75214
71 i 1 time 0.60033: 22.88281
72 i 1 time 0.80033: 16.06435
73 i 1 time 1.00000: 0.43110
74 i 1 time 1.20033: 16.51694
75 i 1 time 1.40033: 2.98797
76 i 1 time 1.60033: 1.32767
77 i 1 time 1.80000: 17.94039
78 i 1 time 2.00000: 4.85994
79 Seeding from current time 1526147515
80 i 2 time 3.00033: 0.89797
81 i 2 time 3.20033: 9.19447
82 i 2 time 3.40033: 0.73053
83 i 2 time 3.60000: 7.43371
84 i 2 time 3.80033: 5.87640
85 i 2 time 4.00000: 0.80456
86 i 2 time 4.20000: 4.50637
87 i 2 time 4.40033: 2.08145
88 i 2 time 4.60033: 13.47125
89 i 2 time 4.80033: 3.16399
90 i 2 time 5.00000: 11.05428
91 </screen>
92 </para>
93 </refsect1>
94
95 <refsect1>
96 <title>See also</title>
97 <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link></para>
98 </refsect1>
99
100 <refsect1>
101 <title>Credits</title>
102 <para>
103 <simplelist>
104 <member>Author: &nameparis;</member>
105 <member>MIT, Cambridge</member>
106 <member>1995</member>
107 </simplelist>
108 </para>
109 </refsect1>
110 </refentry>