Debian Codegraph @

opcodes/gendy.xml

raw symbols SCIP
1 <refentry id="gendy">
2 <indexterm id="IndexGendy"><primary>gendy</primary></indexterm>
3 <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>gendy</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>gendy</refname>
10 <refpurpose>
11 Dynamic stochastic approach to waveform synthesis conceived by Iannis Xenakis.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 Implementation of the <emphasis>Génération Dynamique Stochastique</emphasis>
19 (GENDYN), a dynamic stochastic approach to waveform synthesis conceived
20 by Iannis Xenakis.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>ares <command>gendy</command> kamp, kampdist, kdurdist, kadpar, kddpar, kminfreq, kmaxfreq, \
27 kampscl, kdurscl [, initcps] [, knum]</synopsis>
28 <synopsis>kres <command>gendy</command> kamp, kampdist, kdurdist, kadpar, kddpar, kminfreq, kmaxfreq, \
29 kampscl, kdurscl [, initcps] [, knum]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>initcps</emphasis> (optional, default=12) -- max number of
36 control points.
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>kamp</emphasis> -- amplitude.
44 </para>
45 <para>
46 <emphasis>kampdist</emphasis> -- choice of probability
47 distribution for the next perturbation of the amplitude of a
48 control point. The valid distributions are:
49 <itemizedlist>
50 <listitem><para>0 - LINEAR</para></listitem>
51 <listitem><para>1 - CAUCHY</para></listitem>
52 <listitem><para>2 - LOGIST</para></listitem>
53 <listitem><para>3 - HYPERBCOS</para></listitem>
54 <listitem><para>4 - ARCSINE</para></listitem>
55 <listitem><para>5 - EXPON</para></listitem>
56 <listitem><para>6 - SINUS (external k-rate signal)</para></listitem>
57 </itemizedlist>
58 If <emphasis>kampdist</emphasis>=6, the user can use an external
59 k-rate signal through <emphasis>kadpar</emphasis>.
60 </para>
61 <para>
62 <emphasis>kdurdist</emphasis> -- choice of distribution for the
63 perturbation of the current inter control point
64 duration. See <emphasis>kampdist</emphasis> for the valid distributions.
65 If <emphasis>kdurdist</emphasis>=6, the user can use an external
66 k-rate signal through <emphasis>kddpar</emphasis>.
67 </para>
68 <para>
69 <emphasis>kadpar</emphasis> -- parameter for the <emphasis>kampdist</emphasis>
70 distribution. Should be in the range of 0.0001 to 1.
71 </para>
72 <para>
73 <emphasis>kddpar</emphasis> -- parameter for the <emphasis>kdurdist</emphasis>
74 distribution. Should be in the range of 0.0001 to 1.
75 </para>
76 <para>
77 <emphasis>kminfreq</emphasis> -- minimum allowed frequency of oscillation.
78 </para>
79 <para>
80 <emphasis>kmaxfreq</emphasis> -- maximum allowed frequency of oscillation.
81 </para>
82 <para>
83 <emphasis>kampscl</emphasis> -- multiplier for the
84 distribution's delta value for amplitude (1.0 is full range).
85 </para>
86 <para>
87 <emphasis>kdurscl</emphasis> -- multiplier for the distribution's delta value for duration.
88 </para>
89 <para>
90 <emphasis>knum</emphasis> (optional,
91 default=<emphasis>initcps</emphasis>) -- current number of utilized control points.
92 </para>
93
94 <para>
95 The waveform is generated by <emphasis>knum</emphasis> - 1
96 segments and is repeated in the time. The vertexes (control points)
97 are moved according to a stochastic action and they are limited
98 within the boundaries of a mirror formed by an amplitude barrier
99 and a time barrier.
100 <mediaobject>
101 <imageobject>
102 <imagedata fileref="images/gendy.png" format="PNG"/>
103 </imageobject>
104
105 <textobject>
106 <phrase>[A repetition of the generated waveform with <emphasis>knum</emphasis>=12.]</phrase>
107 </textobject>
108
109 <caption>
110 <para>A repetition of the generated waveform with <emphasis>knum</emphasis>=12.</para>
111 </caption>
112 </mediaobject>
113 </para>
114 </refsect1>
115
116 <refsect1>
117 <title>Examples</title>
118 <para>
119 Here is an example of the gendy opcode. It uses the file
120 <ulink url="examples/gendy.csd"><citetitle>gendy.csd</citetitle></ulink>.
121 <example>
122 <title>Example of the gendy opcode.</title>
123 <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>
124 <xi:include href="examples-xml/gendy.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
125 </example>
126 </para>
127 <para>
128 Here is an example of the gendy opcode with some modulations. It uses the file
129 <ulink url="examples/gendy-2.csd"><citetitle>gendy-2.csd</citetitle></ulink>.
130 <example>
131 <title>Example of the gendy opcode with some modulations.</title>
132 <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>
133 <xi:include href="examples-xml/gendy-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
134 </example>
135 </para>
136 </refsect1>
137
138 <refsect1>
139 <title>References</title>
140 <para>
141 <orderedlist>
142 <listitem>
143 <para>
144 Formalized Music (1992, Stuyvesant, NY: Pendragon Press),
145 pp. 246 - 254, 289 - 322.
146 </para>
147 </listitem>
148 </orderedlist>
149 </para>
150 </refsect1>
151
152 <refsect1>
153 <title>See Also</title>
154 <para>
155 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>,
156 <link linkend="gendyc"><citetitle>gendyc</citetitle></link>,
157 <link linkend="gendyx"><citetitle>gendyx</citetitle></link>
158 </para>
159 </refsect1>
160
161
162 <refsect1>
163 <title>Credits</title>
164 <para>
165 <simplelist>
166 <member>Based on Nick Collins's Gendy1 ugen (SuperCollider)</member>
167 <member>Author: &nametito;</member>
168 <member>January 2012</member>
169 </simplelist>
170 </para>
171 <para>New in Csound version 5.16</para>
172 </refsect1>
173 </refentry>