Debian Codegraph @

scoregens/gen04.xml

raw symbols SCIP
1
2 <refentry id="GEN04">
3 <indexterm id="IndexGEN04"><primary>GEN04</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN04</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN04</refname>
10 <refpurpose>
11 Generates a normalizing function.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This subroutine generates a normalizing function by examining the contents of an existing table.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 4 source# sourcemode</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <emphasis>size</emphasis> -- number of points in the table. Should be power-of-2 plus 1. Must not exceed (except by 1) the size of the source table being examined; limited to just half that size if the sourcemode is of type offset (see below).
31 </para>
32
33 <para>
34 <emphasis>source #</emphasis> -- table number of stored function to be examined.
35 </para>
36
37 <para>
38 <emphasis>sourcemode</emphasis> -- a coded value, specifying how the source table is to be scanned to obtain the normalizing function. Zero indicates that the source is to be scanned from left to right. Non-zero indicates that the source has a bipolar structure; scanning will begin at the mid-point and progress outwards, looking at pairs of points equidistant from the center.
39 </para>
40
41 <note>
42 <title>Note</title>
43 <para>
44 <itemizedlist>
45 <listitem>
46 <para>
47 The normalizing function derives from the progressive absolute maxima of the source table being scanned. The new table is created left-to-right, with stored values equal to 1/(absolute maximum so far scanned). Stored values will thus begin with 1/(first value scanned), then get progressively smaller as new maxima are encountered. For a source table which is normalized (values &lt;= 1), the derived values will range from 1/(first value scanned) down to 1. If the first value scanned is zero, that inverse will be set to 1.
48 </para>
49
50 </listitem>
51 <listitem>
52 <para>
53 The normalizing function from <emphasis>GEN04</emphasis> is not itself normalized.
54 </para>
55 </listitem>
56
57 <listitem>
58 <para>
59 <emphasis>GEN04</emphasis> is useful for scaling a table-derived signal so that it has a consistent peak amplitude. A particular application occurs in waveshaping when the carrier (or indexing) signal is less than full amplitude.
60 </para>
61 </listitem>
62 </itemizedlist>
63 </para>
64 </note>
65 </refsect1>
66
67 <refsect1>
68 <title>Examples</title>
69 <para>
70 Here is a simple example of the GEN04 routine. It uses the files <ulink url="examples/gen04.csd"><citetitle>gen04.csd</citetitle></ulink>.
71 <example>
72 <title>An example of the GEN04 routine.</title>
73 <xi:include href="examples-xml/gen04.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
74 </example>
75
76 <textobject>
77 <phrase>These are the diagrams of the waveforms of the GEN04 routines, as used in the example:</phrase>
78 </textobject>
79
80 <mediaobject>
81 <imageobject>
82 <imagedata fileref="images/gen04_1.png" format="PNG"/>
83 </imageobject>
84
85 <textobject>
86 <phrase>f1 0 64 21 6 - Gaussian (random) distribution</phrase>
87 </textobject>
88
89 <caption>
90 <para>f1 0 64 21 6 - Gaussian (random) distribution</para>
91 </caption>
92 </mediaobject>
93
94 <mediaobject>
95 <imageobject>
96 <imagedata fileref="images/gen04_2.png" format="PNG"/>
97 </imageobject>
98
99 <textobject>
100 <phrase>f2 0 33 4 1 1 - AND its normalizing function with midpoint bipolar offset</phrase>
101 </textobject>
102
103 <caption>
104 <para>f2 0 33 4 1 1 - AND its normalizing function with midpoint bipolar offset</para>
105 </caption>
106 </mediaobject>
107
108 <mediaobject>
109 <imageobject>
110 <imagedata fileref="images/gen04_3.png" format="PNG"/>
111 </imageobject>
112
113 <textobject>
114 <phrase>f3 0 1025 13 1 1 0 5 0 5 0 10 - Chebyshev algorithm</phrase>
115 </textobject>
116
117 <caption>
118 <para>f3 0 1025 13 1 1 0 5 0 5 0 10 - Chebyshev algorithm</para>
119 </caption>
120 </mediaobject>
121
122 <mediaobject>
123 <imageobject>
124 <imagedata fileref="images/gen04_4.png" format="PNG"/>
125 </imageobject>
126
127 <textobject>
128 <phrase>f4 0 513 4 3 1 - AND its normalizing function with midpoint bipolar offset</phrase>
129 </textobject>
130
131 <caption>
132 <para>f4 0 513 4 3 1 - AND its normalizing function with midpoint bipolar offset</para>
133 </caption>
134 </mediaobject>
135
136 </para>
137 </refsect1>
138 </refentry>