Chaos Orchestra
Chaotic systems become instruments: Lorenz's attractor is an oscillator and a melody, the logistic map a rhythm. All are deterministic; the same start always plays the same music, while two nearby starts soon separate.
Chaos Orchestra
SYSTEM
dx/dt = σ(y − x)PARAMETERS
CLASSIC VALUESLAYERS
LEVELRhythm ≤ 20 beats a second. The oscillator's envelope is irregular like noise: no periodic fluctuation at 4-40 Hz. The attractor turns slowly and does not flash.
Butterfly effect
TWO ORBITS- STARTING DIFFERENCE
- 1 × 10⁻⁹ (in x)
- CURRENT SEPARATION
- 1.0 × 10⁻⁹
- SEPARATED
- not yet
- DETERMINISTIC
- Restart plays the same melody again
CALCULATION · RUNGE-KUTTA 4, STEP 0.005 · LORENZ 1963, RÖSSLER 1976
The period doubles
CALCULATED · FEIGENBAUM| TRANSITION | r | GAP | RATIO |
|---|---|---|---|
| 1 → 2 | … | — | — |
| 2 → 4 | … | — | — |
| 4 → 8 | … | — | — |
| 8 → 16 | … | — | — |
With each doubling the ratio of the gaps approaches the same number: the Feigenbaum ratio (≈ 4.669; Feigenbaum 1978). The values were calculated on this page from the map.
What does chaos sound like?
Chaos Orchestra turns chaotic systems into instruments. The Lorenz and Rössler attractors play an oscillator and a melody, the logistic map plays a rhythm. All of them are deterministic: no random numbers are used and the same start always gives the same music, yet two orbits that start 10⁻⁹ apart soon end up somewhere entirely different. This is the butterfly effect.
How does Chaos Orchestra work?
- Press Listen: the chaotic melody and the logistic rhythm play at 8 beats a second.
- Tap the bifurcation diagram or move the r slider: at period 2 the rhythm repeats every two steps, at period 4 every four, in chaos it never repeats.
- Change the parameters: Lorenz's σ, ρ and β change where the melody wanders.
- The Nudge button places the second orbit 10⁻⁹ from the first: the butterfly melody plays the same at first, then drifts apart.
- The Restart button returns everything to the same start: the same melody plays again.
What is it used for?
Hear the butterfly effect
The Nudge button places a second orbit 10⁻⁹ away from the first: the two melodies play the same at first, then drift apart.
Listen to the road to chaos
Move r on the bifurcation diagram: at period 2 the rhythm repeats every two steps, at period 4 every four, and in chaos it never repeats.
Deterministic chaos in a lesson
Change Lorenz's σ, ρ and β to show how a system with fixed rules can look unpredictable; no random numbers are used, and From the start plays the same melody again.
Material for generative music
The chaotic melody and the logistic rhythm give patterns that never repeat yet can be reproduced: the same start plays the same music every time.
How to read the results
- On the LOGISTIC MAP line, PERIOD 2 means the rhythm repeats every two steps, PERIOD 4 every four. CHAOS means no return was found within 64 steps: the rhythm never repeats. The opening r = 3.83 is the period-3 window.
- In the CHAOTIC RHYTHM strip each bar is one step and its height is xₙ; the thin middle line is the 0.5 threshold. A green bar above it is a beat, a clay-coloured bar above 0.85 an accented beat, a faint bar a silent step.
- SEPARATION is the distance between the two orbits; it starts at 1 × 10⁻⁹. Once it passes 1, the SEPARATED row on the Butterfly effect card shows the t value: the butterfly melody now plays apart from the main one. Nudge · 10⁻⁹ starts the separation again.
- In The period doubles table, RATIO is the ratio of successive gaps and approaches the Feigenbaum ratio (≈ 4.669); the values are computed on the page. The sound is not a recording but the solution of the equations: From the start plays the same melody again.
Four layers
| Layer | Source | How it sounds |
|---|---|---|
| Chaos oscillator | Attractor at audio rate | x becomes the waveform: a hissy, irregular tone |
| Chaotic melody | Slow solution | x is quantized to a pentatonic scale on each beat |
| Chaotic rhythm | Logistic map | A hit when xₙ passes 0.5, an accent past 0.85 |
| Butterfly | Second orbit | The same melody at first, different once apart |
Deterministic but unpredictable
The three equations Lorenz studied in 1963 are simple and contain no randomness. With the values Lorenz used (σ = 10, ρ = 28, β = 8/3) the solution wanders around a two-winged attractor but never follows the same path twice. A tiny difference at the start grows exponentially: two nearby orbits travel together for a while, then separate.
In the tool the two orbits start 10⁻⁹ apart in x. In the attractor's image one is green and one clay-coloured; the separation reading shows how the difference grows. The butterfly layer plays the second orbit as a separate voice.
The period doubles
The logistic map xₙ₊₁ = r·xₙ(1 − xₙ) transforms a single number again and again. For small r, x settles on one value; as r grows it begins to alternate between two, four, eight values and finally becomes chaotic. Even inside chaos there are periodic windows: at r ≈ 3.83, x cycles through three values.
The gaps between successive doublings shrink by roughly the same ratio each time. This ratio is the Feigenbaum ratio (≈ 4.669; Feigenbaum 1978); the tool calculates the doubling points from the map and shows the ratio approaching this number.
Frequently asked questions
- Does chaos mean random?
- No. A chaotic system is fully deterministic: the same start always gives the same result. Its unpredictability comes from extreme sensitivity to the start; a tiny difference grows quickly.
- Why does the rhythm sometimes repeat and sometimes not?
- The period of the logistic map depends on r. In a periodic region the rhythm repeats every period's worth of steps; in a chaotic region it never repeats. The r cursor on the bifurcation diagram shows which region you are in.
- Why does the oscillator sound hissy?
- The Lorenz attractor jumps irregularly between its two wings; solved at audio rate, these jumps give the tone a noise-like texture. The fluctuation is irregular: there is no periodic vibration at 4-40 Hz.
Listen and try
· v1.15 · changelog