| 1 | |
| 2 | <refentry id="out"> |
| 3 | <indexterm id="IndexOut"><primary>out</primary></indexterm> |
| 4 | <refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>out</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>out</refname> |
| 13 | <refpurpose> |
| 14 | Writes audio data to an external device or stream. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Writes audio data to an external device or stream, either from |
| 22 | audio variables or from an audio array. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>out</command> asig1[, asig2,....]</synopsis> |
| 29 | <synopsis><command>out</command> aarray</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Performance</title> |
| 34 | <para> |
| 35 | Sends audio samples to an accumulating output buffer |
| 36 | (created at the beginning of performance) which serves to |
| 37 | collect the output of all active instruments before the sound is |
| 38 | written to disk. There can be any number of these output units |
| 39 | in an instrument. |
| 40 | </para> |
| 41 | <para> |
| 42 | In the array case each element of the arrary is sent to the |
| 43 | corresponding channel. This provides a way of using many |
| 44 | channels. The nonarray version is limited to 1999. |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | The type (mono, stereo, quad, hex, or oct) should agree |
| 49 | with <link linkend="nchnls"><citetitle>nchnls</citetitle></link>. But |
| 50 | as of version 3.50, Csound will attempt to change an incorrect |
| 51 | opcode to agree with <emphasis>nchnls</emphasis> statement. |
| 52 | </para> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Examples</title> |
| 57 | <para> |
| 58 | Here is an example of the out opcode. It uses the file <ulink url="examples/out.csd"><citetitle>out.csd</citetitle></ulink>. |
| 59 | <example> |
| 60 | <title>Example of the out opcode.</title> |
| 61 | <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> |
| 62 | <xi:include href="examples-xml/out.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 63 | </example> |
| 64 | </para> |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>See also</title> |
| 69 | <para><link linkend="SigioOutput"><citetitle>Signal Output</citetitle></link></para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Credits</title> |
| 74 | <para> |
| 75 | <simplelist> |
| 76 | <member>Author: &namebarry;, &namematt;/&namemike;</member> |
| 77 | <member>MIT, Mills College</member> |
| 78 | <member>1993-1997</member> |
| 79 | <member>Author: &namejohn;</member> |
| 80 | <member>NUIM, 2013</member> |
| 81 | </simplelist> |
| 82 | </para> |
| 83 | <para>Original in Csound v1</para> |
| 84 | <para>Aray version in 6.01</para> |
| 85 | </refsect1> |
| 86 | </refentry> |