Metronome & Polyrhythm Trainer
Hear steady beats, 3:2 and 4:3 polyrhythms, swing, and muted gap bars, or export a multi-bar WAV click track.
Runs in your browser. Nothing is uploaded.
Tempo, polyrhythm, swing and gap click
25 ms Web Audio lookahead schedules every click on the audio hardware clock, avoiding timer jitter.
Practice presets
Polyrhythm circle, LCM step grid and click player
Exports 8 bars (19.20 s, 44.1 kHz 16-bit stereo PCM) as metronome-4-4-eighth-100bpm-8bars.wav.
Timing, LCM pulse positions and WAV readout
Exact pulse spacing in milliseconds, least-common-multiple hit cells, gap-click cycle, and stereo WAV file size.
- 8 pulses / bar 4/4 meter & subdivision Eighth notes · 50% swing
- 600.0 ms / beat Beat & sub-pulse spacing Sub-pulse 300.0 ms · Bar 2.40 s
- Always audible Gap click & tempo ramp Steady 100 BPM · Crisp Woodblock
- 8 bars · 19.2 s WAV click-track file 3.23 MB · 16-bit stereo WAV
How to use
- Press Start metronome to hear the 100 BPM eighth-note pocket, or tap Tap tempo along with a song.
- Pick a one-click preset such as 3 Against 2 Polyrhythm, 4 Against 3 Polyrhythm, or Jazz Ride Swing (67%).
- Set Voice A (1 to 12 beats) and Voice B (2 to 9) to map any polyrhythm onto its least-common-multiple grid.
- Choose Audible bars and Muted gap bars (such as 3 on, 1 muted) to check whether you rush during silence.
- Turn on Speed up (+1 to +10 BPM every 2 to 16 bars) when building picking, drumming, or scale speed.
- Select Download click-track WAV to export 4 to 64 stereo bars for a DAW session or offline phone practice.
Worked example
Input
A 4 against 3 polyrhythm at 120 BPM with 3 audible bars followed by 1 muted gap bar.
Settings
Tempo 120 BPM, Voice A = 4, Voice B = 3, Audible bars = 3, Muted gap bars = 1, Export = 8 bars.
Result
A 12-pulse LCM bar (2000 ms): Voice A hits 0, 500, 1000, 1500 ms and Voice B hits 0, 666.7, 1333.3 ms.
Counting 12 equal 166.7 ms sub-pulses places Voice A every 3 cells and Voice B every 4 cells without guessing.
N_grid = lcm(A, B); Δt_A = 60,000 ÷ BPM ms; Δt_B = (A × Δt_A) ÷ B ms
On bar 4 and bar 8, the click drops to exact zero amplitude so Beat 1 reveals any rushing or dragging.
How it works
25 ms Web Audio hardware-clock lookahead
Plain browser timers drift by 10 to 40 ms whenever the main thread paints frames or scrolls (Web.dev Audio Scheduling).
Every 25 ms, the scheduler queues upcoming hits 100 ms ahead on AudioContext.currentTime for sample-level timing (MDN BaseAudioContext.currentTime).
Least-common-multiple polyrhythms and swing
Two rhythms of A and B beats share a smallest common grid of lcm(A, B) equal sub-pulses per bar.
Voice A triggers every lcm(A, B) ÷ A cells while Voice B triggers every lcm(A, B) ÷ B cells, panned slightly apart.
When Voice B is Off, swing shifts off-beat eighths from 50% (straight) up to 67% (triplet feel) or 75%.
Offline stereo PCM click-track WAV export
Exporting renders 4 to 64 bars directly into 44.1 kHz 16-bit stereo PCM audio (W3C Web Audio API 1.1).
Muted gap-click bars contain exact zero-amplitude samples from bar start to bar end so loops line up cleanly in any DAW.
Sources checked 30 November 2026.
FAQ
How do I count 3:2 and 4:3 polyrhythms by hand?
For 3:2, count 6 equal pulses (1, 3, 5 against 1, 4). For 4:3, count 12 equal pulses (1, 4, 7, 10 against 1, 5, 9).
Why practice with muted gap-click bars?
Playing 3 bars with clicks and 1 silent bar shifts timekeeping to your internal pulse. When Beat 1 returns, you hear right away if you sped up.
What swing percentage gives a classic jazz ride feel?
Set Swing feel to 67% on eighth notes so the upbeat lands on the third triplet pulse of each beat. Medium-up tempos often sit near 60% to 64%.
Can I program full drum grooves or calculate delay times for my BPM?
Yes. Build kick, snare, and Euclidean loops in Drum Pattern Maker, or convert your tempo into echo and reverb times in BPM & Delay Calculator.
How do I slow down a fast recording to learn a tricky passage?
Open the song in Audio Speed & Pitch Changer to slow it to 0.5× without shifting pitch, then rehearse here.
Does this tool use my microphone or send data anywhere?
No. Click synthesis, Web Audio scheduling, tap tempo math, and WAV encoding run in memory inside your browser.
Step by step: how to count 3:2 and 4:3 polyrhythms using a least-common-multiple grid.
Updated