Guide

How beat-synced visuals work

Visuals that hit on the beat need two things: knowing exactly when each hit happens, and showing it at exactly the moment you hear it. Here’s how makemusic.video does both.

Make one now — freeSee the looks

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:

HitWhat you hearIn the Code tab
KickThe low thump that drives the beatuKick
Snare / clapThe crack and noise of the snareuSnare
Hi-hat / cymbalShort, bright ticksuHat

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.

Questions

How accurate is the timing?

In tests with synthetic tracks of known timing, detected kicks land within about 2 ms of the real hit and the beat grid within about 1 ms. In an exported video, each hit appears on the frame nearest to it.

Why do my visuals look slightly late with Bluetooth headphones?

Bluetooth adds delay the browser can’t always measure. Use the visual offset slider in the React tab until the beat flash lines up with what you hear. Exports aren’t affected.

Does it work with any genre?

Beat tracking works best on music with a clear pulse, which covers most pop, hip-hop, electronic and rock. On ambient or free-tempo music the tracker’s confidence drops, the beat pulses are scaled down to match, and the visuals lean on the loudness and the individual hits instead.

Can I use these values in my own shader?

Yes. The studio’s Code tab exposes them as uniforms: uKick, uSnare, uHat, uBeat, uBar, uBeatPhase, uBarPhase, uLowEnergy, uMidEnergy, uHighEnergy, uIntensity and uTravel.

More guides

Turn an MP3 into a video, freeAn MP4 with moving visuals instead of a still image. No watermark.
Make a looping visualizer GIF from a songA waveform, bars or a circle, cut to land on the beat.
What is a visualizer? Visualizer vs. music videoWhat artists release with a song, what each costs, and when to use which.
Spotify Canvas maker: the specs, and a loop from your songThe size, length and rules, and a free 3–8 second loop maker.
A visualizer for your FL Studio track, without ZGameEditorExport the track, get a beat-synced video in a few minutes.
Add an audio visualizer in CapCut, Premiere, DaVinci Resolve or After EffectsLay a visualizer over your footage with one blend mode.

Make your music video

Drop in a song, pick a look and download an MP4. Free, in your browser, nothing to install.

Open the studio