StaticeuclideanCalculates the Euclidean rhythm (distributing k pulses as evenly as possible over n steps). Popular in African, Latin, and electronic music (e.g., E(3,8) is the Tresillo).
StaticgenerateGenerates a polyrhythm between multiple voices.
Array of pulse counts (e.g., [3, 4] for 3-against-4)
The total duration of the cycle in whole notes (default 1)
An array of voices, each containing an array of timestamps (fractions of totalDuration) where pulses occur.
Polyrhythm generation and Euclidean rhythm distribution.