Debian Codegraph @

scoregens/gen31.xml

raw symbols SCIP
1
2 <refentry id="GEN31">
3 <indexterm id="IndexGEN31"><primary>GEN31</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN31</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN31</refname>
10 <refpurpose>
11 Mixes any waveform specified in an existing table.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This routine is similar to <link linkend="GEN09">GEN09</link>, but allows mixing any waveform specified in an existing table.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 31 src pna stra phsa pnb strb phsb ...</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Performance</title>
29 <para>
30 <emphasis>src</emphasis> -- source table number
31 </para>
32
33 <para>
34 <emphasis>pna, pnb, ...</emphasis> -- partial number, must be a positive integer
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
45 <para>
46 <emphasis>GEN31</emphasis> does not support tables with an extended guard point (ie. table size = power of two + 1). Although such tables will work both for input and output, when reading source table(s), the guard point is ignored, and when writing the output table, guard point is simply copied from the first sample (table index = 0).
47 </para>
48
49 <para>
50 The reason of this limitation is that <emphasis>GEN31</emphasis> uses FFT, which requires power of two table size. <link linkend="GEN32"><citetitle>GEN32</citetitle></link> allows using linear interpolation for resampling and phase shifting, which makes it possible to use any table size (however, for partials calculated with FFT, the power of two limitation still exists).
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Examples</title>
56 <para>
57 Here is an example of the GEN31 routine. It uses the files <ulink url="examples/gen31.csd"><citetitle>gen31.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the GEN31 routine.</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/gen31.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>Credits</title>
68 <para>Author: &nameistvan;</para>
69 <para>New in version 4.15</para>
70 </refsect1>
71 </refentry>