SuperCollider CLASSES (extension)

Lorenz2DN
ExtensionExtension

lorenz 2D chaotic generator
Inherits from: UGen : AbstractFunction : Object
Subclasses: Lorenz2DC, Lorenz2DL

Description

x' = s(y - x)
y' = x(r - z) - y
z' = xy - bz

The time step amount h determines the rate at which the ODE is evaluated. Higher values will increase the rate, but cause more instability. This generator uses a different algorithm than the LorenzN/L/C ugen included with current distributions. The resulting sound is somewhat different, and it also means that h becomes unstable around 0.02.

Class Methods

*ar (minfreq: 11025, maxfreq: 22050, s: 10, r: 28, b: 2.6666667, h: 0.02, x0: 0.090879182417163, y0: 2.97077458055, z0: 24.282041054363, mul: 1, add: 0)

*kr (minfreq: 40, maxfreq: 100, s: 10, r: 28, b: 2.6666667, h: 0.02, x0: 0.090879182417163, y0: 2.97077458055, z0: 24.282041054363, mul: 1, add: 0)

Arguments:

minfreq

minimum frequency in Hertz

maxfreq

maximum frequency in Hertz

s, r, b

equation variables

h

integration time step

x0

initial value of x

y0

initial value of y

z0

initial value of z

Inherited class methods

Instance Methods

Inherited instance methods

Examples

{ Lorenz2DN.ar(11025, 44100) }.play(s);

// randomly modulate params
(
{ Lorenz2DN.ar(
    11025, 44100,
    LFNoise0.kr(1, 2, 10),
    20,
    LFNoise0.kr(1, 1.5, 2),
    0.02
) * 0.2 }.play(s);
)

// as a frequency control
{ SinOsc.ar(Lorenz2DN.ar(40, 80, h:0.02)*800+900)*0.4 }.play(s);