| 1 | |
| 2 | <refentry id="outs"> |
| 3 | <indexterm id="IndexOuts"><primary>outs</primary></indexterm> |
| 4 | <refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>outs</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>outs</refname> |
| 13 | <refpurpose> |
| 14 | Writes stereo audio data to an external device or stream. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Writes stereo audio data to an external device or stream. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis><command>outs</command> asig1, asig2</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Performance</title> |
| 32 | <para> |
| 33 | Sends stereo 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. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | The type (mono, stereo, quad, hex, or oct) should agree with <link linkend="nchnls"><citetitle>nchnls</citetitle></link>. But as of version 3.50, Csound will attempt to change an incorrect opcode to agree with the <emphasis>nchnls</emphasis> statement. Opcodes can be chosen to direct sound to any particular channel: <emphasis>outs1</emphasis> sends to stereo channel 1, <emphasis>outq3</emphasis> to quad channel 3, etc. |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Examples</title> |
| 43 | <para> |
| 44 | Here is an example of the outs opcode. It uses the file <ulink url="examples/outs.csd"><citetitle>outs.csd</citetitle></ulink>. |
| 45 | <example> |
| 46 | <title>Example of the outs opcode.</title> |
| 47 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 48 | <xi:include href="examples-xml/outs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 49 | </example> |
| 50 | </para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See also</title> |
| 55 | <para><link linkend="SigioOutput"><citetitle>Signal Output</citetitle></link></para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Credits</title> |
| 60 | <para> |
| 61 | <simplelist> |
| 62 | <member>Author: &namebarry;, &namematt;/&namemike;</member> |
| 63 | <member>MIT, Mills College</member> |
| 64 | <member>1993-1997</member> |
| 65 | </simplelist> |
| 66 | </para> |
| 67 | </refsect1> |
| 68 | </refentry> |