A generative instrument

The Coherence
Engine

order emerges from coupled difference

33 voices  ·  3 communities  ·  1 trajectory  ·  88 seconds  ·  seed 70

▶ play with sound — the audio is half the piece 1280×720 · H.264 · the same trajectory drives both senses

How does the many become one without ceasing to be many?

Not by decree. Not by a conductor standing outside the orchestra, imposing a beat — the conductor is a story told afterward, to take credit. What actually happens is stranger: each thing keeps its own pulse, listens a little to its neighbours, and bends, only slightly, toward them. That is the whole mechanism. There is no other ingredient.

Couple difference too weakly and nothing happens; the crowd stays a crowd. Couple it past a threshold and the crowd discovers, all at once and without anyone deciding, that it was always capable of being a chord.

This is the oldest physics of togetherness. Fireflies along a riverbank find it. Heart cells find it before you are born. Pendulums on a shared beam swing into agreement overnight while the house sleeps. The surprising thing the mathematics insists upon is that coherence is not the absence of difference — the oscillators never become identical. Each keeps the frequency it was born with. What changes is only how they carry it: together, in phase, so the differences that used to cancel now reinforce.

The gold arrow at the centre is the mean field — the average of all phases. Watch its length. That length is the coherence.

Four movements · the coupling schedule K(t)
Dispersion — scattered oscillators
I · 0:00

Dispersion

Thirty-three voices scatter. A shimmer, a beating, microtones sliding past one another — intention without agreement. The arrow is a stub.

Recognition — communities forming
II · 0:22

Recognition

The communities find themselves first — Fire I, Fire II, the cool patience of the Mountain — each kindling its own internal lines.

Convergence — global synchronization
III · 0:48

Convergence

The constellations find each other. Detuning collapses, beating quiets, and the chord — always latent in the tuning — finally arrives.

Breath — loosening and re-gathering
IV · 1:12

Breath

The coupling loosens on purpose. The field remembers how to be many — then gathers again. Coherence that cannot loosen is not coherence; it is rigor mortis.

The order parameter

Every frame measures one number: r, the magnitude of the mean field. At zero, the phases cancel — pure crowd. At one, they point as a single body — pure chord. The gold vector's length is a direct drawing of r, and the root sub-drone you hear is gated by it. Nothing on screen or in the sound is decoration; it is all the same quantity, shown twice.

The trajectory is deterministic. Same seed, same chord, every time. But determinism here is not the opposite of surprise — it is the condition for it. The surprise was always in the tuning, waiting for the coupling to find it.

0.795
peak coherence · r at t = 77.9s
start0.195
peak0.795
settle0.700
How it works, if you want the machinery
engine.py

The physics, then the sound

Integrates a community-structured Kuramoto network of 33 phase oscillators by RK4. The same trajectory is sonified: each oscillator is one tone of an A-major-7-add-9 chord, detuned in cents by how far its instantaneous frequency sits from its cluster's mean. As clusters lock, the beating vanishes and the chord resolves.

render.py

The same trajectory, seen

Draws the phase circle, the glowing voices, the chord-web lines that kindle as communities phase-lock, the per-community vectors, and the gold global mean-field vector whose length is the order parameter. A coherence timeline fills along the bottom.

K(t)

The coupling climbs

Within-community coupling stays stronger than cross-community coupling, so the groups cohere before the whole does. The schedule rises through four movements with a deliberate late loosening and re-gathering.

I DispersionII Recognition III ConvergenceIV Breath