Swing is what separates a stiff, machine-quantized beat from one that breathes. It works by shifting the off-beat eighth notes later, creating a long-short lilt. This calculator turns any swing ratio into the exact millisecond timings you need to dial into a sampler, sequencer or delay.
How it works
A pair of eighth notes together fills one quarter-note beat. Swing divides that beat
unevenly between the on-beat (down) eighth and the off-beat (and) eighth, according to a
long-to-short ratio. With L long parts and S short parts and a beat of 60000 / BPM
milliseconds:
on-beat eighth = beat · L / (L + S)
off-beat eighth = beat · S / (L + S)
swing percent = 100 · L / (L + S)
A straight feel is 1:1 (50 percent). Hard triplet swing is 2:1 (66.7 percent), where the off-beat lands on the final triplet of the beat. The off-beat’s shift from a straight placement is the on-beat duration minus half the beat.
Tips and example
At 120 BPM the beat is 500 ms. A 2:1 triplet swing makes the on-beat eighth 333 ms and the off-beat 167 ms, pushing the off-beat 83 ms later than a straight 250 ms split — an unmistakable jazzy bounce. A gentler 3:2 ratio (60 percent) shifts it only 50 ms.
- Lighter swing (54–62 percent) adds groove without sounding overtly shuffled.
- Match the feel to genre and tempo; fast tempos usually want less swing.
- Apply the off-beat shift value directly when nudging notes in a piano roll.
All timing maths runs locally in your browser.