DEV Community

dolai
dolai

Posted on

A music quiz where every song starts at a tenth of a second

Most guess-the-song games hand you thirty seconds of audio and let recognition do the work. By the time the chorus arrives, almost anyone can name the track. That is a fine party trick, but it makes for a weak scoring system, because the interesting question — how little do you actually need to hear? — never gets asked.

I spent some time with a browser game built entirely around that question. Each run holds five songs, and every one of them starts at a tenth of a second. You press play, hear what amounts to a click of sound, and then choose: commit to a guess now, or spend more of the clip and watch the payout shrink.

The scoring is where the design gets interesting

A song is worth 10,000 points at the shortest clip length. Every extension of the excerpt lowers that value, and a wrong guess costs 500 points. A perfect five-song run tops out at 50,000. Before committing, a duration selector previews what the next step would pay, so the trade-off is visible instead of hidden.

That single rule changes how you listen. Recognition stops being about lyrics and starts being about production: the drum tone, the room, the first chord voicing. Players who are good at naming songs from a chorus turn out to be mediocre at naming them from an attack transient, which is a much more honest test of music memory.

A few implementation details worth noting

  • The song pool is filterable by genre, artist and era before the run starts, and a hits-only switch narrows it to widely played tracks. At least five matching songs are needed, otherwise the run cannot start.
  • Previews that fail to load or have expired are replaced automatically, and the player is not penalised for it.
  • There is no account. Best score and preferences live in the browser's local storage, so a cold page load is enough to start a run.

The playable version is at Songless Unlimited, and it works on desktop and mobile without an install. The site also hosts a handful of sibling games built on the same daily-puzzle pattern — trivia, geography, word ladders — but the music one is the cleanest example of the idea.

If you build something similar, the lesson I would take from it is that the constraint is the game. Nobody remembers a quiz with a generous timer. They remember the one that made them guess from a tenth of a second and get it wrong.

Top comments (0)