Debian Codegraph @

scoregens/gen51.xml

raw symbols SCIP
1
2 <refentry id="GEN51">
3 <indexterm id="IndexGEN51"><primary>GEN51</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN51</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN51</refname>
10 <refpurpose>
11 This subroutine fills a table with a fully customized micro-tuning scale, in the manner of Csound opcodes <emphasis>cpstun</emphasis>, <emphasis>cpstuni</emphasis> and <emphasis>cpstmid</emphasis>.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This subroutine fills a table with a fully customized micro-tuning
19 scale, in the manner of Csound opcodes <link linkend="cpstun"><citetitle>cpstun</citetitle></link>,
20 <link linkend="cpstuni"><citetitle>cpstuni</citetitle></link> et
21 <link linkend="cpstmid"><citetitle>cpstmid</citetitle></link>.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>f</command> # time size -51 numgrades interval basefreq basekey tuningRatio1 tuningRatio2 .... tuningRationN</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 The first four parameters (i.e. p5, p6, p7 and p8) define the following
34 generation directives:</para>
35
36 <para>
37 <emphasis>p5 (numgrades)</emphasis>
38 -- the number of grades of the micro-tuning scale
39 </para>
40
41 <para>
42 <emphasis>p6 (interval)</emphasis>
43 -- the frequency range covered before repeating the grade
44 ratios, for example 2 for one octave, 1.5 for a fifth etcetera
45 </para>
46
47 <para>
48 <emphasis>p7 (basefreq)</emphasis>
49 -- the base frequency of the scale in cps
50 </para>
51
52 <para>
53 <emphasis>p8 (basekey)</emphasis>
54 -- the integer index of the scale to which to assign basefreq unmodified
55 </para>
56
57 <para>
58 The other parameters define the ratios of the scale:
59 </para>
60
61 <para>
62 <emphasis>p9...pN (tuningRatio1...etc.)</emphasis>
63 -- the tuning ratios of the scale
64 </para>
65
66 <para>
67 For example, for a standard 12-grade scale with the base-frequency of
68 261 cps assigned to the key-number 60, the corresponding f-statement in
69 the score to generate the table should be:</para>
70
71 <programlisting>
72 <emphasis role="comment">; numgrades basefreq tuning-ratios (eq.temp) .......</emphasis>
73 <emphasis role="comment">; interval basekey</emphasis>
74 <emphasis role="stamnt">f</emphasis>1 0 64 -51 12 2 261 60 1 1.059463 1.12246 1.18920 ..etc...</programlisting>
75
76 <para>
77 After the gen has been processed, the table f1 is filled with 64
78 different frequency values. The 60th element is filled with the
79 frequency value of 261, and all other elements (preceding and
80 subsequents) of the table are filled according to the tuning ratios
81 </para>
82
83
84 <para>
85 Another example with a 24-grade scale with a base frequency of 440
86 assigned to the key-number 48, and a repetition interval of 1.5:</para>
87
88
89 <programlisting>
90 <emphasis role="comment">; numgrades basefreq tuning-ratios .....</emphasis>
91 <emphasis role="comment">; interval basekey</emphasis>
92 <emphasis role="stamnt">f</emphasis>1 0 64 -51 24 1.5 440 48 1 1.01 1.02 1.03 ..etc...</programlisting>
93
94 </refsect1>
95
96 <refsect1>
97 <title>Examples</title>
98 <para>
99 Here is an example of the GEN51 routine. It uses the files <ulink url="examples/gen51.csd"><citetitle>gen51.csd</citetitle></ulink>.
100 <example>
101 <title>An example of the GEN51 routine.</title>
102 <xi:include href="examples-xml/gen51.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
103 </example>
104
105 <textobject>
106 <phrase>These are the diagrams of the waveforms of the GEN51 routines, as used in the example:</phrase>
107 </textobject>
108
109 <mediaobject>
110 <imageobject>
111 <imagedata fileref="images/gen51_1.png" format="PNG"/>
112 </imageobject>
113
114 <textobject>
115 <phrase>f 1 0 128 -51 12 2 cpsoct(8) 60 1 2^(1/12) 2^(2/12) 2^(3/12) 2^(4/12) 2^(5/12) 2^(6/12) 2^(7/12) 2^(8/12) 2^(9/12) 2^(10/12) 2^(11/12) 2^(12/12)</phrase>
116 </textobject>
117
118 <caption>
119 <para>f 1 0 128 -51 12 2 cpsoct(8) 60 1 2^(1/12) 2^(2/12) 2^(3/12) 2^(4/12) 2^(5/12) 2^(6/12) 2^(7/12) 2^(8/12) 2^(9/12) 2^(10/12) 2^(11/12) 2^(12/12)</para>
120 </caption>
121 </mediaobject>
122
123 <mediaobject>
124 <imageobject>
125 <imagedata fileref="images/gen51_2.png" format="PNG"/>
126 </imageobject>
127
128 <textobject>
129 <phrase>f 2 0 128 -51 10 2 cpsoct(8) 60 1 2^(1/10) 2^(2/10) 2^(3/10) 2^(4/10) 2^(5/10) 2^(6/10) 2^(7/10) 2^(8/10) 2^(9/10) 2^(10/10)</phrase>
130 </textobject>
131
132 <caption>
133 <para>f 2 0 128 -51 10 2 cpsoct(8) 60 1 2^(1/10) 2^(2/10) 2^(3/10) 2^(4/10) 2^(5/10) 2^(6/10) 2^(7/10) 2^(8/10) 2^(9/10) 2^(10/10)</para>
134 </caption>
135 </mediaobject>
136
137 <mediaobject>
138 <imageobject>
139 <imagedata fileref="images/gen51_3.png" format="PNG"/>
140 </imageobject>
141
142 <textobject>
143 <phrase>f 3 0 128 -51 24 2 cpsoct(8) 60 1 2^(1/24) 2^(2/24) 2^(3/24) 2^(4/24) 2^(5/24) 2^(6/24) 2^(7/24) 2^(8/24) 2^(9/24) 2^(10/24) 2^(11/24) 2^(12/24) 2^(13/24) 2^(14/24) 2^(15/24) 2^(16/24) 2^(17/24) 2^(18/24) 2^(19/24) 2^(20/24) 2^(21/24) 2^(22/24) 2^(23/24) 2^(24/24)</phrase>
144 </textobject>
145
146 <caption>
147 <para>f 3 0 128 -51 24 2 cpsoct(8) 60 1 2^(1/24) 2^(2/24) 2^(3/24) 2^(4/24) 2^(5/24) 2^(6/24) 2^(7/24) 2^(8/24) 2^(9/24) 2^(10/24) 2^(11/24) 2^(12/24) 2^(13/24) 2^(14/24) 2^(15/24) 2^(16/24) 2^(17/24) 2^(18/24) 2^(19/24) 2^(20/24) 2^(21/24) 2^(22/24) 2^(23/24) 2^(24/24)</para>
148 </caption>
149 </mediaobject>
150
151 </para>
152 </refsect1>
153 <refsect1>
154 <title>Credits</title>
155 <para>Author: &namegabriel;</para>
156 </refsect1>
157 </refentry>