| 1 | |
| 2 | <refentry id="outch"> |
| 3 | <indexterm id="IndexOutch"><primary>outch</primary></indexterm> |
| 4 | <refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>outch</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>outch</refname> |
| 11 | <refpurpose> |
| 12 | Writes multi-channel audio data, with user-controllable channels, to an external device or stream. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Writes multi-channel audio data, with user-controllable channels, to an external device or stream. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>outch</command> kchan1, asig1 [, kchan2] [, asig2] [...]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | <emphasis>outch</emphasis> outputs <emphasis>asig1</emphasis> on the channel determined by <emphasis>kchan1</emphasis>, <emphasis>asig2</emphasis> on the channel determined by <emphasis>kchan2</emphasis>, etc. |
| 32 | </para> |
| 33 | <note> |
| 34 | <para> |
| 35 | The highest number for <emphasis>kchanX</emphasis> available for use with <emphasis>outch</emphasis> depends on <link linkend="nchnls"><citetitle>nchnls</citetitle></link>. If <emphasis>kchanX</emphasis> is greater than <emphasis>nchnls</emphasis>, <emphasis>asigX</emphasis> will be silent. Note that <emphasis>outch</emphasis> will give a warning but not an error in this case. |
| 36 | </para> |
| 37 | </note> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Examples</title> |
| 42 | <para> |
| 43 | Here is an example of the outch opcode. It uses the file <ulink url="examples/outch.csd"><citetitle>outch.csd</citetitle></ulink>. |
| 44 | |
| 45 | <example> |
| 46 | <title>Example of the outch 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/outch.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 49 | </example> |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | Here is another example of the outch opcode. It uses the file <ulink url="examples/outch-2.csd"><citetitle>outch-2.csd</citetitle></ulink>. |
| 54 | <example> |
| 55 | <title>Example of the outch opcode.</title> |
| 56 | <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> |
| 57 | <xi:include href="examples-xml/outch-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 58 | </example> |
| 59 | <screen> |
| 60 | signal is sent to channel 5 |
| 61 | signal is sent to channel 4 |
| 62 | signal is sent to channel 3 |
| 63 | signal is sent to channel 2 |
| 64 | signal is sent to channel 1 |
| 65 | signal is sent to channel 5 |
| 66 | ........ |
| 67 | </screen> |
| 68 | </para> |
| 69 | <para> |
| 70 | Here is another example of the outch opcode. It uses the file <ulink url="examples/outch-3.csd"><citetitle>outch-3.csd</citetitle></ulink>. |
| 71 | <example> |
| 72 | <title>Another example of the outch opcode.</title> |
| 73 | <xi:include href="examples-xml/outch-3.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 74 | </example> |
| 75 | </para> |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>See also</title> |
| 80 | <para><link linkend="SigioOutput"><citetitle>Signal Output</citetitle></link></para> |
| 81 | <para> More information on this opcode: <ulink url="http://www.csoundjournal.com/issue16/audiorouting.html"><citetitle>http://www.csoundjournal.com/issue16/audiorouting.html</citetitle></ulink> , written by Andreas Russo </para> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>Credits</title> |
| 86 | <para> |
| 87 | <simplelist> |
| 88 | <member>Author: &namejohn;</member> |
| 89 | <member>University of Bath/Codemist Ltd.</member> |
| 90 | <member>Bath, UK</member> |
| 91 | <member>May 2000</member> |
| 92 | </simplelist> |
| 93 | </para> |
| 94 | <para>New in Csound Version 4.07</para> |
| 95 | </refsect1> |
| 96 | </refentry> |