Field card

File: aperiodic-etude.html Sibling: aperiodic-bloom.html — the same music with a phyllotaxis figure (each note a sunflower seed; the sector it lands in is the letter). This tile version is the calm one; the bloom is the maximal one. Pattern: the studio's first sound study — colour-as-notation extended to time (the score is the notation; the audio is the same data, heard); a piece whose central claim ("this never repeats") is a theorem, self-verified by the page before a note plays.

The brief that produced it

A goodbye gift, self-briefed, after the author asked for a leap beyond what the studio had done. The einstein tile has a one-dimensional sibling: the Fibonacci word, fixed point of the substitution a→ab, b→a — provably aperiodic, the Sturmian / cut-and-project cousin of Penrose tilings and quasicrystals. Make aperiodic order audible: three voices reading the same infinite string at three golden-ratio timescales (self-similarity as polyrhythm), rhythm in which a long note is exactly φ times a short one, and a live tally of longs and shorts whose ratio converges on φ. Byrne palette; the scrolling score is the word.

Source of truth — and why it's honest

  • The string is generated, then proved, at every load. Before the play button does anything, the page checks its own 20,001 letters three ways: (1) the word is a true fixed point (applying σ reproduces it exactly); (2) it matches the independent classical characterisation — letter n is long iff ⌊(n+2)φ⌋ − ⌊(n+1)φ⌋ = 2 (a Beatty cross-check against a closed formula, not against the generator); (3) the exact alignment of the three voice-levels reduces to φ² = φ + 1, asserted numerically. The verdict is logged to the console.

  • The self-test earned its keep immediately: the first draft shipped a wrong rotation form of the Beatty check, and the page refused itself at index 0 on first load. The formula now in the file is the one that survives both the fixed point and hand-verification against abaababaabaab….

  • Aperiodicity is a theorem, not vibes: the Fibonacci word is Sturmian (complexity n+1) and its letter frequencies are irrational (1/φ), so it cannot be eventually periodic — standard results (Lothaire, Algebraic Combinatorics on Words, ch. 2; Allouche & Shallit, Automatic Sequences, §10.5).

  • The string is genuinely unending. The page verifies ~30k letters at load, then grows the buffer lazily (doubling) whenever a voice or the score approaches its end. Every extension is checked against the previous buffer (strided prefix comparison + the seam letter) — the fixed-point property means the longer word must extend the shorter one exactly, and the check enforces it. Verified in practice by skipping ~4 hours in: 36,550+ letters crossed the original buffer with the seam check silent and the ratio readout at 1.6180. The piece therefore outlasts any recording of it — a YouTube upload maxes out at 12 hours; this does not.

  • Self-similar alignment is exact by construction: a level-(L+1) 'a' (duration φ·u·φ^L·φ) spans precisely its substitution image "ab" at level L (φu·φ^L + u·φ^L), because φ² = φ+1. Since the Fibonacci word is the substitution's fixed point, the inflated word is the word — one array drives melody (level 0), bass (level 3, ×φ³ ≈ 4.24 slower) and chime (level 5, ×φ⁵ ≈ 11.09 slower), always in lockstep.

  • The sound was measured, not assumed: played through an AnalyserNode during verification (average RMS ≈ 0.055, zero silent windows, no clipping) via the inert #debug hook kept in the file. Pause suspends the AudioContext — the audio clock and the drawn score share one timebase, so they cannot drift.

Design choices worth keeping

  • The mapping is deterministic everywhere — no randomness in the whole piece. The melody's pitch contour is the same golden rotation that generates the word (degree = ⌊frac((n+1)/φ)·5⌋ into a D-minor-pentatonic), so rhythm and melody are two hearings of one structure, not a tune bolted onto a gimmick.

  • The convergence counter is the study's honest readout: longs and shorts pass through consecutive Fibonacci pairs and the displayed ratio oscillates toward 1.6180… — the irrationality that forbids periodicity, watched live.

  • Restraint in the ear: one drone, three quiet voices, pentatonic consonance over a D–C bass alternation; lowpassed triangle lead, sparse two-note chime. The fun is intricate, not loud (the arcade's phrase, kept).

  • The score wears the two prime Byrne colours (author feedback, 2026-07-06): long tiles blue, short tiles red — idle tiles washed, the sounding tile at full saturation — with the playhead in warm ink so red keeps a single meaning. The transport is deliberately colourless: quiet warm-grey ghost buttons, because the controls are furniture and the score is the figure.

  • Fast-forward, honestly: a ⏩ +1:00 skip walks every voice a minute ahead without playing the skipped notes. Skipped melody letters still enter the tally: the counter tracks position in the string, so the φ-convergence story survives any fast-forward. The score's per-frame scan carries a cached forward-only cursor, so a 12-hour listen costs the same per frame as the first minute.

  • The score is the word: blue long / yellow short tiles in three exactly aligned rows, sounding tiles saturated, one fixed red playhead. Under reduced motion the scroll becomes discrete per-note redraws; sound only ever starts from a click.

What it teaches the studio

(1) The studio's honesty bar extends to claims about infinity: state the theorem, cite it, verify the finite artifact against an independent formula, and scope the claim to the buffer you actually ship. (2) Self-tests catch their author — the wrong-Beatty incident is the pattern working exactly as intended, and worth keeping in the file as a comment. (3) Sound is admissible studio material when the audio and the figure are the same data — the score isn't a visualisation of the music; both are renderings of one verified string. A third sense for the aperiodicity series: the Spectre shows it, the hat continuum deforms it, this one lets you listen to it.