Sophie

Sophie

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

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>outq1</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="outo.html" title="outo" />
    <link rel="next" href="outq2.html" title="outq2" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">outq1</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="outo.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="outq2.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="outq1">
      <a id="outq1"></a>
      <div class="titlepage"></div>
      <a id="IndexOutq1" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">outq1</span>
        </h2>
        <p>outq1 — 
      Writes samples to quad channel 1 of an external device or stream.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp34777920"></a>
        <h2>Description</h2>
        <p>
      Writes samples to quad channel 1 of an external device or stream.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp34828712"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>outq1</strong></span> asig</pre>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp34829704"></a>
        <h2>Performance</h2>
        <p>
      Sends audio samples to an accumulating output buffer (created at the beginning of performance) which serves to collect the output of all active instruments before the sound is written to disk. There can be any number of these output units in an instrument.
    </p>
        <p>
      The type (mono, stereo, quad, hex, or oct) should agree with <a class="link" href="nchnls.html" title="nchnls"><em class="citetitle">nchnls</em></a>. But as of version 3.50, Csound will attempt to change an incorrect opcode to agree with the <span class="emphasis"><em>nchnls</em></span> statement. Opcodes can be chosen to direct sound to any particular channel: <span class="emphasis"><em>outs1</em></span> sends to stereo channel 1, <span class="emphasis"><em>outq3</em></span> to quad channel 3, etc.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp34832208"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the outq1 opcode. It uses the file <a class="ulink" href="examples/outq1.csd" target="_top"><em class="citetitle">outq1.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp34833176"></a>
          <p class="title">
            <strong>Example 551. Example of the outq1 opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac    <span class="comment">;;;realtime audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o outq1.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 4
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1

<span class="oblock">instr</span> 1

asig <span class="opc">vco2</span> .05, 30	<span class="comment">; sawtooth waveform at low volume</span>

kcut <span class="opc">line</span> 60, p3, 300	<span class="comment">; Vary cutoff frequency</span>
kresonance <span class="op">=</span> 7
inumlayer <span class="op">=</span> 2
asig <span class="opc">lowresx</span> asig, kcut, kresonance, inumlayer

      <span class="opc">outq1</span> asig	<span class="comment">; output channel 1</span>

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>

<span class="stamnt">i</span> 1 0 3
<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp34835448"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="out.html" title="out"><em class="citetitle">out</em></a>,
      <a class="link" href="outh.html" title="outh"><em class="citetitle">outh</em></a>,
      <a class="link" href="outo.html" title="outo"><em class="citetitle">outo</em></a>,
      <a class="link" href="outq.html" title="outq"><em class="citetitle">outq</em></a>,
      <a class="link" href="outq2.html" title="outq2"><em class="citetitle">outq2</em></a>,
      <a class="link" href="outq3.html" title="outq3"><em class="citetitle">outq3</em></a>,
      <a class="link" href="outq4.html" title="outq4"><em class="citetitle">outq4</em></a>,
      <a class="link" href="outs.html" title="outs"><em class="citetitle">outs</em></a>,
      <a class="link" href="outs1.html" title="outs1"><em class="citetitle">outs1</em></a>,
      <a class="link" href="outs2.html" title="outs2"><em class="citetitle">outs2</em></a>,
      <a class="link" href="soundout.html" title="soundout"><em class="citetitle">soundout</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp34841232"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Barry L. Vercoe, Matt Ingalls/Mike Berry</td>
          </tr>
          <tr>
            <td>MIT, Mills College</td>
          </tr>
          <tr>
            <td>1993-1997</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="outo.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="outq2.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">outo </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> outq2</td>
        </tr>
      </table>
    </div>
  </body>
</html>