1. Map the whole song first
Reacting to audio as it plays is always a little late: by the time a loudness meter has seen a kick, the kick has happened. So makemusic.video analyzes the entire track up front, on our server, and gives every musical event a timestamp; the song is deleted right after. A four-minute song takes a few seconds.
The result is a map of the song: a time for every kick, snare and hi-hat, every beat and every bar, plus how much energy there is in the lows, mids and highs from moment to moment. The visuals read from that map, so they never wait to hear a hit before reacting to it.
2. Find the hits (onset detection)
An onset is the instant a sound starts: the thump of a kick, the crack of a snare, the tick of a hi-hat. makemusic.video finds each kind of hit on its own, so a look can punch on the kick without also jumping on every hi-hat:
| Hit | What you hear | In the Code tab |
|---|---|---|
| Kick | The low thump that drives the beat | uKick |
| Snare / clap | The crack and noise of the snare | uSnare |
| Hi-hat / cymbal | Short, bright ticks | uHat |
Quiet verses and loud choruses both register, and ghost notes and busy bass lines don’t flash as hard as the main hits.
Each hit is placed at the moment it actually starts, not a little after. In tests on tracks with known timing, kicks land within about 2 ms.
3. Find the beat and the bar
The beat is the steady pulse you’d tap your foot to. A bar is a group of beats, most often four, and the downbeat is the first beat of each bar. makemusic.video works out the tempo, lays a beat grid over the whole song and marks where every bar starts.
The beats land on the drums you actually hear and stay steady, without jitter. That’s what lets visuals step on every beat and change colour on every bar, and it’s why loops and exports land on the beat too.
4. Show it when you hear it
Knowing when a kick happens in the file isn’t enough; the screen also has to show it when the sound reaches your ears. So the visuals follow the moment the sound actually comes out of your speakers, not the moment it was sent to play, and each frame is drawn for the instant it will appear on screen. The timing is kept smooth, so the picture never stutters or jumps backwards.
Motion is integrated rather than computed from the clock directly. Speed rises with loudness and surges on kicks, but distance only ever accumulates — so the camera never jumps when the speed changes, a common bug in visualizers that multiply time by a speed value.
5. Export frame by frame
Because every visual value is a function of the song’s timestamp, an export doesn’t need to record anything in real time. Each frame is rendered for its exact time (sampled at the middle of the frame, so a hit appears on the nearest frame) and encoded with the audio into an MP4. A slow graphics card makes the export take longer, never drift out of sync.
Want to see it? Open the studio, turn on the beat flash in the React tab and watch the meters. Or read the music video guide to make one.





