LorenzL

object LorenzL extends ProductReader[LorenzL]

A strange attractor discovered by Edward N. Lorenz while studying mathematical models of the atmosphere. The system is composed of three ordinary differential equations:

x' = s * (y - x)
y' = x * (r - z) - y
z' = x * y - b * z

The time step amount h determines the rate at which the ODE is evaluated. Higher values will increase the rate, but cause more instability. A safe choice is the default amount of 0.05.

===Examples===

// vary frequency
play { LorenzL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }
// randomly modulate parameters
play {
 LorenzL.ar(
   SampleRate.ir,
   LFNoise0.kr(1).mulAdd(2, 10),
   LFNoise0.kr(1).mulAdd(20, 38),
   LFNoise0.kr(1).mulAdd(1.5, 2)
 ) * 0.2
}
// as a frequency control
play { SinOsc.ar(Lag.ar(LorenzL.ar(MouseX.kr(1, 200)), 3e-3) * 800 + 900) * 0.4 }
Companion
class
trait Product
trait Mirror
trait ProductReader[LorenzL]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar: LorenzL
def ar(freq: GE, s: GE, r: GE, b: GE, h: GE, xi: GE, yi: GE, zi: GE): LorenzL
Value Params
b

Equation variable

freq

Iteration frequency in Hertz

h

Integration time step

r

Equation variable

s

Equation variable

xi

Initial value of x

yi

Initial value of y

zi

Initial value of z

def read(in: RefMapIn, key: String, arity: Int): LorenzL