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