Debian Codegraph @

opcodes/bexprnd.xml

raw symbols SCIP
1
2 <refentry id="bexprnd">
3 <indexterm id="IndexBexprndXClass"><primary>x-class noise generators</primary></indexterm>
4
5 <indexterm id="IndexBexprnd"><primary>bexprnd</primary></indexterm>
6 <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>bexprnd</refentrytitle>
9 </refmeta>
10 <refnamediv>
11 <refname>bexprnd</refname>
12 <refpurpose>
13 Exponential distribution random number generator.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Exponential distribution random number generator. This is an x-class noise generator.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>ares <command>bexprnd</command> krange</synopsis>
27
28 <synopsis>ires <command>bexprnd</command> krange</synopsis>
29
30 <synopsis>kres <command>bexprnd</command> krange</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Performance</title>
35 <para>
36 <emphasis>krange</emphasis> -- the range of the random numbers (-<emphasis>krange</emphasis> to +<emphasis>krange</emphasis>)
37 </para>
38
39 <para>
40 For more detailed explanation of these distributions, see:
41 <orderedlist>
42 <listitem>
43 <para>C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286</para>
44 </listitem>
45
46 <listitem>
47 <para>D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.</para>
48 </listitem>
49 </orderedlist>
50 </para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the bexprnd opcode. It uses the file <ulink url="examples/bexprnd.csd"><citetitle>bexprnd.csd</citetitle></ulink>.
57
58 <example>
59 <title>Example of the bexprnd 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/bexprnd.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63
64 Its output should include a line like:
65 <screen>
66 i 1 time 0.00267: 99.27598
67 i 1 time 0.20267: 74.97176
68 i 1 time 0.40267: -35.67213
69 i 1 time 0.60267: 1.10579
70 i 1 time 0.80267: -18.08816
71 i 1 time 1.00000: 28.93329
72 i 1 time 1.20267: 320.63733
73 i 1 time 1.40267: -332.05614
74 i 1 time 1.60267: -212.66361
75 i 1 time 1.80000: -92.57433
76 i 1 time 2.00000: 140.70939
77 Seeding from current time 4055201702
78 i 2 time 3.00267: 190.30495
79 i 2 time 3.20267: -58.30677
80 i 2 time 3.40267: 192.39784
81 i 2 time 3.60000: 12.72448
82 i 2 time 3.80267: 79.91503
83 i 2 time 4.00000: 34.44258
84 i 2 time 4.20000: 167.92680
85 i 2 time 4.40267: -117.10278
86 i 2 time 4.60267: -70.99155
87 i 2 time 4.80267: -23.24037
88 i 2 time 5.00000: -226.35500
89 </screen>
90 </para>
91 </refsect1>
92
93 <refsect1>
94 <title>See also</title>
95 <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link></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>