| 1 | |
| 2 | <refentry id="GEN24"> |
| 3 | <indexterm id="IndexGEN24"><primary>GEN24</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>GEN24</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>GEN24</refname> |
| 10 | <refpurpose> |
| 11 | Reads numeric values from another allocated function-table and rescales them. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | This subroutine reads numeric values from another allocated function-table and rescales them according to the max and min values given by the user. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis><command>f</command> # time size -24 ftable min max</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Initialization</title> |
| 29 | <para> |
| 30 | <emphasis>#, time, size</emphasis> -- the usual GEN parameters. See <link linkend="f">f statement</link>. |
| 31 | </para> |
| 32 | |
| 33 | <para> |
| 34 | <emphasis>ftable</emphasis> -- ftable must be an already allocated table with the same size as this function. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>min, max</emphasis> -- the rescaling range. |
| 39 | </para> |
| 40 | |
| 41 | <note> |
| 42 | <title>Note</title> |
| 43 | <para> |
| 44 | This GEN is useful, for example, to eliminate the starting offset in exponential segments allowing a |
| 45 | real starting from zero. |
| 46 | </para> |
| 47 | </note> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>Examples</title> |
| 52 | <para> |
| 53 | Here is an example of the GEN24 opcode. It uses the file <ulink url="examples/gen24.csd"><citetitle>gen24.csd</citetitle></ulink>. |
| 54 | <example> |
| 55 | <title>Example of the GEN24 generator.</title> |
| 56 | <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> |
| 57 | <xi:include href="examples-xml/gen24.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 58 | </example> |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>Credits</title> |
| 64 | <para>Author: &namegabriel;</para> |
| 65 | <para>New in Csound version 4.16</para> |
| 66 | </refsect1> |
| 67 | </refentry> |