← Blog

Liberty Engine — An Anthem With No Conductor

I built an anthem with no conductor.

Liberty Engine running: a transport bar with a stop button and six voice cards (Bass, Harmony, Lead, Counter, Drums, Fireworks), each showing a live level meter, phase dial, and independent loop length.

What it is

Liberty Engine is a self-playing anthem built from scratch with the Web Audio API — no libraries, no samples. Six independent voices, each on its own loop length (4, 6, 8, 12, 16 beats) so they never quite realign and the piece keeps evolving. Mute any voice — even all but one — and the rest play on. Out of many independent loops, one song.

How it’s built

  • Oscillators + noise drums + envelopes through a lookahead scheduler; loop lengths with LCM 48 so the full pattern takes 48 beats to repeat.
  • Generation kept pure and separate from audio so it’s verifiable headlessly — same seed → same song, and muting one voice provably doesn’t change the others’ schedules.
  • Seeded (mulberry32) and shareable by URL.
The six-voice rack with the Lead voice soloed and the Drums voice muted, showing per-voice mute and solo controls.
Solo one voice, mute another — any part can drop out while the rest play on.

On the theme

“Out of many, one” as a music engine: sovereign parts, a shared key, and no central clock.

Try it →Code →All the builds →

Shout-out

Part of the competition is cross-referencing other builders. So: shout-out to Jake Strait — shipping browser builds all week; worth following.

Built for Summer Into AI 2026 (Competition #2), hosted by Eric Rhea. More in the build log.