| 1 |
|
| 2 |
<refentry id="outrg"> |
| 3 |
<indexterm id="IndexOutrg"><primary>outrg</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal I/O:Signal Output</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>outrg</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>outrg</refname> |
| 11 |
<refpurpose> |
| 12 |
Allow output to a range of adjacent audio channels on the audio output device |
| 13 |
</refpurpose> |
| 14 |
</refnamediv> |
| 15 |
|
| 16 |
<refsect1> |
| 17 |
<title>Description</title> |
| 18 |
<para> |
| 19 |
<emphasis>outrg</emphasis> outputs audio to a range of adjacent audio channels on the audio output device. |
| 20 |
</para> |
| 21 |
</refsect1> |
| 22 |
|
| 23 |
<refsect1> |
| 24 |
<title>Syntax</title> |
| 25 |
<synopsis><command>outrg</command> kstart, aout1 [,aout2, aout3, ..., aoutN]</synopsis> |
| 26 |
</refsect1> |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
<refsect1> |
| 35 |
<title>Performance</title> |
| 36 |
|
| 37 |
|
| 38 |
<para> |
| 39 |
<emphasis>kstart</emphasis> - the number of the first channel of the output device to be accessed (channel numbers starts with 1, which is the first channel) |
| 40 |
</para> |
| 41 |
<para> |
| 42 |
<emphasis>aout1, aout2, ... aoutN</emphasis> - the arguments containing the audio to be output to the corresponding output channels. |
| 43 |
</para> |
| 44 |
<para> |
| 45 |
<emphasis>outrg</emphasis> allows to output a range of adjacent channels to the output device. <emphasis>kstart</emphasis> indicates the first channel to be accessed (channel 1 is the first channel). The user must be sure that the number obtained by summing kstart plus the number of accessed channels -1 is <= <link linkend="nchnls"><citetitle>nchnls</citetitle></link>. |
| 46 |
</para> |
| 47 |
</refsect1> |
| 48 |
|
| 49 |
<refsect1> |
| 50 |
<title>Examples</title> |
| 51 |
<para> |
| 52 |
Here is an example of the outrg opcode. It uses the file <ulink url="examples/outrg.csd"><citetitle>outrg.csd</citetitle></ulink>. |
| 53 |
<example> |
| 54 |
<title>Example of the outrg opcode.</title> |
| 55 |
<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> |
| 56 |
<xi:include href="examples-xml/outrg.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 57 |
</example> |
| 58 |
Its output should include lines like these: |
| 59 |
<screen> |
| 60 |
speaker 1 position 0.000200 |
| 61 |
speaker 1 position 0.000400 |
| 62 |
speaker 1 position 0.000600 |
| 63 |
..... |
| 64 |
speaker 1 position 1.000000 |
| 65 |
speaker 2 position 0.000000 |
| 66 |
speaker 2 position 0.000200 |
| 67 |
.... |
| 68 |
speaker 2 position 0.999800 |
| 69 |
speaker 3 position 0.000000 |
| 70 |
speaker 3 position 0.000200 |
| 71 |
.... |
| 72 |
speaker 3 position 0.999600 |
| 73 |
speaker 4 position 0.000000 |
| 74 |
.....</screen> |
| 75 |
</para> |
| 76 |
</refsect1> |
| 77 |
|
| 78 |
<refsect1> |
| 79 |
<title>See also</title> |
| 80 |
<para><link linkend="SigioOutput"><citetitle>Signal Output</citetitle></link></para> |
| 81 |
</refsect1> |
| 82 |
|
| 83 |
<refsect1> |
| 84 |
<title>Credits</title> |
| 85 |
<para>Author: &namegabriel;</para> |
| 86 |
<para>New in version 5.06</para> |
| 87 |
</refsect1> |
| 88 |
</refentry> |