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
left and right are positive integers up to 1000.
Use the units shown.
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 ↗Left rhythm positions (s): 0, 0.666667, 1.333333
Left rhythm positions (s): 0, 0.75, 1.5, 2.25