Sophie

Sophie

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

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>chnset</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="chnsend.html" title="chnsend" />
    <link rel="next" href="chuap.html" title="chuap" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">chnset</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="chnsend.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="chuap.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="chnset">
      <a id="chnset"></a>
      <div class="titlepage"></div>
      <a id="Indexchnset" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">chnset</span>
        </h2>
        <p>chnset — 
      Writes data to the named software bus.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2785067"></a>
        <h2>Description</h2>
        <p>
      Write to a channel of the named software bus. Implies declaring the
      channel with <span class="emphasis"><em>imod</em></span>=2 (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="id2784809"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>chnset</strong></span> ival, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnset</strong></span> kval, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnset</strong></span> aval, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnset</strong></span> Sval, Sname</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id2785684"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>Sname</em></span> -- a string that indicates which
      named channel of the software bus to write.
    </p>
        <p>
      <span class="emphasis"><em>ival</em></span> -- the control value to write at i-time.
    </p>
        <p>
      <span class="emphasis"><em>Sval</em></span> -- the string value to write at i-time.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id2785714"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kval</em></span> -- the control value to write at performance
      time.
    </p>
        <p>
      <span class="emphasis"><em>aval</em></span> -- the audio signal to write at performance
      time.
    </p>
      </div>
      <div class="refsect1" title="Example">
        <a id="id2785737"></a>
        <h2>Example</h2>
        <p>
      The example shows the software bus being used to write pitch
      information to a controlling program.
    </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
           a1    <span class="opc">in</span>
           kp,ka <span class="opc">pitchamdf</span> a1
                 <span class="opc">chnset</span>    kp, "pitch"
        <span class="oblock">endin</span>
      </pre>
        </div>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2785821"></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="chnsend.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="chuap.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">chnsend </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> chuap</td>
        </tr>
      </table>
    </div>
  </body>
</html>