Debian Codegraph @

opcodes/nchnls.xml

raw symbols SCIP
1
2 <refentry id="nchnls">
3 <indexterm id="IndexNchnls"><primary>nchnls</primary></indexterm>
4 <refentryinfo><title>Orchestra Syntax:Header</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>nchnls</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>nchnls</refname>
13
14 <refpurpose>
15 Sets the number of channels of audio output.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 These statements are global value <link linkend="assign"><citetitle>assignments</citetitle></link>, made at the beginning of an orchestra, before any instrument block is defined. Their function is to set certain <link linkend="VariableTypes"><citetitle>reserved symbol variables</citetitle></link> that are required for performance. Once set, these reserved symbols can be used in expressions anywhere in the orchestra.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>nchnls</command> = iarg</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>nchnls</emphasis> = (optional) -- set number of channels of audio output to <emphasis>iarg</emphasis>. (1 = mono, 2 = stereo, 4 = quadraphonic.) The default value is 1 (mono).
35 </para>
36
37 <para>
38 In addition, any <link linkend="GlobalVariables"><citetitle>global variable</citetitle></link> can be initialized by an <emphasis>init-time assignment</emphasis> anywhere before the first <link linkend="instr"><citetitle>instr statement</citetitle></link>. All of the above assignments are run as instrument 0 (i-pass only) at the start of real performance.
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Examples</title>
44 <para>
45 Here is an example of the nchnls opcode. It uses the file <ulink url="examples/nchnls.csd"><citetitle>nchnls.csd</citetitle></ulink>.
46 <example>
47 <title>Example of the nchnls opcode.</title>
48 <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>
49 <xi:include href="examples-xml/nchnls.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
50 </example>
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>See also</title>
56 <para><link linkend="OrchHeader"><citetitle>Orchestra Header Statements</citetitle></link></para>
57 </refsect1>
58
59 </refentry>