Polyrhythm Metronome

Hear and see 2 or 3 simultaneous rhythms as a polyrhythm. Visual timeline with numbered beats, precise audio scheduling, and common ratio presets.

Runs in your browser. No data leaves your device.

About this tool

A metronome that plays 2 or 3 rhythm layers at the same time, each dividing the same cycle into a different number of evenly spaced beats (for example 3 against 4). A canvas timeline shows each layer's beats with a sweeping playhead. Useful for musicians practicing polyrhythms.

Features
  • 2 or 3 layers, each set from 2 to 9 beats per cycle
  • Presets: 2:3, 3:4, 3:5, 4:5, 5:7, 2:3:4, 3:4:5, 4:5:7
  • Tempo 30-240 BPM (default 90) via slider, number field (typed freely, applied once in range, clamped on Enter or blur), and -5/-1/+1/+5 buttons; BPM sets the beat rate of layer 1, so one cycle lasts (layer 1 beats / BPM) * 60 seconds
  • Lookahead scheduler: a 25 ms interval schedules clicks up to 100 ms ahead using AudioContext.currentTime
  • Each click is a short sine OscillatorNode (80 ms, exponential gain decay) with a distinct pitch per layer: 1000 Hz, 660 Hz, 440 Hz
  • The first beat of each layer's cycle is accented (gain 0.5 vs 0.3)
  • Master volume 0-100% (default 50%) through a GainNode, adjustable while playing
  • Canvas timeline with one color-coded row per layer (blue, green, orange), numbered beat markers that enlarge when active, and a red playhead
  • Changing beat counts or BPM while playing re-times the layers in place, keeping the playhead's position in the cycle (no restart or gap, even while dragging the tempo slider)
  • Shows the current ratio and cycle length in seconds
How to use it
  1. Pick a preset such as 3 : 4, or choose 2 or 3 layers and set each layer's beat count
  2. Set the tempo in BPM
  3. Press Play to hear and see the layers together
  4. Adjust volume as needed and press Stop when done
Inputs
  • Button, slider, and number-field selections only
Outputs
  • Synthesized click audio and an animated canvas timeline; no export
Limits and notes
  • Requires the Web Audio API
  • Maximum 3 layers and 9 beats per layer; tempo clamped to 30-240 BPM
  • Only synthesized clicks are available
  • Layer count, beat counts, and BPM persist in localStorage; volume does not

Frequently Asked Questions

How does the Polyrhythm Metronome work?

The tool uses a lookahead audio scheduler that runs every 25 milliseconds via setInterval, scheduling Web Audio API oscillator clicks into the future using AudioContext.currentTime. Each rhythm layer divides the bar duration independently (e.g., 3 beats vs 4 beats in the same span), and the visual timeline draws beat markers at their proportional positions along a shared axis.

What is a polyrhythm?

A polyrhythm is two or more rhythms with different beat counts played simultaneously over the same time span. For example, 3-against-2 means one rhythm plays 3 evenly spaced beats while another plays 2 in the same duration.

What polyrhythm ratios can I practice?

Presets include 2:3, 3:4, 3:5, 4:5, 5:7, and the three-layer ratios 2:3:4, 3:4:5, and 4:5:7. You can also build custom ratios with 2 or 3 layers of 2 to 9 beats each. The visual timeline shows exactly where each beat falls to help you internalize the pattern.

Is this useful for musicians?

Yes. Polyrhythm practice improves rhythmic independence, timing accuracy, and the ability to play complex grooves. It is essential for drummers, percussionists, and pianists working with African, Latin, or progressive music.