Debian Codegraph @

opcodes/mandel.xml

raw symbols SCIP
1
2 <refentry id="mandel">
3 <indexterm id="IndexMandel"><primary>mandel</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>mandel</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>mandel</refname>
13 <refpurpose>
14 Mandelbrot set
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Returns the number of iterations corresponding to a given point of complex plane by applying the Mandelbrot set formula.
22 </para>
23 </refsect1>
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>kiter, koutrig <command>mandel</command> ktrig, kx, ky, kmaxIter</synopsis>
27 </refsect1>
28
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>kiter</emphasis> - number of iterations
34 </para>
35 <para>
36 <emphasis>koutrig</emphasis> - output trigger signal
37 </para>
38 <para>
39 <emphasis>ktrig</emphasis> - input trigger signal
40 </para>
41 <para>
42 <emphasis>kx, ky</emphasis> - coordinates of a given point belonging to the complex plane
43 </para>
44 <para>
45 <emphasis>kmaxIter</emphasis> - maximum iterations allowed
46 </para>
47
48 <para>
49 <emphasis>mandel</emphasis> is an opcode that allows the use of the Mandelbrot set formula to generate an output that can be applied to any musical (or non-musical) parameter. It has two output arguments: <emphasis>kiter</emphasis>, that contains the iteration number of a given point, and <emphasis>koutrig</emphasis>, that generates a trigger 'bang' each time <emphasis>kiter</emphasis> changes. A new number of iterations is evaluated only when <emphasis>ktrig</emphasis> is set to a non-zero value. The coordinates of the complex plane are set in <emphasis>kx</emphasis> and <emphasis>ky</emphasis>, while <emphasis>kmaxIter</emphasis> contains the maximum number of iterations. Output values, which are integer numbers, can be mapped in any sorts of ways by the composer.
50 <mediaobject>
51 <imageobject>
52 <imagedata fileref="images/Mandelbrot.png" format="PNG"/>
53 </imageobject>
54 </mediaobject>
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 Here is an example of the mandel opcode. It uses the file <ulink url="examples/mandel.csd"><citetitle>mandel.csd</citetitle></ulink>.
62 <example>
63 <title>Example of the mandel opcode.</title>
64 <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>
65 <xi:include href="examples-xml/mandel.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
66 </example>
67 <para>
68 Two musical examples featuring the mandel opcode: <ulink url="examples/musical/Mandel_Daughtrey.csd"><citetitle>Mandel_Daughtrey.csd</citetitle></ulink> by Scott Daughtrey, and <ulink url="examples/musical/Mandel_Gogins.csd"><citetitle>Mandel_Gogins.csd</citetitle></ulink> by Michael Gogins.
69 </para>
70 </para>
71 </refsect1>
72
73 <refsect1>
74 <title>See Also</title>
75 <para>
76 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>
77 </para>
78 </refsect1>
79
80 <refsect1>
81 <title>Credits</title>
82 <para>Written by &namegabriel;.</para>
83 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
84 </refsect1>
85 </refentry>
86