Collapse Score

A self-composing score in D-Dorian driven by Wave Function Collapse. Each cell starts in superposition — watch constraints ripple outward as the lattice decides its notes.

Tap to unlock audio and start the WFC solver.

14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
14
Ddeg 1
Edeg 2
Fdeg 3
Gdeg 4
Adeg 5
Bdeg 6
Cdeg 7

How it works

The lattice starts with all 14 D-Dorian tiles (7 scale degrees × 2 octaves) possible in every cell. The WFC loop: find the lowest-entropy cell → collapse it to a weighted-random note → propagate arc-consistency (neighbours lose incompatible candidates, shown as a brief glow). Horizontal neighbours must move by ≤ 2 diatonic steps; vertical neighbours must share diatonic thirds/fourths/fifths. The playhead sweeps left→right sounding each collapsed cell as the score writes itself in real time.

superpositionconstrainedcollapsedplaying
The dream lab — Karel Barnoski