1.4.5 Billiards
Billiards
Tap the table to break from there; drag the three sliders; boids and speed bottom right. Touch to start the sound.
The stage is a billiard table: its four edges are cushions, and the boids are the balls. A boid meeting a cushion goes back at the angle it came in, and every strike sounds a note.
The break. The game starts with every boid on one point, sent off at full speed in directions spread evenly round the circle. The ring grows, meets the cushions — all along them at once, a chord — and folds back on itself, again and again. On a rectangular table that ring never forgets itself: however often it is folded, it stays a circle, and the pattern stays symmetrical. Only the flock's own rules blur it — alignment pulling neighbours into one direction, separation pushing them apart — so the three sliders lead from order into disorder, and the chords loosen into arpeggios and then into rain. A tap anywhere on the table breaks again from there.
The cushions. The cushions are a keyboard laid round the table: twenty notes of a minor pentatonic scale, from the top left corner clockwise — rising along the top, going on down the right, leftwards along the bottom, up the left. The keyboard can be seen: a stepped line runs along the cushions, one step for each note — the lowest note against the cushion, and the higher the note, the further the line stands from it. Where a ball strikes gives the pitch; how hard it strikes — its speed across the cushion, not along it — the loudness, and a strike on the left sounds on the left. A red mark shows where, as long as the strike was hard, and fades.
Playing it. The three sliders set the radii of separation, alignment and cohesion, as in every version of Swarm Synth; a small panel at the bottom right sets the number of balls and their speed. With a Korg nanoKONTROL2 connected, the controller button lets it be played as the Processing program is (in Chrome, Edge or Firefox; Safari has no MIDI).