<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="GEN24">
  <refmeta>
    <refentrytitle>GEN24</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>GEN24</refname>
    <refpurpose>
      Reads numeric values from another allocated function-table and rescales them.
      <indexterm id="IndexGEN24"><primary>GEN24</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      This subroutine reads numeric values from another allocated function-table and rescales them according to the max and min values given by the user.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>f</command> # time size -24 ftable min max</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>#, time, size</emphasis> -- the usual GEN parameters. See <link linkend="f">f statement</link>.
    </para>

    <para>
      <emphasis>ftable</emphasis> -- ftable must be an already allocated table with the same size as this function.
    </para>

    <para>
      <emphasis>min, max</emphasis> -- the rescaling range.
    </para>

    <note>
      <title>Note</title>
      <para>
        This GEN is useful, for example, to eliminate the starting offset in exponential segments allowing a
real starting from zero.
      </para>
    </note>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>New in Csound version 4.16</para>
  </refsect1>
</refentry>
