<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="fini">
  <refmeta>
    <refentrytitle>fini</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>fini</refname>
    <refpurpose>
      Read signals from a file at i-rate.
      <indexterm id="IndexFini"><primary>fini</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Read signals from a file at i-rate.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>fini</command> ifilename, iskipframes, iformat, in1 [, in2] [, in3] [, ...]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ifilename</emphasis> -- input file name (can be a string or a handle number generated by <link linkend="fiopen"><citetitle>fiopen</citetitle></link>)
    </para>

    <para>
      <emphasis>iskipframes</emphasis> -- number of frames to skip at the start (every frame contains a sample of each channel)
    </para>

    <para>
      <emphasis>iformat</emphasis> -- a number specifying the input file format.
      <itemizedlist>
        <listitem>
          <para>0 - floating points in text format (loop; see below)</para>
        </listitem>

        <listitem>
          <para>1 - floating points in text format (no loop; see below)</para>
        </listitem>

        <listitem>
          <para>2 - 32 bit floating points in binary format (no loop)</para>
        </listitem>
      </itemizedlist>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>fini</emphasis> is the complement of <link linkend="fouti"><citetitle>fouti</citetitle></link> and <link linkend="foutir"><citetitle>foutir</citetitle></link>. It reads the  values each time the corresponding instrument note is activated. When <emphasis>iformat</emphasis> is set to 0 and the end of file is reached, the file pointer is zeroed. This restarts the scan from the beginning. When <emphasis>iformat</emphasis> is set to 1 or 2, no looping is enabled and at the end of file the corresponding variables will be filled with zeroes.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="fin"><citetitle>fin</citetitle></link>,
      <link linkend="fink"><citetitle>fink</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>
