Debian Codegraph @

opcodes/fof.xml

raw symbols SCIP
1
2 <refentry id="fof">
3 <indexterm id="IndexFof"><primary>fof</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Granular Synthesis</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fof</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>fof</refname>
13 <refpurpose>
14 Produces sinusoid bursts useful for formant and granular synthesis.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Audio output is a succession of sinusoid bursts initiated at frequency <emphasis>xfund</emphasis> with a spectral peak at <emphasis>xform</emphasis>. For <emphasis>xfund</emphasis> above 25 Hz these bursts produce a speech-like formant with spectral characteristics determined by the k-input parameters. For lower fundamentals this generator provides a special form of granular synthesis.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>fof</command> xamp, xfund, xform, koct, kband, kris, kdur, kdec, iolaps, \
28 ifna, ifnb, itotdur [, iphs] [, ifmode] [, iskip]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>iolaps</emphasis> -- number of preallocated spaces needed to hold overlapping burst data. Overlaps are frequency dependent, and the space required depends on the maximum value of <emphasis>xfund * kdur</emphasis>. Can be over-estimated at no computation cost. Uses less than 50 bytes of memory per <emphasis>iolap</emphasis>.
35 </para>
36
37 <para>
38 <emphasis>ifna, ifnb</emphasis> -- table numbers of two stored functions. The first is a sine table for sineburst synthesis (size of at least 4096 recommended). The second is a rise shape, used forwards and backwards to shape the sineburst rise and decay; this may be linear (<link linkend="GEN07"><citetitle>GEN07</citetitle></link>) or perhaps a sigmoid (<link linkend="GEN19"><citetitle>GEN19</citetitle></link>).
39 </para>
40
41 <para>
42 <emphasis>itotdur</emphasis> -- total time during which this <emphasis>fof</emphasis> will be active. Normally set to p3. No new sineburst is created if it cannot complete its <emphasis>kdur</emphasis> within the remaining <emphasis>itotdur</emphasis>.
43 </para>
44
45 <para>
46 <emphasis>iphs</emphasis> (optional, default=0) -- initial phase of the fundamental, expressed as a fraction of a cycle (0 to 1). The default value is 0.
47 </para>
48
49 <para>
50 <emphasis>ifmode</emphasis> (optional, default=0) -- formant frequency mode. If zero, each sineburst keeps the <emphasis>xform</emphasis> frequency it was launched with. If non-zero, each is influenced by <emphasis>xform</emphasis> continuously. The default value is 0.
51 </para>
52
53 <para>
54 <emphasis>iskip</emphasis> (optional, default=0) -- If non-zero, skip initialisation (allows legato use).
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>Performance</title>
60 <para>
61 <emphasis>xamp</emphasis> -- peak amplitude of each sineburst, observed at the true end of its rise pattern. The rise may exceed this value given a large bandwidth (say, Q &lt; 10) and/or when the bursts are overlapping.
62 </para>
63
64 <para>
65 <emphasis>xfund</emphasis> -- the fundamental frequency (in Hertz) of the impulses that create new sinebursts.
66 </para>
67
68 <para>
69 <emphasis>xform</emphasis> -- the formant frequency, i.e. freq of the sinusoid burst induced by each <emphasis>xfund</emphasis> impulse. This frequency can be fixed for each burst or can vary continuously (see <emphasis>ifmode</emphasis>).
70 </para>
71
72 <para>
73 <emphasis>koct</emphasis> -- octaviation index, normally zero. If greater than zero, lowers the effective <emphasis>xfund</emphasis> frequency by attenuating odd-numbered sinebursts. Whole numbers are full octaves, fractions transitional.
74 </para>
75
76 <para>
77 <emphasis>kband</emphasis> -- the formant bandwidth (at -6dB), expressed in Hz. The bandwidth determines the rate of exponential decay throughout the sineburst, before the enveloping described below is applied.
78 </para>
79
80 <para>
81 <emphasis>kris, kdur, kdec</emphasis> -- rise, overall duration, and decay times (in seconds) of the sinusoid burst. These values apply an enveloped duration to each burst, in similar fashion to a Csound <emphasis>linen</emphasis> generator but with rise and decay shapes derived from the <emphasis>ifnb</emphasis> input. <emphasis>kris</emphasis> inversely determines the skirtwidth (at -40 dB) of the induced formant region. <emphasis>kdur</emphasis> affects the density of sineburst overlaps, and thus the speed of computation. Typical values for vocal imitation are .003,.02,.007.
82 </para>
83
84 <para>
85 Csound's <emphasis>fof</emphasis> generator is loosely based on Michael Clarke's C-coding of IRCAM's <emphasis>CHANT</emphasis> program (Xavier Rodet et al.). Each fof produces a single formant, and the output of four or more of these can be summed to produce a rich vocal imitation. <emphasis>fof</emphasis> synthesis is a special form of granular synthesis, and this implementation aids transformation between vocal imitation and granular textures. Computation speed depends on <emphasis>kdur, xfund</emphasis>, and the density of any overlaps.
86 </para>
87 </refsect1>
88
89 <refsect1>
90 <title>Examples</title>
91 <para>
92 Here is an example of the fof opcode. It uses the file <ulink url="examples/fof.csd"><citetitle>fof.csd</citetitle></ulink>.
93 <example>
94 <title>Example of the fof opcode.</title>
95 <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>
96 <xi:include href="examples-xml/fof.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
97 </example>
98
99 The formant values for the alto-"a" sound were taken from the <link linkend="MiscFormants"><citetitle>Formant Values Appendix</citetitle></link>.
100 <para>
101 Two musical examples featuring the fof opcode: <ulink url="examples/musical/TheElectricPriest_Enhus.csd"><citetitle>TheElectricPriest_Enhus.csd</citetitle></ulink> by Tobias Enhus, and <ulink url="examples/musical/BuzzFof_Cucchi.csd"><citetitle>BuzzFof_Cucchi.csd</citetitle></ulink> by Stefano Cucchi.
102 </para>
103 </para>
104 </refsect1>
105
106 <refsect1>
107 <title>See Also</title>
108 <para>
109 <link linkend="SiggenGranular"><citetitle>Granular Synthesis</citetitle></link>
110 </para>
111 </refsect1>
112
113 <refsect1>
114 <title>Credits</title>
115 <para>Added in version 1 (1990)</para>
116 </refsect1>
117 </refentry>