Euclidean Rhythm Generator
Spread k onsets as evenly as possible over n steps — the Euclidean rhythms behind countless drum patterns and live-coding beats. Set the hits, the steps and a rotation, and copy the pattern straight into TidalCycles or Strudel.
E(3,8) is the Cuban tresillo; E(5,8) the cinquillo; E(2,5), E(4,9) and E(5,16) turn up in music worldwide. See the TidalCycles and Strudel cheat sheets for the (k,n) syntax.