Alex ChernyshHaifa
Back to notes

Note

Patefona: A 24/7 Radio Station Built for One Listener (and Whoever Else Tunes In)

Up to 4,613 archival recordings and 285 hours of music, a deterministic Michael Keith rotation clock, synthesized Greenwich-style time pips, a tube/AM signal path, and cross-border copyright math. How it works, what it costs, and what is still rough.

11 min read

AI Systems

On this page(6)

Turns out we live in lucky times. Mostly because everyone else is already dead.

I wanted my own radio station for years. Not a streaming playlist and not an endless generative ambient loop, but an actual broadcast station: dayparts, hourly clocks, station IDs, and the quiet sense that somebody in a dim control room cares what plays at two in the morning.

It streams at patefona.com. Free, no ads, no sign-up. Here is how it is put together, where the records came from, and what still breaks.

1. Picking up an old trade

Back when I was young, dumb, and full of… ambition, I somehow stumbled into running programming at an avant-garde satellite TV channel, and later worked as a music director at a commercial pop FM station.

That left me with a lasting allergy to algorithmic streams. Streaming feeds either trap you inside three familiar chords or yank you out of a paragraph with an uninvited vocal hook. Scheduled radio works differently: it knows the difference between 10 a.m. and 2 a.m., and it asks zero decisions of the listener.

So I relapsed, pulled Michael Keith's radio bible off the shelf (The Radio Station — a wonderful book written in the liveliest prose; if you have any interest in traditional broadcast media, a few absorbing evenings are guaranteed — on Amazon, or on the Internet Archive to read and borrow), and wrote a deterministic broadcast scheduler.

In 2026 it sounds intimate, eclectic, and faintly post-apocalyptic, like a tube receiver catching a pre-war signal across a wasteland. Next time someone needs a music supervisor for a new Fallout, let me know. At the same time, it turned out to be a remarkably steady backdrop for working, reading, falling asleep, and generally staying alive.

2. Clearing the archive without wishful thinking

I used to curse filling out domestic royalty sheets for collecting societies. Once you stream on the open web, domestic paperwork looks gentle: composition terms, lyricist terms, arranger credits, and sound-recording terms expire on different schedules in the US, the EU, and everywhere else. One person has neither the swear words, nor the hours, nor the money for global commercial licensing. You have no idea how long it takes to find out when the second lyricist of a 1928 foxtrot died.

So the intake pipeline enforces strict gates before a file enters rotation:

  • Underlying work (composer, lyricist, credited arranger): under the EU life + 70 baseline, every credited author must have died in or before 1955, or the piece must be dated traditional repertoire. More than 12,000 writer surnames were checked against Wikidata, with edge cases reviewed by hand.
  • Sound recordings and geography: open-licensed files from Wikimedia Commons are paired with open-archive 78 rpm shellac transfers. Out of 82,586 digitized sides, deduplication, author checks, and audio quality gates admitted 3,282 records. Pre-1926 recordings are in the public domain in the US and EU (3,401 tracks / 220 hours together with open-licensed files); 1926–1962 recordings whose EU neighboring rights have expired form the wider European library (4,613 recordings / 285 hours). Full per-track attribution lives on the site's credits page.

The first build went on air with 42 hours of music. With an 8-minute daytime track cap, tuning in for the same three-hour window every day produced 45% weekly repeats. An intermediate 108-hour build brought that down to 11%; the full 285-hour archive brought it to 3%.

3. Rotation: a report nobody asked for

The grid runs twelve themed two-hour programs plus a general shelf. Schedules are generated deterministically four weeks ahead as hash-chained daily logs.

From the 28-day schedule audit:

  • 60/40 era-matched wide tier: themed shows draw 60% of their slots from their core pool and 40% from the wider shelf, constrained to ±20 years around the program's median recording year so a 1922 acoustic shellac side never collides with a late-1950s studio tape.
  • Repeat rate: listening to the same three hours every day for a week yields 3% repeats on the full catalog (roughly 4–5% on the 3,401-track non-EU pool). Day-over-day same-hour overlap is 0%. Across a ten-hour workday (08:00–18:00), weekly repeats sit at 14%.
  • Fitting the hour: the scheduler picks closing slots to fit the remaining seconds before the top of the hour rather than chopping a track in half for a station ID.
  • Time signals: :00 brings a quiet pendulum tick and six Greenwich-style pips; :30 brings eight notes of the Westminster Quarters (which mark the full hour in India, Iran, Sri Lanka, and Newfoundland). Every signal is synthesized directly to FLAC so there are no third-party broadcast samples and no MP3 padding drift.

4. Audio plumbing, broadcast mastering, and restrained de-clicking

Raw archival audio is tiring over a long afternoon: one transfer sits at −28 LUFS with thirty seconds of dead wax and an autostop clunk at the end, the next has inverted stereo phase, and the third has a 1919 acoustic recording horn drilling into your ear at 2.8 kHz. Keeping the station effortless for hours splits the DSP work between offline per-file preparation and a live 32-bit floating-point broadcast bus (44.1 kHz f32le):

  1. Cue trimming, tonearm lift clicks, and adaptive outro_type segues (analyze.py): naive silence detectors fail on 78 rpm transfers because ten seconds of dead wax are often followed by a loud tonearm-lift thump right before EOF, fooling the trimmer into keeping the dead air. Our analyzer measures momentary loudness inside an 80–6,000 Hz band-pass window (stripping +13.7 dB of >7 kHz shellac hiss bias), discards trailing stylus-lift impulses, and classifies all 4,779 endings. Roughly 64% of shellac sides end cold on a crisp final chord where a fixed 1.5 s crossfade would step on the cadence — those get a tight 0.4 s handoff, whereas long studio fade-outs (long_fade) trigger early 2.5–3.5 s equal-power qsin segues during daytime hours. More than three hours of dead air and dying tails were trimmed across the archive.
  2. Phase, dual-mono folding, and the 78 rpm playback-curve trap: out-of-phase stereo transfers (which cancel to silence on a phone speaker or mono smart speaker) are phase-flipped; dead channels are rebuilt; dual-mono transfers of monophonic discs are summed for a free 3 dB reduction in uncorrelated groove-wall crackle. Playback equalization carries its own trap: before the 1954 RIAA curve standardized vinyl, Victor, Columbia, and HMV cut discs with different bass turnovers (250–800 Hz) and high-frequency roll-offs. Because our ingest pipeline selects the preservation engineer's stylus-matched, curve-compensated listening transfer rather than raw _flat velocity dumps, applying a second 78 rpm turnover boost would turn the low end to mud. What early acoustic horns and carbon mics actually need is dynamic de-honking around 1.8–3.8 kHz — taming upper-mid brass and soprano glare on loud peaks without dulling quiet passages.
  3. Surgical autoregressive de-clicking (adeclick): measuring click density across the initial 1,434-track library showed that 94% of modern open-licensed files needed zero de-clicking — and running heavy neural denoisers over clean shellac strips the air right out of the strings. Offline autoregressive LPC interpolation (adeclick) runs strictly on heavily worn discs (≥ 20 clicks/min — 66 early archival files plus 2,870 shellac sides with a median of 91.5 clicks/min), touching roughly 1% of samples and cutting impulse crackle by 84–90% (1,392 → 168 clicks/min on the roughest discs).
  4. Why standard FM compression ruins shellac — and how the bus stays clean: commercial FM processors rely on multiband compression with makeup gain. On a 1924 shellac record, wideband makeup gain immediately pulls −45 dBFS surface hiss up by +6 dB in every pause. Instead, playout.py applies pre-measured static gain per track and per jingle to hit −17 LUFS (−18 LUFS on the Kids stream) with zero live loudnorm lookahead lag, feeding a 1 MB PCM pipe, a 28 Hz infrasonic cut, and a 4× oversampled true-peak limiter at −1.5 dBTP (with any vari-mu bus glue gated above the disc's noise floor).
  5. Clean bus, "Tube / AM 1926" path, and the 7-day aircheck watchdog: a single encoder splits the bus into the transparent stream and the Tube / AM 1926 stream (4× oversampled asymmetric tanh triode saturation for even harmonics, warm low-mids, 12 kHz roll-off), loudness-matched within 0.05 LU. A separate watchdog container runs continuous silencedetect alongside a rolling 7-day 32 kbps Opus aircheck archive exported to Grafana.
  6. Psychoacoustic Background Mode (My Room / Living Room / Cafe): a 6-stage externalization chain built to move headphone audio out of your skull and into the room so it stops competing with active thought: Mid/Side widening (+1..+3 dB Side), interaural crossfeed (200–350 µs ITD delay + 2.8–4.5 kHz head-shadow low-pass), distance EQ (air-absorption shelf plus a gentle ~3 kHz presence dip), sparse early reflections (8–60 ms), a short room tail (RT60 0.3–0.8 s), and gentle bus trim.

5. What it costs and what ran out of resources

Patefona is non-commercial: there are no ads, tiers, or paid plans. Servers run about $500 a year; the first month of AI-assisted buildout (code, archival research, automation, and station imaging/SFX — with synthesized announcer voices explicitly labeled in the site credits) cost roughly $300.

Because one person builds and maintains the station, here is what ran out of resources (and where the door is open):

  • Marketing and SEO: this write-up and one launch post are the entire marketing budget; from here on out, you're on your own.
  • A full fairy-tale kids' channel: a quiet Kids Music Box stream (0+ instrumental classical, marimba, celesta, and bedtime lullabies) is now live, while the main dial carries no formal rating stamp and sits firmly at 13+ — keep the toddlers off the main receiver.
  • Live (or at least properly VST-produced) station imaging (jingles, liners, air beds): I'm a perfectionist, just not quite that much of one. Want to pitch in — the door is open. Run an audio production studio — we will put your imaging package into rotation alongside an on-air signature for your studio. Two conditions (Legal may count twenty): keep it honest, and keep it in tune with the station's ensemble.
  • Another .fm domain: time to quit buying domains.

As for UI, sorry I (finally) have only one template. Look to the root, as Kozma Prutkov said: it should work smoothly as a Google Chrome App and on Android TVs; iOS and Android apps are planned, just resource-blocked. Use the m3u playlists provided if your graciousness would care to listen in an external player, or write your own — and we'll say thank you. Even on air. Even not in an AI voice.

And since we live in the agentic era: my software projects already had MCP servers, while my 1926 shellac station somehow did not. So Patefona obviously ships a stateless MCP server (claude mcp add --transport http patefona https://mcp.patefona.com/mcp) and an agent SKILL.md — point your agent at it in one click, and let it wire the broadcast onto your TV, Sonos, Apple TV, terminal, or toaster.

If you want to try it on real work, leave patefona.com open in a background tab for an afternoon. For creative notes, archival music finds, or a word from listeners, write to Alex at studio@patefona.com; for rights inquiries, takedowns, or infrastructure and CDN support, write to concerns@patefona.com.

P.S. For cafés & art spaces

If you run a café, bar, bookshop, gallery, or studio and want something steadier than algorithmic playlists, you can point VLC, Sonos, an Icecast/HLS streamer, or a wall monitor straight at the raw streams:

  • https://tv.patefona.com/tv/patefona-streams.m3u — All channels in one .m3u playlist
  • https://patefona.com/radio.mp3 — Radio (Clean)
  • https://patefona.com/radio-warm.mp3 — Radio (Valve-warmed for room speakers)
  • https://tv.patefona.com/tv/live.m3u8 — 1948 KVN-49 kinescope video
  • https://tv.patefona.com/tv/audio.m3u8 — Channel II: TV audio-only
  • https://patefona.com/radio-kids-warm.mp3 — Channel III · Kids Music Box (0+ instrumental classical & lullabies)

These are public-domain and free-licensed streams — no ads, no DRM; check local venue blanket rules if applicable. If you put Patefona on in your space, send a photo to Alex at studio@patefona.com. Be kind.

/radiopatefona.com ↗