Polyrhythm generator
Set a count for each layer and press Play. Layer 1 is the reference pulse, and every other layer divides the same cycle into its own number of equal parts. The rings show one layer each, the dot at the top is the shared downbeat, and the hand passes each dot as it sounds.
The presets cover the ratios most people come for: 3:2, 4:3, 5:4, 7:4 and the three-layer 5:3:2. Space starts and stops playback. Changing a count or the tempo while it plays crossfades into the new rhythm at the same point in the cycle.
Reading a ratio
A ratio such as 3:2 is spoken “three against two”. The second number is the pulse you count, the first is the one laid over it. Here the pulse you count goes on layer 1, so the 3:2 preset sets layer 1 to 2 and layer 2 to 3.
The tempo follows the same rule. At 120 BPM with layer 1 on 4, the cycle lasts 2 seconds. A layer of 5 in that cycle sounds every 400 ms, which is 150 BPM, and a layer of 7 every 285.7 ms. The hint under each slider shows the spacing in milliseconds.
Polyrhythm vs polymeter
Two rhythms that share a cycle and divide it differently form a polyrhythm. The layers meet on every downbeat, and nowhere else unless their counts share a factor: 6 against 4 also meets halfway round.
Polymeter is a different thing. A bar of 5 and a bar of 4 at the same note value drift apart and realign after 20 notes. If that is what you need, a step sequencer with per-track lengths is the right instrument.
Euclidean mode
Each layer becomes k hits spread over n steps, written E(k,n), with all layers still sharing one cycle in time. A layer with 8 steps and a layer with 12 steps both last one cycle, so their steps are different lengths.
The patterns come from Bjorklund’s algorithm, the construction Godfried Toussaint describes in “The Euclidean Algorithm Generates Traditional Musical Rhythms” (2005). His paper matches the outputs to rhythms in use around the world:
| Pattern | Steps | Known as |
|---|---|---|
E(3,8) |
x..x..x. |
Cuban tresillo |
E(5,8) |
x.xx.xx. |
Cuban cinquillo |
E(5,16) |
x..x..x..x..x... |
Bossa nova |
E(7,12) |
x.xx.x.xx.x. |
A West African bell pattern |
Rotation shifts every hit later by whole steps. E(3,8) rotated by 1 is .x..x..x: the same spacing, started from a different point. Hollow dots on a ring are the silent steps.
Sounds, mutes and the accent
Six short voices are available: wood block, clave, cowbell, rim click, kick and hi-hat. Give each layer a different one, since two layers on the same sound are hard to pull apart by ear. Mute a layer to hear the others without it, or to check that you can still feel where it falls.
The downbeat of each layer is accented by default. Turn the accent off to hear the composite rhythm without the bar line marked, which is a harder and more honest test once the pattern feels familiar.
WAV loop
The file holds a whole number of cycles. One cycle is rounded to a whole number of samples and every hit is placed inside it, so the length is exact and a sampler or DAW can loop it with no crossfade.
Tails are wrapped. A cowbell struck late in the cycle is still ringing at the cycle end, and that ringing continues at the start of the file. The first pass through the loop therefore begins with a faint tail from a hit that has not been played yet. Use two or more cycles and trim to the second one if that matters for a one-shot.
The file is 48 kHz, 16-bit, mono. The loudest sample of the cycle is set to -3 dBFS, so stacking four layers on the downbeat never clips.
MIDI export
The MIDI file is format 1: a tempo track, then one track per unmuted layer on channel 10 with General MIDI percussion notes (wood block 77, clave 75, cowbell 56, side stick 37, kick 36, closed hi-hat 42). Every hit has velocity 100, and accented downbeats are 127.
Odd ratios do not fit the usual 480 ticks per quarter note: a seventh of a beat is 68.57 ticks. The file instead uses the smallest resolution on which every hit is a whole tick, so the import is exact and nothing needs quantising. The value is shown under the controls. Only Euclidean layers with several unrelated odd step counts, such as 27, 29 and 31 together, exceed what the format can store; those are rounded to 960 ticks per quarter and the page says so.
Practising with it
Mute the layer you are about to play and keep the other as the reference. Start with the tempo low enough that the composite rhythm is countable, for 3:2 the familiar “one, two-and, three”, then raise it until the two pulses separate into independent lines.