Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 431

csound-doc-5.19.01-10.mga5.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>chnsend</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <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="chnrecv.html" title="chnrecv" />
    <link rel="next" href="chnset.html" title="chnset" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">chnsend</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="chnrecv.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="chnset.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="chnsend">
      <a id="chnsend"></a>
      <div class="titlepage"></div>
      <a id="IndexChnsend" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">chnsend</span>
        </h2>
        <p>chnsend — 
      Sends data via the named software bus.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp15769752"></a>
        <h2>Description</h2>
        <p>
      Send to a channel of the named software bus. Implies declaring the
      channel with imode=2 (see also chn_k, chn_a, and chn_S).
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp15770496"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>chnsend</strong></span> ival, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnsend</strong></span> kval, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnsend</strong></span> aval, Sname</pre>
        <pre class="synopsis"><span class="command"><strong>chnsend</strong></span> Sval, Sname</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp15782864"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>Sname</em></span> -- a string that indicates which
      named channel of the software bus to send to.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp15783768"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>ival</em></span> -- the control value to write at i-time.
    </p>
        <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>
        <p>
      <span class="emphasis"><em>Sval</em></span> -- the string value to write at i-time.
    </p>
      </div>
      <div class="refsect1" title="Example">
        <a id="idp15864560"></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">ksmps</span> <span class="op">=</span> 100
        <span class="ohdr">nchnls</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">chnsend</span>   kp, "pitch"
        <span class="oblock">endin</span></pre>
        </div>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp15869544"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="chnrecv.html" title="chnrecv"><em class="citetitle">chnrecv</em></a>,
      <a class="link" href="chnset.html" title="chnset"><em class="citetitle">chnset</em></a>,
      <a class="link" href="chnget.html" title="chnget"><em class="citetitle">chnget</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp15871624"></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="chnrecv.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="chnset.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">chnrecv </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> chnset</td>
        </tr>
      </table>
    </div>
  </body>
</html>