Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 640

csound-manual-5.13.0-5.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>cuserrnd</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="ctrlinit.html" title="ctrlinit" />
    <link rel="next" href="dam.html" title="dam" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">cuserrnd</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ctrlinit.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="dam.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="cuserrnd">
      <a id="cuserrnd"></a>
      <div class="titlepage"></div>
      <a id="IndexCuserrnd" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">cuserrnd</span>
        </h2>
        <p>cuserrnd — 
      Continuous USER-defined-distribution RaNDom generator.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2808154"></a>
        <h2>Description</h2>
        <p>
      Continuous USER-defined-distribution RaNDom generator.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id2808165"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">aout <span class="command"><strong>cuserrnd</strong></span> kmin, kmax, ktableNum</pre>
        <pre class="synopsis">iout <span class="command"><strong>cuserrnd</strong></span> imin, imax, itableNum</pre>
        <pre class="synopsis">kout <span class="command"><strong>cuserrnd</strong></span> kmin, kmax, ktableNum</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id2808518"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>imin</em></span> -- minimum range limit
    </p>
        <p>
      <span class="emphasis"><em>imax</em></span> -- maximum range limit
    </p>
        <p>
      <span class="emphasis"><em>itableNum</em></span> -- number of table containing the random-distribution function.  Such table is generated by the user. See <a class="link" href="GEN40.html" title="GEN40">GEN40</a>, <a class="link" href="GEN41.html" title="GEN41">GEN41</a>, and <a class="link" href="GEN42.html" title="GEN42">GEN42</a>. The table length does not need to be a power of 2
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id2808880"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>ktableNum</em></span> -- number of table containing the random-distribution function.  Such table is generated by the user. See <a class="link" href="GEN40.html" title="GEN40">GEN40</a>, <a class="link" href="GEN41.html" title="GEN41">GEN41</a>, and <a class="link" href="GEN42.html" title="GEN42">GEN42</a>. The table length does not need to be a power of 2
    </p>
        <p>
      <span class="emphasis"><em>kmin</em></span> -- minimum range limit
    </p>
        <p>
      <span class="emphasis"><em>kmax</em></span> -- maximum range limit
    </p>
        <p>
      <span class="emphasis"><em>cuserrnd</em></span> (continuous user-defined-distribution random generator) generates random values according to a continuous random distribution created by the user. In this case the shape of the distribution histogram can be drawn or generated by any GEN routine. The table containing the shape of such histogram must then be translated to a distribution function by means of GEN40 (see <a class="link" href="GEN40.html" title="GEN40">GEN40</a> for more details). Then such function must be assigned to the XtableNum argument of cuserrnd.  The output range can then be rescaled according to the Xmin and Xmax arguments. cuserrnd linearly interpolates between table elements, so it is not recommended for discrete distributions (<a class="link" href="GEN41.html" title="GEN41">GEN41</a> and <a class="link" href="GEN42.html" title="GEN42">GEN42</a>).
    </p>
        <p>
      For a tutorial about random distribution histograms and functions see:

      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" type="disc">
            <li class="listitem">
              <p>
            D. Lorrain. "A panoply of stochastic cannons". In C. Roads, ed. 1989. Music machine. Cambridge, Massachusetts: MIT press, pp. 351 - 379.
          </p>
            </li>
          </ul>
        </div>
        <p>
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="id2808987"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="duserrnd.html" title="duserrnd"><em class="citetitle">duserrnd</em></a>,
      <a class="link" href="urd.html" title="urd"><em class="citetitle">urd</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2809013"></a>
        <h2>Credits</h2>
        <p>Author: Gabriel Maldonado</p>
        <p>New in Version 4.16</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ctrlinit.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="dam.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">ctrlinit </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> dam</td>
        </tr>
      </table>
    </div>
  </body>
</html>