| 1 | |
| 2 | <refentry id="GEN32"> |
| 3 | <indexterm id="IndexGEN32"><primary>GEN32</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>GEN32</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>GEN32</refname> |
| 10 | <refpurpose> |
| 11 | Mixes any waveform, resampled with either FFT or linear interpolation. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | This routine is similar to <link linkend="GEN31"><citetitle>GEN31</citetitle></link>, but allows specifying source ftable for each partial. Tables can be resampled either with FFT, or linear interpolation. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis><command>f</command> # time size 32 srca pna stra phsa srcb pnb strb phsb ...</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Performance</title> |
| 29 | <para> |
| 30 | <emphasis>srca, srcb</emphasis> -- source table number. A negative value can be used to read the table with linear interpolation (by default, the source waveform is transposed and phase shifted using FFT); this is less accurate, but faster, and allows non-integer and negative partial numbers. |
| 31 | </para> |
| 32 | |
| 33 | <para> |
| 34 | <emphasis>pna, pnb, ...</emphasis> -- partial number, must be a positive integer if source table number is positive (i.e. resample with FFT). |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>stra, strb, ...</emphasis> -- amplitude scale |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>phsa, phsb, ...</emphasis> -- start phase (0 to 1) |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Examples</title> |
| 48 | <para> |
| 49 | Here is an example of the GEN32 routine. It uses the file <ulink url="examples/gen32.csd"><citetitle>gen32.csd</citetitle></ulink>. |
| 50 | <example> |
| 51 | <title>Example of the gen32 generator.</title> |
| 52 | <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> |
| 53 | <xi:include href="examples-xml/gen32.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 54 | </example> |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Credits</title> |
| 60 | <para>Author: &namerasmus;</para> |
| 61 | <para>Programmer: &nameistvan;</para> |
| 62 | <para>New in version 4.17</para> |
| 63 | </refsect1> |
| 64 | </refentry> |