Sophie

Sophie

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

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>trandom</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="tonex.html" title="tonex" />
    <link rel="next" href="tradsyn.html" title="tradsyn" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">trandom</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="tonex.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="tradsyn.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="trandom">
      <a id="trandom"></a>
      <div class="titlepage"></div>
      <a id="IndexTrandom" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">trandom</span>
        </h2>
        <p>trandom — 
     Generates a controlled pseudo-random number series between min and max values according to a trigger.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3297639"></a>
        <h2>Description</h2>
        <p>
      Generates a controlled pseudo-random number series between min and max values at k-rate whenever the trigger parameter is different to 0.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3297660"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">kout <span class="command"><strong>trandom</strong></span> ktrig, kmin, kmax</pre>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3297698"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>ktrig</em></span> -- trigger (opcode produces a new random number whenever this value is not 0.
    </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>trandom</em></span> is almost identical to <a class="link" href="random.html" title="random"><em class="citetitle">random</em></a> opcode, except <span class="emphasis"><em>trandom</em></span> updates its output with a new random value only when the <span class="emphasis"><em>ktrig</em></span> argument is triggered (i.e. whenever it is not zero).
    </p>
      </div>
      <div class="refsect1" title="See also">
        <a id="id3298605"></a>
        <h2>See also</h2>
        <p>
      <a class="link" href="random.html" title="random"><em class="citetitle">random</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3298631"></a>
        <h2>Credits</h2>
        <p>Written by Gabriel Maldonado.</p>
        <p>New in Csound 5.06</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="tonex.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="tradsyn.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">tonex </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> tradsyn</td>
        </tr>
      </table>
    </div>
  </body>
</html>