| 1 | |
| 2 | <refentry id="GEN53"> |
| 3 | <indexterm id="IndexGEN53"><primary>GEN53</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>GEN53</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>GEN53</refname> |
| 10 | <refpurpose> |
| 11 | Creates a linear-phase or minimum-phase impulse response table |
| 12 | from a source table containing a frequency response or an |
| 13 | impulse response. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | GEN53 creates an impulse response function table with either a |
| 21 | linear-phase or a minimum-phase characteristic. The source for |
| 22 | this can either be a frequency response or an impulse response, |
| 23 | stored in an existing table. Optionally, another function table can be used to |
| 24 | window the input and/or the output of the process. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis><command>f</command> # time size 53 fsrc |
| 31 | [mode fwin]</synopsis> |
| 32 | |
| 33 | <para> |
| 34 | fsrc - source function table. If this is an impulse response, the |
| 35 | size must match the created function table size. If a frequency |
| 36 | response is used, then the created function size needs to be twice |
| 37 | the size of this source. Power-of-two is required. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | mode - optional, the operation mode, a sum of |
| 42 | (a) input, frequency response (0) or impulse respone (1); (b) |
| 43 | output, linear phase (0) or minimum-phase (2); (c) windowing, |
| 44 | none (0), input (4) and/or output (8). The default mode (0) is |
| 45 | frequency response input, linear-phase output, no windowing. |
| 46 | </para> |
| 47 | |
| 48 | <para> |
| 49 | fwin - window function table, power-of-two size is required, but |
| 50 | does not need to match the created function table size. |
| 51 | </para> |
| 52 | |
| 53 | </refsect1> |
| 54 | <refsect1> |
| 55 | <title>Example</title> |
| 56 | <para> |
| 57 | Here is a complete example of the GEN53 generator. It uses the file <ulink url="examples/gen53.csd"><citetitle>gen53.csd</citetitle></ulink>. |
| 58 | <example> |
| 59 | <title>Example of the GEN53 generator.</title> |
| 60 | <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> |
| 61 | <xi:include href="examples-xml/gen53.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 62 | </example> |
| 63 | </para> |
| 64 | </refsect1> |
| 65 | <refsect1> |
| 66 | <title>Credits</title> |
| 67 | <para>Author: &nameistvan;</para> |
| 68 | </refsect1> |
| 69 | </refentry> |