mandelSignal Generators:Models and Emulationsmandelmandel
Mandelbrot set
Description
Returns the number of iterations corresponding to a given point of complex plane by applying the Mandelbrot set formula.
Syntaxkiter, koutrig mandel ktrig, kx, ky, kmaxIterPerformancekiter - number of iterations
koutrig - output trigger signal
ktrig - input trigger signal
kx, ky - coordinates of a given point belonging to the complex plane
kmaxIter - maximum iterations allowed
mandel 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: kiter, that contains the iteration number of a given point, and koutrig, that generates a trigger 'bang' each time kiter changes. A new number of iterations is evaluated only when ktrig is set to a non-zero value. The coordinates of the complex plane are set in kx and ky, while kmaxIter contains the maximum number of iterations. Output values, which are integer numbers, can be mapped in any sorts of ways by the composer.
Examples
Here is an example of the mandel opcode. It uses the file mandel.csd.
Example of the mandel opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Two musical examples featuring the mandel opcode: Mandel_Daughtrey.csd by Scott Daughtrey, and Mandel_Gogins.csd by Michael Gogins.
See AlsoModels and EmulationsCreditsWritten by &namegabriel;.New in Csound 5 (Previously available only on CsoundAV)