| 1 | |
| 2 | <refentry id="ftconv"> |
| 3 | <indexterm id="IndexFtconv"><primary>ftconv</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Convolution and Morphing</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ftconv</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ftconv</refname> |
| 11 | <refpurpose> |
| 12 | Low latency multichannel convolution, using a function table as impulse |
| 13 | response source. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Low latency multichannel convolution, using a function table as impulse |
| 21 | response source. The algorithm is to split the impulse response to |
| 22 | partitions of length determined by the <emphasis>iplen</emphasis> parameter, and delay and |
| 23 | mix partitions so that the original, full length impulse response is |
| 24 | reconstructed without gaps. The output delay (latency) is <emphasis>iplen</emphasis> samples, |
| 25 | and does not depend on the control rate, unlike in the case of other |
| 26 | convolve opcodes. |
| 27 | </para> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Syntax</title> |
| 32 | <synopsis>a1[, a2[, a3[, ... a8]]] <command>ftconv</command> ain, ift, iplen[, iskipsamples \ |
| 33 | [, iirlen[, iskipinit]]]</synopsis> |
| 34 | </refsect1> |
| 35 | |
| 36 | <refsect1> |
| 37 | <title>Initialization</title> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>ift</emphasis> |
| 41 | -- source ftable number. The table is expected to contain interleaved |
| 42 | multichannel audio data, with the number of channels equal to the number |
| 43 | of output variables (a1, a2, etc.). An interleaved table can be created |
| 44 | from a set of mono tables with <link linkend="GEN52"><citetitle>GEN52</citetitle></link>. |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>iplen</emphasis> |
| 49 | -- length of impulse response partitions, in sample frames; must be an |
| 50 | integer power of two. Lower settings allow for shorter output delay, but |
| 51 | will increase CPU usage. |
| 52 | </para> |
| 53 | |
| 54 | <para> |
| 55 | <emphasis>iskipsamples</emphasis> |
| 56 | (optional, defaults to zero) -- number of sample frames to skip |
| 57 | at the beginning of the table. |
| 58 | Useful for reverb responses that have some amount of initial delay. |
| 59 | If this delay is not less than <emphasis>iplen</emphasis> samples, then setting |
| 60 | <emphasis>iskipsamples</emphasis> to the same value as <emphasis>iplen</emphasis> |
| 61 | will eliminate any additional latency by <emphasis>ftconv</emphasis>. |
| 62 | </para> |
| 63 | |
| 64 | <para> |
| 65 | <emphasis>iirlen</emphasis> |
| 66 | (optional) -- total length of impulse response, in sample frames. |
| 67 | The default is to use all table data (not including the guard point). |
| 68 | </para> |
| 69 | |
| 70 | <para> |
| 71 | <emphasis>iskipinit</emphasis> |
| 72 | (optional, defaults to zero) -- if set to any non-zero value, skip |
| 73 | initialization whenever possible without causing an error. |
| 74 | </para> |
| 75 | |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>Performance</title> |
| 80 | |
| 81 | <para> |
| 82 | <emphasis>ain</emphasis> |
| 83 | -- input signal. |
| 84 | </para> |
| 85 | |
| 86 | <para> |
| 87 | <emphasis>a1 ... a8</emphasis> |
| 88 | -- output signal(s). |
| 89 | </para> |
| 90 | |
| 91 | </refsect1> |
| 92 | |
| 93 | <refsect1> |
| 94 | <title>Example</title> |
| 95 | <para> |
| 96 | Here is an example of the ftconv opcode. It uses the file <ulink url="examples/ftconv.csd"><citetitle>ftconv.csd</citetitle></ulink>. |
| 97 | <example> |
| 98 | <title>Example of the ftconv opcode.</title> |
| 99 | <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> |
| 100 | <xi:include href="examples-xml/ftconv.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 101 | </example> |
| 102 | </para> |
| 103 | </refsect1> |
| 104 | |
| 105 | <refsect1> |
| 106 | <title>See also</title> |
| 107 | <para><link linkend="SigProcConmorph"><citetitle>Convolution and Morphing</citetitle></link></para> |
| 108 | </refsect1> |
| 109 | |
| 110 | <refsect1> |
| 111 | <title>Credits</title> |
| 112 | <para> |
| 113 | <simplelist> |
| 114 | <member>Author: Istvan Varga</member> |
| 115 | <member>2005</member> |
| 116 | </simplelist> |
| 117 | </para> |
| 118 | </refsect1> |
| 119 | </refentry> |