Sophie

Sophie

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

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>GEN42</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="ScoregensTop.html" title="Score Statements and GEN Routines" />
    <link rel="prev" href="GEN41.html" title="GEN41" />
    <link rel="next" href="GEN43.html" title="GEN43" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">GEN42</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="GEN41.html">Prev</a> </td>
          <th width="60%" align="center">Score Statements and GEN Routines</th>
          <td width="20%" align="right"> <a accesskey="n" href="GEN43.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="GEN42">
      <a id="GEN42"></a>
      <div class="titlepage"></div>
      <a id="IndexGEN42" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">GEN42</span>
        </h2>
        <p>GEN42 — 
      Generates a random distribution of discrete ranges of values.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3747469"></a>
        <h2>Description</h2>
        <p>
      Generates a random distribution function of discrete ranges of values by giving a list of groups of three numbers.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3747481"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>f</strong></span> # time size -42  min1 max1 prob1 min2 max2 prob2 min3 max3 prob3 ...  minN maxN probN</pre>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3747499"></a>
        <h2>Performance</h2>
        <p>
      The first number of each group is a the minimum value of the range, the second is the maximum value and the third is the probability of that an element belonging to that range of values can be chosen by a random algorithm. Probabilities for a range should be a fraction of 1, and the sum of the probabilities for all the ranges should total 1.0.
    </p>
        <p>
      This subroutine is designed to be used together with duserrnd and <a class="link" href="urd.html" title="urd"><em class="citetitle">urd</em></a> opcodes (see <a class="link" href="duserrnd.html" title="duserrnd">duserrnd</a> for more information). Since both duserrnd and urd do not use any interpolation, it is suggested to give a size reasonably big.
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3748490"></a>
        <h2>Credits</h2>
        <p>Author: Gabriel Maldonado</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="GEN41.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ScoregensTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="GEN43.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">GEN41 </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> GEN43</td>
        </tr>
      </table>
    </div>
  </body>
</html>