<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="foutk">
  <refmeta>
    <refentrytitle>foutk</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>foutk</refname>
    <refpurpose>
      Outputs k-rate signals of an arbitrary number of channels to a specified file.
      <indexterm id="IndexFoutk"><primary>foutk</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>foutk</emphasis> outputs <emphasis>N</emphasis> a-rate signals to a specified file of <emphasis>N</emphasis> channels.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>foutk</command> ifilename, iformat, kout1 [, kout2, kout3,....,koutN]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ifilename</emphasis> -- the output file's name (in double-quotes).
    </para>

    <para>
      <emphasis>iformat</emphasis> -- a flag to choose output file format:
      <itemizedlist>
        <listitem>
          <para>0 - 32-bit floating point samples without header (binary PCM multichannel file)</para>
        </listitem>

        <listitem>
          <para>1 - 16-bit integers without header (binary PCM multichannel file)</para>
        </listitem>

        <listitem>
          <para>2 - 16-bit integers with .wav type header (Microsoft WAV mono or stereo file)</para>
        </listitem>
      </itemizedlist>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kout1,...koutN</emphasis> -- control-rate signals to be written to the file
    </para>

    <para>
      <emphasis>foutk</emphasis> operates in the same way as <link linkend="fout"><citetitle>fout</citetitle></link>, but with k-rate signals. <emphasis>iformat</emphasis> can be set only to 0 or 1.
    </para>

    <para>
      Notice that <link linkend="fout"><citetitle>fout</citetitle></link> and <emphasis>foutk</emphasis> can use either a string containing a file pathname, or a handle-number generated by <link linkend="fiopen"><citetitle>fiopen</citetitle></link>. Whereas, with <link linkend="fouti"><citetitle>fouti</citetitle></link> and <link linkend="foutir"><citetitle>foutir</citetitle></link>, the target file can be only specified by means of a handle-number.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="fiopen"><citetitle>fiopen</citetitle></link>,
      <link linkend="fout"><citetitle>fout</citetitle></link>,
      <link linkend="fouti"><citetitle>fouti</citetitle></link>,
      <link linkend="foutir"><citetitle>foutir</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namegabriel;</member>
        <member>Italy</member>
        <member>1999</member>
      </simplelist>
    </para>

    <para>New in Csound version 3.56</para>
  </refsect1>
</refentry>
