Sophie

Sophie

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

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>MixerReceive</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="MixerSend.html" title="MixerSend" />
    <link rel="next" href="MixerClear.html" title="MixerClear" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">MixerReceive</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="MixerSend.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="MixerClear.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="MixerReceive">
      <a id="MixerReceive"></a>
      <div class="titlepage"></div>
      <a id="IndexMixerReceive" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">MixerReceive</span>
        </h2>
        <p>MixerReceive — 
      Receives an arate signal from a channel of a buss.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3034560"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">asignal <span class="command"><strong>MixerReceive</strong></span> ibuss, ichannel</pre>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3034305"></a>
        <h2>Description</h2>
        <p>Receives an arate signal that has been mixed onto a channel of a buss.
    </p>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3034316"></a>
        <h2>Initialization</h2>
        <p><span class="emphasis"><em>ibuss</em></span> -- The number of the buss, for example the number of the instrument receiving the signal.</p>
        <p><span class="emphasis"><em>ichannel</em></span> -- The number of the channel. Each buss has <code class="literal">nchnls</code> channels.</p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3035151"></a>
        <h2>Performance</h2>
        <p><span class="emphasis"><em>asignal</em></span> -- The signal that has been mixed onto the indicated channel of the buss.</p>
        <p>
Use of the mixer requires that instruments setting gains have smaller numbers than instruments sending signals, 
and that instruments sending signals have smaller numbers than instruments receiving those signals. 
However, an instrument may have any number of sends or receives. After the final signal is received, 
<a class="link" href="MixerClear.html" title="MixerClear"><em class="citetitle">MixerClear</em></a> must be invoked to reset the busses to 0 before the next kperiod.
</p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id3035182"></a>
        <h2>Examples</h2>
        <pre class="programlisting">
<span class="oblock">instr</span> 220 <span class="comment">; Master output</span>
    <span class="comment">; It applies a bass enhancement, compression and fadeout</span>
    <span class="comment">; to the whole piece, outputs signals, and clears the mixer.</span>
  a1  <span class="opc">MixerReceive</span> 220, 0
  a2  <span class="opc">MixerReceive</span> 220, 1
  <span class="comment">; Bass enhancement</span>
  al1 <span class="opc">butterlp</span> a1, 100
  al2 <span class="opc">butterlp</span> a2, 100
  a1 <span class="op">=</span> al1<span class="op">*</span>1.5 <span class="op">+</span> a1
  a2 <span class="op">=</span> al2<span class="op">*</span>1.5 <span class="op">+</span> a2 

  <span class="comment">; Global amplitude shape</span>
  kenv   <span class="opc">linseg</span> 0., p5 <span class="op">/</span> 2.0, p4, p3 <span class="op">-</span> p5, p4, p5 <span class="op">/</span> 2.0, 0.
  a1<span class="op">=</span>a1<span class="op">*</span>kenv
  a2<span class="op">=</span>a2<span class="op">*</span>kenv 
  
  <span class="comment">; Compression</span>
  a1 <span class="opc">dam</span> a1, 5000, 0.5, 1, 0.2, 0.1  
  a2 <span class="opc">dam</span> a2, 5000, 0.5, 1, 0.2, 0.1  
  
  <span class="comment">; Remove DC bias</span>
  a1blocked <span class="opc">dcblock</span>		a1
  a2blocked	<span class="opc">dcblock</span>		a2
  
  <span class="comment">; Output signals</span>
  <span class="opc">outs</span> a1blocked, a2blocked
  <span class="opc">MixerClear</span>
<span class="oblock">endin</span></pre>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3035390"></a>
        <h2>Credits</h2>
        <p>Michael Gogins (gogins at pipeline dot com).</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="MixerSend.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="MixerClear.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">MixerSend </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> MixerClear</td>
        </tr>
      </table>
    </div>
  </body>
</html>