Debian Codegraph @

scoregens/gen16.xml

raw symbols SCIP
1
2 <refentry id="GEN16">
3 <indexterm id="IndexGEN16"><primary>GEN16</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN16</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN16</refname>
10 <refpurpose>
11 Creates a table from a starting value to an ending value.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 Creates a table from <emphasis>beg</emphasis> value to <emphasis>end</emphasis> value of <emphasis>dur</emphasis> steps.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 16 val1 dur1 type1 val2 [dur2 type2 val3 ... typeX valN]</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <emphasis>size</emphasis> -- number of points in the table. Must
31 be a power of 2 or a power-of-2 plus 1 (see <link
32 linkend="f"><citetitle>f statement</citetitle></link>). The
33 normal value is power-of-2 plus 1.
34 </para>
35 <note>
36 The end value is only reached when the table length is power-of-2 plus 1.
37 (This length is crucial for use with the tab generator.)
38 </note>
39 <para>
40 <emphasis>beg</emphasis> -- starting value
41 </para>
42
43 <para>
44 <emphasis>dur</emphasis> -- number of segments
45 </para>
46
47 <para>
48 <emphasis>type</emphasis> -- if 0, a straight line is produced. If non-zero, then <emphasis>GEN16</emphasis> creates the following curve, for <emphasis>dur</emphasis> steps:
49 <literallayout>
50 beg + (end - beg) * (1 - exp( i*type/(dur-1) )) / (1 - exp(type))
51 </literallayout>
52 </para>
53
54 <para>
55 <emphasis>end</emphasis> -- value after <emphasis>dur</emphasis> segments
56 </para>
57 <para>
58 Here are some examples of the curves generated for different values of <emphasis>type</emphasis>:
59 <mediaobject>
60 <imageobject>
61 <imagedata fileref="images/gen16_types.png" format="PNG"/>
62 </imageobject>
63 <textobject>
64 <phrase>Tables generated by GEN16 for different values of type.</phrase>
65 </textobject>
66
67 <caption>
68 <para>Tables generated by GEN16 for different values of type.</para>
69 </caption>
70 </mediaobject>
71 </para>
72 <note>
73 <title>Note</title>
74 <para>
75 If <emphasis>type</emphasis> &gt; 0, there is a slowly rising (concave) or slowly decaying
76 (convex) curve, while if <emphasis>itype</emphasis> &lt; 0, the curve is fast rising (convex) or
77 fast decaying (concave). See also <link linkend="transeg"><citetitle>transeg</citetitle></link>.
78 </para>
79 </note>
80 </refsect1>
81 <refsect1>
82 <example>
83 <title>A simple example of the GEN16 routine.</title>
84
85 <xi:include href="examples-xml/gen16.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
86
87 </example>
88 </refsect1>
89 <refsect1>
90 <title>Credits</title>
91 <para>
92 <simplelist>
93 <member>Author: &namejohn;</member>
94 <member>University of Bath, Codemist. Ltd.</member>
95 <member>Bath, UK</member>
96 <member>October, 2000</member>
97 </simplelist>
98 </para>
99
100 <para>New in Csound version 4.09</para>
101 </refsect1>
102 </refentry>