<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>mandel</title> <link rel="stylesheet" href="csound.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="madsr.html" title="madsr" /> <link rel="next" href="mandol.html" title="mandol" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">mandel</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="madsr.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="mandol.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="mandel"> <a id="mandel"></a> <div class="titlepage"></div> <a id="IndexMandel" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">mandel</span> </h2> <p>mandel — Mandelbrot set </p> </div> <div class="refsect1" title="Description"> <a id="id3008811"></a> <h2>Description</h2> <p> Returns the number of iterations corresponding to a given point of complex plane by applying the Mandelbrot set formula. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3008717"></a> <h2>Syntax</h2> <pre class="synopsis">kiter, koutrig <span class="command"><strong>mandel</strong></span> ktrig, kx, ky, kmaxIter</pre> </div> <div class="refsect1" title="Performance"> <a id="id3008736"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kiter</em></span> - number of iterations </p> <p> <span class="emphasis"><em>koutrig</em></span> - output trigger signal </p> <p> <span class="emphasis"><em>ktrig</em></span> - input trigger signal </p> <p> <span class="emphasis"><em>kx, ky</em></span> - coordinates of a given point belonging to the complex plane </p> <p> <span class="emphasis"><em>kmaxIter</em></span> - maximum iterations allowed </p> <p> <span class="emphasis"><em>mandel</em></span> 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: <span class="emphasis"><em>kiter</em></span>, that contains the iteration number of a given point, and <span class="emphasis"><em>koutrig</em></span>, that generates a trigger 'bang' each time <span class="emphasis"><em>kiter</em></span> changes. A new number of iterations is evaluated only when <span class="emphasis"><em>ktrig</em></span> is set to a non-zero value. The coordinates of the complex plane are set in <span class="emphasis"><em>kx</em></span> and <span class="emphasis"><em>ky</em></span>, while <span class="emphasis"><em>kmaxIter</em></span> contains the maximum number of iterations. Output values, which are integer numbers, can be mapped in any sorts of ways by the composer. </p> </div> <div class="refsect1" title="Credits"> <a id="id3009829"></a> <h2>Credits</h2> <p>Written by Gabriel Maldonado.</p> <p>New in Csound 5 (Previously available only on CsoundAV)</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="madsr.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="mandol.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">madsr </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> mandol</td> </tr> </table> </div> </body> </html>