The Patchbay_

Polyrhythm Calculator

See how two cross-rhythms line up. Enter an x-against-y polyrhythm (like 3:4) and a tempo to get each voice's timing in milliseconds, the combined grid, and a visual of where the hits fall.

The green row is voice A, the purple row voice B; a cycle is one full repeat of the pattern.

How it works

A polyrhythm plays two different subdivisions over the same span of time. The cycle repeats when both line up again, which is the lowest common multiple of the two numbers.

cycle length = LCM(a, b) subdivisions

a-side plays every  LCM / a  subdivisions
b-side plays every  LCM / b  subdivisions

If the two numbers share no factors, the cycle is simply a × b.

Worked example

A 3:4 polyrhythm — three against four:

5:4 gives a 20-subdivision cycle. 6:4 reduces to 3:2, because 6 and 4 share a factor — LCM is 12, but the pattern is the simpler one.

In practice

Related

Euclidean rhythm generatorNote values referenceMetronome