Debian Codegraph @

opcodes/unirand.xml

raw symbols SCIP
1
2 <refentry id="unirand">
3 <indexterm id="IndexUnirandXClass"><primary>x-class noise generators</primary></indexterm>
4
5 <indexterm id="IndexUnirand"><primary>unirand</primary></indexterm>
6 <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>unirand</refentrytitle>
9 </refmeta>
10
11 <refnamediv>
12 <refname>unirand</refname>
13 <refpurpose>
14 Uniform distribution random number generator (positive values only).
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Uniform distribution random number generator (positive values only). This is an x-class noise generator.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>unirand</command> krange</synopsis>
28
29 <synopsis>ires <command>unirand</command> krange</synopsis>
30
31 <synopsis>kres <command>unirand</command> krange</synopsis>
32 </refsect1>
33
34 <refsect1>
35 <title>Performance</title>
36 <para>
37 <emphasis>krange</emphasis> -- the range of the random numbers (0 - <emphasis>krange</emphasis>).
38 </para>
39
40 <para>
41 For more detailed explanation of these distributions, see:
42 <orderedlist>
43 <listitem>
44 <para>C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286</para>
45 </listitem>
46
47 <listitem>
48 <para>D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.</para>
49 </listitem>
50 </orderedlist>
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Examples</title>
56 <para>
57 Here is an example of the unirand opcode. It uses the file <ulink url="examples/unirand.csd"><citetitle>unirand.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the unirand opcode.</title>
60 <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>
61 <xi:include href="examples-xml/unirand.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 Its output should include lines like these:
64 <screen>
65 i 1 time 0.00067: 81.47237
66 i 1 time 0.20067: 41.72671
67 i 1 time 0.40067: 5.96189
68 i 1 time 0.60067: 91.59912
69 i 1 time 0.80067: 85.07127
70 i 1 time 1.00000: 92.50948
71 i 1 time 1.20067: 98.79347
72 i 1 time 1.40067: 98.91449
73 i 1 time 1.60067: 50.37808
74 i 1 time 1.80000: 72.02497
75 i 1 time 2.00000: 52.94362
76
77 WARNING: Seeding from current time 4007444022
78
79 i 2 time 3.00067: 91.86294
80 i 2 time 3.20067: 94.68759
81 i 2 time 3.40067: 1.05825
82 i 2 time 3.60000: 78.57628
83 i 2 time 3.80067: 27.67408
84 i 2 time 4.00000: 76.46347
85 i 2 time 4.20000: 77.10071
86 i 2 time 4.40067: 34.28921
87 i 2 time 4.60067: 37.72286
88 i 2 time 4.80067: 54.96646
89 i 2 time 5.00000: 11.67566
90 B 3.000 .. 5.000 T 5.000 TT 5.000 M: 0.80000 0.80000
91 Score finished in csoundPerform().
92 </screen>
93 </para>
94 </refsect1>
95
96 <refsect1>
97 <title>See also</title>
98 <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link>
99 </para>
100 </refsect1>
101
102 <refsect1>
103 <title>Credits</title>
104 <para>
105 <simplelist>
106 <member>Author: &nameparis;</member>
107 <member>MIT, Cambridge</member>
108 <member>1995</member>
109 </simplelist>
110 </para>
111 </refsect1>
112 </refentry>