lorenzSignal Generators:Models and Emulationslorenzlorenz
Implements the Lorenz system of equations.
Description
Implements the Lorenz system of equations. The Lorenz system is a chaotic-dynamic system which was originally used to simulate the motion of a particle in convection currents and simplified weather systems. Small differences in initial conditions rapidly lead to diverging values. This is sometimes expressed as the butterfly effect. If a butterfly flaps its wings in Australia, it will have an effect on the weather in Alaska. This system is one of the milestones in the development of chaos theory. It is useful as a chaotic audio source or as a low frequency modulation source.
Syntaxax, ay, az lorenz ksv, krv, kbv, kh, ix, iy, iz, iskip [, iskipinit]Initializationix, iy, iz -- the initial coordinates of the particle.
iskip -- used to skip generated values. If iskip is set to 5, only every fifth value generated is output. This is useful in generating higher pitched tones.
iskipinit (optional, default=0) -- if non zero
skip the initialisation of the filter. (New in Csound version
4.23f13 and 5.0)
Performanceksv -- the Prandtl number or sigma
krv -- the Rayleigh number
kbv -- the ratio of the length and width of the box in which the convection currents are generated
kh -- the step size used in approximating the differential equation. This can be used to control the pitch of the systems. Values of .1-.001 are typical.
The equations are approximated as follows:
x = x + h*(s*(y - x))
y = y + h*(-x*z + r*x - y)
z = z + h*(x*y - b*z)
The historical values of these parameters are:
ks = 10
kr = 28
kb = 8/3
This algorithm uses internal non linear feedback loops which causes audio result to depend on the orchestra
sampling rate. For example, if you develop a project with sr=48000Hz and if you want to produce
an audio CD from it, you should record a file with sr=48000Hz and then downsample the file to 44100Hz
using the src_conv utility.Examples
Here is an example of the lorenz opcode. It uses the file lorenz.csd.
Example of the lorenz opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoModels and EmulationsCreditsAuthor: &namehans;February 1999New in Csound version 3.53Note added by &namepinot;, August 2009