<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="nchnls">
  <refmeta>
    <refentrytitle>nchnls</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>nchnls</refname>

    <refpurpose>
      Sets the number of channels of audio output.
      <indexterm id="IndexNchnls"><primary>nchnls</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para> 
      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.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>nchnls</command> = iarg</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
<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).
    </para>

    <para>
      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.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="kr"><citetitle>kr</citetitle></link>,
      <link linkend="ksmps"><citetitle>ksmps</citetitle></link>,
      <link linkend="sr"><citetitle>sr</citetitle></link>
    </para>
  </refsect1>
</refentry>
