Debian Codegraph @

opcodes/trirand.xml

raw symbols SCIP
1
2 <refentry id="trirand">
3 <indexterm id="IndexTrirandXClass"><primary>x-class noise generators</primary></indexterm>
4
5 <indexterm id="IndexTrirand"><primary>trirand</primary></indexterm>
6 <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>trirand</refentrytitle>
9 </refmeta>
10
11 <refnamediv>
12 <refname>trirand</refname>
13 <refpurpose>
14 Triangular distribution random number generator
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Triangular distribution random number generator. This is an x-class noise generator.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>trirand</command> krange</synopsis>
28
29 <synopsis>ires <command>trirand</command> krange</synopsis>
30
31 <synopsis>kres <command>trirand</command> krange</synopsis>
32 </refsect1>
33
34 <refsect1>
35 <title>Performance</title>
36 <para>
37 <emphasis>krange</emphasis> -- the range of the random numbers (-<emphasis>krange</emphasis> to +<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 trirand opcode. It uses the file <ulink url="examples/trirand.csd"><citetitle>trirand.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the trirand 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/trirand.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 Its output should include a line like this:
64 <screen>
65 i 1 time 0.00067: -4.97993
66 i 1 time 0.20067: 1.20909
67 i 1 time 0.40067: 17.45873
68 i 1 time 0.60067: 52.55409
69 i 1 time 0.80067: -1.92888
70 i 1 time 1.00000: -11.01149
71 i 1 time 1.20067: 9.79521
72 i 1 time 1.40067: 26.98504
73 i 1 time 1.60067: 24.67405
74 i 1 time 1.80000: -67.59846
75 i 1 time 2.00000: 64.24861
76 WARNING: Seeding from current time 521999639
77 i 2 time 3.00067: 3.28969
78 i 2 time 3.20067: 54.98986
79 i 2 time 3.40067: -33.84788
80 i 2 time 3.60000: -41.93523
81 i 2 time 3.80067: -6.61742
82 i 2 time 4.00000: 39.67097
83 i 2 time 4.20000: 2.95123
84 i 2 time 4.40067: 45.59255
85 i 2 time 4.60067: 16.57259
86 i 2 time 4.80067: -18.80273
87 i 2 time 5.00000: -2.01697
88 </screen>
89 </para>
90 </refsect1>
91
92 <refsect1>
93 <title>See also</title>
94 <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link>
95 </para>
96 </refsect1>
97
98 <refsect1>
99 <title>Credits</title>
100 <para>
101 <simplelist>
102 <member>Author: &nameparis;</member>
103 <member>MIT, Cambridge</member>
104 <member>1995</member>
105 </simplelist>
106 </para>
107 </refsect1>
108 </refentry>