Sophie

Sophie

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

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>chnget</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="chnexport.html" title="chnexport" />
    <link rel="next" href="chnmix.html" title="chnmix" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">chnget</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="chnexport.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="chnmix.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="chnget">
      <a id="chnget"></a>
      <div class="titlepage"></div>
      <a id="Indexchnget" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">chnget</span>
        </h2>
        <p>chnget — 
      Reads data from the software bus.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2782397"></a>
        <h2>Description</h2>
        <p>
      Reads data from a channel of the inward named software bus.
      Implies declaring the channel with <span class="emphasis"><em>imode</em></span>=1 (see also
      <a class="link" href="chn.html" title="chn"><em class="citetitle">chn_k, chn_a, and chn_S</em></a>).
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id2782458"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ival <span class="command"><strong>chnget</strong></span> Sname</pre>
        <pre class="synopsis">kval <span class="command"><strong>chnget</strong></span> Sname</pre>
        <pre class="synopsis">aval <span class="command"><strong>chnget</strong></span> Sname</pre>
        <pre class="synopsis">Sval <span class="command"><strong>chnget</strong></span> Sname</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id2783342"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>Sname</em></span> -- a string that identifies a channel
      of the named software bus to read.
    </p>
        <p>
      <span class="emphasis"><em>ival</em></span> -- the control value read at i-time.
    </p>
        <p>
      <span class="emphasis"><em>Sval</em></span> -- the string value read at i-time.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id2783371"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kval</em></span> -- the control value read at performance time.
    </p>
        <p>
      <span class="emphasis"><em>aval</em></span> -- the audio signal read at performance time.
    </p>
      </div>
      <div class="refsect1" title="Example">
        <a id="id2783393"></a>
        <h2>Example</h2>
        <p>
      The example shows the software bus being used as an asynchronous
      control signal to select a filter cutoff.  It assumes that an
      external program that has access to the API is feeding the values.
    </p>
        <div class="informalexample">
          <pre class="programlisting">
        <span class="ohdr">sr</span> <span class="op">=</span> 44100
        <span class="ohdr">kr</span> <span class="op">=</span> 100
        <span class="ohdr">ksmps</span> <span class="op">=</span> 1

        <span class="oblock">instr</span>   1
           kc   <span class="opc">chnget</span>    "cutoff"
           a1   <span class="opc">oscil</span>     p4, p5, 100
           a2   <span class="opc">lowpass2</span>  a1, kc, 200
                <span class="opc">out</span>       a2
        <span class="oblock">endin</span>
      </pre>
        </div>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2783485"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Istvan Varga</td>
          </tr>
          <tr>
            <td>2005</td>
          </tr>
        </table>
        <p>
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="chnexport.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="chnmix.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">chnexport </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> chnmix</td>
        </tr>
      </table>
    </div>
  </body>
</html>