1.4 Swarm Synth Lab

1.4.1 Buffon’s Needles

Buffon’s Needles

Drag the three sliders: separation, alignment, cohesion. Touch to start the sound.

Georges-Louis Leclerc, Comte de Buffon (1707–1788), was a naturalist and mathematician, known above all for his Histoire naturelle, a natural history of the world in 36 volumes. In 1733 he put a simple question to the Académie des sciences, and in 1777 he published it with its answer in his Essai d'arithmétique morale: needles of length L are dropped at random on a floor of parallel lines D apart — how often does a needle cross a line? It is the first problem of what became geometric probability.

The answer, 2L / (π D), hides the circle in the needles' angles. With D = 2L one needle in π crosses, so counting the crossings estimates π — a use Laplace pointed out in 1812, and one that has been tried with real needles ever since.

Buffon's needle: a needle crosses a line when one lies within its height L·|sin θ|; with the lines 2L apart and the angles at random, that happens for one needle in π
Buffon's needle: a needle crosses a line when one lies within its height L·|sin θ|; with the lines 2L apart and the angles at random, that happens for one needle in π

Buffon’s Needles makes every boid a needle: its heading is the needle's angle. Horizontal lines (orange) run across the stage, one through the middle, twice the needle's length apart. Every step the needles lying across a line are counted — they turn bright green — and the count gives an estimate of π, over the last two seconds and since the last reset. A pale grey circle around each needle shows the circle it can turn in.

Only random angles give π. A scattered swarm, with the three sliders at zero, finds it. A flock flying all one way breaks it: flying along the lines it crosses less often and the estimate rises (to about 5.7); flying across them it crosses more often and the estimate falls (to about 2.3). Order pulls π away.

Scattered, the radii at zero: the needles point every way, and the estimate (top right) sits near π
Scattered, the radii at zero: the needles point every way, and the estimate (top right) sits near π
One flock: the needles lean the same way, and the estimate leaves π
One flock: the needles lean the same way, and the estimate leaves π

The sound is its own; the drones, notes and beat of Swarm Synth V are not part of it. When the boids align, the sound aligns. One tone follows the estimate — 220 Hz stands for π, and the tone is 220 Hz × estimate / π — and it is sung by five voices. How far apart the voices stand depends on how alike the needles lie: scattered, their angles go every way, and the five voices spread over a semitone and a half, a cluster wavering against itself around π; as the swarm aligns, the voices close in, until a flock sings one clear tone — away from π, where its estimate has gone. A quiet tone stays on π. Every needle that starts to cross a line ticks: scattered, each at its own height and place on the stage, a sparkle of pitches; aligned, the ticks gather onto one pitch in the middle, a single ticking like a clock.