Polyrhythm alignment calculator

left and right are positive integers up to 1000.

Your inputs

Use the units shown.

Left rhythm positions (s)
0, 0.666667, 1.333333
Right rhythm positions (s)
0, 0.5, 1, 1.5
Shared event positions (s)
0

Your calculation
How is this calculated?

left_seconds (seconds array): i * cycle_seconds / left for i = 0..left-1.

right_seconds (seconds array): j * cycle_seconds / right for j = 0..right-1.

shared_seconds (seconds array): k * cycle_seconds / gcd(left,right) for k = 0..gcd(left,right)-1, the positions where both rhythms coincide.

left and right are positive integers up to 1000. Positions start at zero and exclude the end of the cycle. Shared points are derived exactly from the integer rhythm counts (multiples of cycle/gcd(left,right)).

Ableton Learning Music: beat and tempo ↗

Try an example

Worked example

Left rhythm positions (s): 0, 0.666667, 1.333333

Inputs
  • Left rhythm event count (1-1000): 3
  • Right rhythm event count (1-1000): 4
  • Cycle length (seconds): 2

Compare inputs

Left rhythm positions (s): 0, 0.75, 1.5, 2.25

Inputs
  • Left rhythm event count (1-1000): 4
  • Right rhythm event count (1-1000): 6
  • Cycle length (seconds): 3
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.