| 1 | |
| 2 | <refentry id="ftmorf"> |
| 3 | <indexterm id="IndexFtmorf"><primary>ftmorf</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Convolution and Morphing</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ftmorf</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>ftmorf</refname> |
| 13 | <refpurpose> |
| 14 | Morphs between multiple ftables as specified in a list. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Uses an index into a table of ftable numbers to morph between adjacent tables in the list.This morphed function is written into the table referenced by <emphasis>iresfn</emphasis> on every k-cycle. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis><command>ftmorf</command> kftndx, iftfn, iresfn</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>iftfn</emphasis> -- The table containing the numbers of any existing tables which are used for the morphing. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>iresfn</emphasis> -- Table number of the morphed function |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | The length of all the tables in <emphasis>iftfn</emphasis> must equal the length of <emphasis>iresfn</emphasis>. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Performance</title> |
| 47 | <para> |
| 48 | <emphasis>kftndx</emphasis> -- the index into the <emphasis>iftfn</emphasis> table. |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | If <emphasis>iftfn</emphasis> contains (6, 4, 6, 8, 7, 4): |
| 53 | |
| 54 | <itemizedlist> |
| 55 | <listitem> |
| 56 | <para> |
| 57 | <emphasis>kftndx=4</emphasis> will write the contents of f7 into <emphasis>iresfn</emphasis>. |
| 58 | </para> |
| 59 | </listitem> |
| 60 | |
| 61 | <listitem> |
| 62 | <para> |
| 63 | <emphasis>kftndx=4.5</emphasis> will write the average of the contents of f7 and f4 into <emphasis>iresfn</emphasis>. |
| 64 | </para> |
| 65 | </listitem> |
| 66 | </itemizedlist> |
| 67 | </para> |
| 68 | <note> |
| 69 | <para> |
| 70 | <emphasis>iresfn</emphasis> is only updated if the morfing index changes it's value, |
| 71 | if <emphasis>kftindx</emphasis> is static, no writing to <emphasis>iresfn</emphasis> will occur. |
| 72 | </para> |
| 73 | </note> |
| 74 | |
| 75 | </refsect1> |
| 76 | |
| 77 | <refsect1> |
| 78 | <title>Examples</title> |
| 79 | <para> |
| 80 | Here is an example of the ftmorf opcode. It uses the file <ulink url="examples/ftmorf.csd"><citetitle>ftmorf.csd</citetitle></ulink>. |
| 81 | <example> |
| 82 | <title>Example of the ftmorf opcode.</title> |
| 83 | <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> |
| 84 | <xi:include href="examples-xml/ftmorf.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 85 | </example> |
| 86 | <para> |
| 87 | Two musical examples featuring the ftmorf opcode: <ulink url="examples/musical/FtmorfRandomh_Cucchi.csd"><citetitle>FtmorfRandomh_Cucchi.csd</citetitle></ulink> and <ulink url="examples/musical/Ftmorf_Cucchi.csd"><citetitle>Ftmorf_Cucchi.csd</citetitle></ulink>, both by Stefano Cucchi. |
| 88 | </para> |
| 89 | </para> |
| 90 | </refsect1> |
| 91 | |
| 92 | <refsect1> |
| 93 | <title>See also</title> |
| 94 | <para><link linkend="SigProcConmorph"><citetitle>Convolution and Morphing</citetitle></link></para> |
| 95 | <para><link linkend="TableReadwrit"><citetitle>Read/Write Operations</citetitle></link></para> |
| 96 | </refsect1> |
| 97 | |
| 98 | <refsect1> |
| 99 | <title>Credits</title> |
| 100 | <para> |
| 101 | <simplelist> |
| 102 | <member>Author: William <quote>Pete</quote> Moss</member> |
| 103 | <member>University of Texas at Austin</member> |
| 104 | <member>Austin, Texas USA</member> |
| 105 | <member>Jan. 2002</member> |
| 106 | </simplelist> |
| 107 | </para> |
| 108 | |
| 109 | <para>New in version 4.18</para> |
| 110 | </refsect1> |
| 111 | </refentry> |