Debian Codegraph @

opcodes/gendyx.xml

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