Field manual · 3 min

The lyrics show, built in one night

My playlist now dims the page and lights up each line as it's sung. How it got built, and the 26 lines that are still a guess.

I make songs. Fifteen of them were in the Z Playlist on my old site. Tonight I wanted more than a play button. I wanted the screen to dim and the lyrics to light up as they’re sung, like a show.

It worked, and it was a good night. I’ve since retired that playlist in a redesign. My songs now live on my YouTube channel.

The screen was the easy part

Dim the page, list the lines, highlight one. That’s a small amount of code.

The hard part is knowing when each line is sung. I already had the words. They’re the lyrics to my songs. What I didn’t have was timing.

How the timing works

Each song went through a speech-to-text model that reports when it hears each word. Music makes that messy, so every song ran three ways: the full mix with the lyrics as a hint, then the vocals pulled out on their own with a vocal-separation tool, with and without that hint.

Then every known lyric line was lined up against those word timestamps. If at least two of the three passes put a line’s start within a second and a half of each other, I trusted it. If they didn’t, the time was estimated from the word counts between trusted lines.

The honest numbers

709 lines across 15 songs. 683 are matched to the audio. 26 are estimates.

Twelve songs matched 96 to 100 percent of their lines. The weakest, Wake Signal, matched 84 percent. Chopped-up EDM vocals don’t transcribe well. A few lines there may light up a beat early or late.

The words are my lyrics. If a line was sung a little differently, the screen shows it the way it was written.

Why ship it with 26 guesses

Because 96 percent live tonight beats 100 percent someday. I know exactly which lines are estimates, so I know where to look. Fixing one is a timestamp edit, not a rebuild.

How it got to the site

I kept it small and simple: one timing file per song, nothing fancy. I tested it at desktop and phone width before it went live.

The idea and the live version happened on the same night. That’s the part I care about. The gap between “it would be cool if” and “it’s live” can be a few hours now, if you keep the first version small.

What’s next

The lyric show is retired for now. If it comes back, those 26 guesses are the first thing I fix.