Debian Codegraph @

scoregens/gen12.xml

raw symbols SCIP
1
2 <refentry id="GEN12">
3 <indexterm id="IndexGEN12"><primary>GEN12</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN12</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN12</refname>
10 <refpurpose>
11 Generates the log of a modified Bessel function of the second kind.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This generates the log of a modified Bessel function of the second kind, order 0, suitable for use in amplitude-modulated FM.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 12 xint</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <emphasis>size </emphasis> -- number of points in the table. Must be a power of 2 or a power-of-2 plus 1 (see <link linkend="f"><citetitle>f statement</citetitle></link>). The normal value is power-of-2 plus 1.
31 </para>
32
33 <para>
34 <emphasis>xint</emphasis> -- specifies the <emphasis>x</emphasis> interval [0 to <emphasis>+xint</emphasis>] over which the function is defined.
35 </para>
36
37 <note>
38 <title>Note</title>
39 <para>
40 <itemizedlist>
41 <listitem>
42 <para>
43 This subroutine draws the natural log of a modified Bessel function of the second kind, order 0 (commonly written as <emphasis>I</emphasis> subscript 0), over the x-interval requested. The call should have rescaling inhibited.
44 </para>
45 </listitem>
46
47 <listitem>
48 <para>
49 The function is useful as an amplitude scaling factor in cycle-synchronous amplitude-modulated FM. (See Palamin &amp; Palamin, <emphasis>J. Audio Eng. Soc., 36/9</emphasis>, Sept. 1988, pp.671-684.) The algorithm is interesting because it permits the normally symmetric FM spectrum to be made asymmetric around a frequency other than the carrier, and is thereby useful for formant positioning. By using a table lookup index of <emphasis>I</emphasis>(r - 1/r), where <emphasis>I</emphasis> is the FM modulation index and <emphasis>r</emphasis> is an exponential parameter affecting partial strengths, the Palamin algorithm becomes relatively efficient, requiring only oscil's, table lookups, and a single <emphasis>exp</emphasis> call.
50 </para>
51 </listitem>
52 </itemizedlist>
53 </para>
54 </note>
55 </refsect1>
56
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 Here is an example of the GEN12 generator. It uses the file <ulink url="examples/gen12.csd"><citetitle>gen12.csd</citetitle></ulink>.
61 <example>
62 <title>Example of the GEN12 generator.</title>
63 <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>
64 <xi:include href="examples-xml/gen12.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 <textobject>
67 <phrase>This is the diagram of the waveform of the GEN12 routines, as used in the example:</phrase>
68 </textobject>
69
70 <mediaobject>
71 <imageobject>
72 <imagedata fileref="images/gen12.png" format="PNG"/>
73 </imageobject>
74
75 <textobject>
76 <phrase>f 37 0 1024 -12 40 - Bessel function-defined from 0 to 40</phrase>
77 </textobject>
78
79 <caption>
80 <para>f 37 0 1024 -12 40 - Bessel function-defined from 0 to 40</para>
81 </caption>
82 </mediaobject>
83
84 </para>
85 </refsect1>
86
87 <refsect1>
88 <title>Credits</title>
89 <para>
90 Example is, with minor modifications, taken from The Csound Book (page 87).
91 </para>
92 </refsect1>
93 </refentry>