Euclidean rhythms

Drive 2-3 percussion voices from Bjorklund Euclidean rhythms, each with its own step and pulse count.

ready

node examples/euclidean.js 120 16 3,5,7 20s
tempo=<bpm>
step tempo
steps=<n>
steps per cycle
pulses=<n,n,n>
pulses per voice, comma-separated
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 20s)
Graph
Euclidean patterns → percussion voices → Destination
Input
Tempo, steps, pulses per voice
Output
Generative rhythm

This is a Euclidean rhythm generator built on Bjorklund's algorithm: two or three percussion voices each get their own evenly distributed step and pulse count, and the interlocking result is a generative rhythm. Try it in the browser, or render the same pattern from the Node CLI.