← All guides

How the preview finds your beat and your hook

Every cut you see on the template wall is placed on a beat the page measured from your audio a few seconds earlier. Knowing what that measurement listens for, and where it is blind, tells you when to trust the three suggested highlights and when to overrule them with a single tap.

Updated
Sample keyframe: a low-angle side profile under magenta backlight from one of the templates

Key points

  • Tempo is estimated from sudden rises in loudness across the middle ninety seconds, searched between 70 and 180 BPM with a gentle pull toward 120.
  • A highlight always spans 32 beats, one full cycle of a template's cutting pattern, so its length in seconds depends on how fast your track is.
  • The three suggestions are the loudest non-overlapping windows, each nudged a fraction of a beat so the first cut sits on a real hit.
  • Octave mistakes are the common failure; free-time intros, live tempo drift and beatless ambient tracks are the hard cases no toggle can rescue.

What the analyzer listens for

A drum hit, a strummed chord or a plucked bass note all share one property: the sound gets louder very quickly. The page slices your track into frames about a hundredth of a second long, measures the energy of each frame, and keeps only the moments where energy jumps up compared with the frame before. Those jumps, called onsets, are the raw material for everything that follows.

Onsetsstep 1

Sharp rises in loudness. Kicks, snares and hard consonants in a vocal produce strong ones; pads and reverb tails produce almost none.

Repetitionstep 2

The page compares the onset pattern with shifted copies of itself. A delay where the pattern matches well is a candidate beat length.

A preferencestep 3

Candidates between 70 and 180 BPM are scored, with a mild bias toward 120, the most common tempo region in popular music.

Phasestep 4

Knowing the beat length is not enough. The page slides a grid of beats until it lines up with the most onsets, which fixes where beat one falls.

Only the middle ninety seconds are used for the tempo search. Intros and outros are often sparse, faded or played in free time, and the middle of a song is where the groove is most settled. If your track changes tempo partway through, the reading reflects that central section.

The analyzer also reports how confident it is. When the best candidate barely stands out from the rest, the page doesn't pretend: it shows "no clear beat found, using 120 BPM" and hides the tempo switch, because doubling a guess would only produce a different guess.

Why every highlight is 32 beats long

Templates don't store cut points in seconds. They store a recipe in beats, such as four beats on this shot, then two, then a run of single-beat flashes. One full pass through a recipe is 32 beats, which is eight bars of four. That is the length every highlight uses, so whichever template you pick plays its pattern exactly once from first cut to last.

70 BPM

32 beats last about 27 seconds. Slow ballads get roomy clips with long takes.

96 BPM

About 20 seconds, a comfortable length for a vertical short.

120 BPM

Exactly 16 seconds. The sample song on the homepage runs at this tempo.

170 BPM

About 11 seconds. Fast drum and bass or punk gets a punchy, compact window.

Counting in beats is what lets one template fit both a slow ballad and a fast rap track. A Phonk template that cuts on every beat feels relentless at 140 BPM and merely busy at 80; in both cases, though, the cuts land with the music rather than drifting against it.

How the three suggestions are ranked

With a beat grid in place, the page slides a 32-beat window across the whole song, one beat at a time, and measures the average loudness inside each position. The ranking is simple on purpose, so you can predict it.

  1. Score every window

    Each possible 32-beat window gets a loudness score from the measured energy.

  2. Take the loudest
    The top score becomes Highlight A.
  3. Skip overlaps

    Windows that overlap a chosen highlight are ignored, so B and C come from other parts of the song.

  4. Snap the start

    Each window is nudged by up to half a beat so its first cut sits on an actual hit rather than a gap.

Loudness is a decent stand-in for the hook in most modern productions, because choruses and drops are usually mixed to hit hardest. It is a stand-in, though. A song that peaks during an instrumental solo will put the solo first, and a quiet, intimate chorus can lose to a crashing bridge. The reason line in the "Finds your hook for you" section names the start time and says the pick is based on measured loudness, so you always know why a window was chosen.

When the tempo comes out doubled or halved

The most common error in automatic tempo estimation is the octave error: the answer is off by a factor of two. Software sees a steady stream of hi-hats at 170 per minute and a kick and snare at 85, and both are genuinely present in the audio. Listeners resolve it instantly by feel; algorithms need a tie-breaker, and the 120 BPM preference is that tie-breaker.

Symptom: frantic cuts

Shots change on every hi-hat and the wall looks like it is strobing. The reading is double the felt tempo. Press Half time.

Symptom: lazy cuts

Shots hold through two kicks before changing and the energy sags. The reading is half the felt tempo. Press Double time.

Bounds

The switch keeps the tempo between 50 and 220 BPM, so a double press can't run away into nonsense.

Highlights follow

Changing the tempo resizes the 32-beat window, so the three suggestions are recalculated for the new grid.

There is a subtler error the toggle doesn't fix: a beat grid shifted by half a bar. The page sets its phase once for the whole song, so on tracks where the kick lands on beats one and three, the first cut can begin on beat three. The cuts are still on beats, just counted from a different starting point, which most viewers never notice in a short clip.

Songs that are hard to cut on the beat

Some music doesn't give an onset detector much to hold onto. Knowing which kinds helps you decide whether to trust the preview or treat it as a rough sketch.

Free time

Rubato piano, a cappella and spoken intros stretch and compress time. There is no fixed grid to find.

Live drift

A band recorded without a click track speeds up in the chorus. One tempo for the whole song will slowly slide out of step.

Beatless ambience

Pads, drones and washes of reverb produce almost no onsets. Expect the 120 BPM fallback.

Tempo changes

A song that switches from 90 to 140 halfway gets a reading from its middle and a grid that fits only that part.

For these tracks the preview is still useful for judging a template's look and pacing, as long as you read the cut timing loosely. A slow Lo-fi or R&B template with long holds is also more forgiving than a hard-cut one, because a long shot that starts a little early is far less visible than eight quick cuts that all miss.

Questions

Why does my 85 BPM song show up as 170 BPM?

Both readings fit the audio. At 170 the detector is counting eighth notes, which fall on the same drum hits as the quarter notes at 85, so the faster grid can match the hits just as well or slightly better. You know which one you feel; press Half time and the cuts will land on that pulse.

Can I move a highlight to a different start time?

No. You choose between the three suggested windows. If none of them covers the part you want, trim the track to that section before adding it, as the guide on audio files describes, and the analyzer will have only that stretch to choose from.

Does the analyzer know where the chorus is?

No. It measures loudness and rhythmic attacks, not song structure or lyrics, and the reason line in the “Finds your hook for you” section says so. In most commercial mixes the loudest stretch is a chorus or a drop, but a big instrumental break or a guitar solo can outrank it.

Sources

  1. Beat detection, Wikipedia
  2. Tempo, Wikipedia
  3. Hook (music), Wikipedia