| 1 | |
| 2 | <refentry id="weibull"> |
| 3 | <indexterm id="IndexWeibullXClass"><primary>x-class noise generators</primary></indexterm> |
| 4 | |
| 5 | <indexterm id="IndexWeibull"><primary>weibull</primary></indexterm> |
| 6 | <refentryinfo><title>Signal Generators:Random (Noise) Generators</title></refentryinfo> |
| 7 | <refmeta> |
| 8 | <refentrytitle>weibull</refentrytitle> |
| 9 | </refmeta> |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>weibull</refname> |
| 13 | <refpurpose> |
| 14 | Weibull distribution random number generator (positive values only). |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Weibull 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>weibull</command> ksigma, ktau</synopsis> |
| 28 | |
| 29 | <synopsis>ires <command>weibull</command> ksigma, ktau</synopsis> |
| 30 | |
| 31 | <synopsis>kres <command>weibull</command> ksigma, ktau</synopsis> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Performance</title> |
| 36 | <para> |
| 37 | <emphasis>ksigma</emphasis> -- scales the spread of the distribution. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>ktau</emphasis> -- if greater than one, numbers near <emphasis>ksigma</emphasis> are favored. If smaller than one, small values are favored. If t equals 1, the distribution is exponential. Outputs only positive numbers. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | For more detailed explanation of these distributions, see: |
| 46 | <orderedlist> |
| 47 | <listitem> |
| 48 | <para>C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286</para> |
| 49 | </listitem> |
| 50 | |
| 51 | <listitem> |
| 52 | <para>D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.</para> |
| 53 | </listitem> |
| 54 | </orderedlist> |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Examples</title> |
| 60 | <para> |
| 61 | Here is an example of the weibull opcode. It uses the file <ulink url="examples/weibull.csd"><citetitle>weibull.csd</citetitle></ulink>. |
| 62 | |
| 63 | <example> |
| 64 | <title>Example of the weibull opcode.</title> |
| 65 | <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> |
| 66 | <xi:include href="examples-xml/weibull.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 67 | </example> |
| 68 | |
| 69 | Its output should include a line like these: |
| 70 | <screen> |
| 71 | i 1 time 0.00073: 168.59070 |
| 72 | i 1 time 0.20027: 98.72078 |
| 73 | i 1 time 0.40054: 48.57351 |
| 74 | i 1 time 0.60009: 171.46941 |
| 75 | i 1 time 0.80036: 50.20434 |
| 76 | i 1 time 1.00063: 50.84775 |
| 77 | i 1 time 1.20018: 18.16301 |
| 78 | i 1 time 1.40045: 44.41001 |
| 79 | i 1 time 1.60000: 0.98506 |
| 80 | i 1 time 1.80027: 36.19192 |
| 81 | |
| 82 | WARNING: Seeding from current time 2444541554 |
| 83 | |
| 84 | i 2 time 3.00045: 20.81653 |
| 85 | i 2 time 3.20000: 116.17060 |
| 86 | i 2 time 3.40027: 9.23891 |
| 87 | i 2 time 3.59982: 95.67111 |
| 88 | i 2 time 3.80009: 296.52851 |
| 89 | i 2 time 4.00036: 39.28636 |
| 90 | i 2 time 4.19991: 13.54326 |
| 91 | i 2 time 4.40018: 54.92388 |
| 92 | i 2 time 4.59973: 268.05584 |
| 93 | i 2 time 4.80000: 95.27069 |
| 94 | i 2 time 5.00027: 91.62076 |
| 95 | |
| 96 | WARNING: Seeding from current time 2447542341 |
| 97 | |
| 98 | i 3 time 6.00091: 94.40902 |
| 99 | i 3 time 6.20045: 111.10193 |
| 100 | i 3 time 6.40073: 99.38797 |
| 101 | i 3 time 6.60027: 98.54267 |
| 102 | i 3 time 6.80054: 106.53899 |
| 103 | i 3 time 7.00082: 106.30752 |
| 104 | i 3 time 7.20036: 88.75486 |
| 105 | i 3 time 7.40063: 106.45703 |
| 106 | i 3 time 7.60091: 84.59854 |
| 107 | i 3 time 7.80045: 106.76515 |
| 108 | </screen> |
| 109 | </para> |
| 110 | </refsect1> |
| 111 | |
| 112 | <refsect1> |
| 113 | <title>See also</title> |
| 114 | <para><link linkend="SiggenNoise"><citetitle>Random (Noise) Generators</citetitle></link> |
| 115 | </para> |
| 116 | </refsect1> |
| 117 | |
| 118 | <refsect1> |
| 119 | <title>Credits</title> |
| 120 | <para> |
| 121 | <simplelist> |
| 122 | <member>Author: &nameparis;</member> |
| 123 | <member>MIT, Cambridge</member> |
| 124 | <member>1995</member> |
| 125 | </simplelist> |
| 126 | </para> |
| 127 | </refsect1> |
| 128 | </refentry> |