# Euclidean Rhythms **Track:** Audio-Visual & Generative Music — Advanced Creative Coding — proposed (50) **Framework / surface:** Tone.js **Level:** Medium **Prerequisites:** Sequencing with Transport **In one line:** The Bjorklund algorithm producing evenly distributed polyrhythms. ## Theory, aesthetics & inspiration Godfried Toussaint's 2005 paper "The Euclidean Algorithm Generates Traditional Musical Rhythms" observed that distributing k onsets as evenly as possible across n steps reproduces rhythms found across world music — the Cuban tresillo and West African bell patterns among them. The distribution is computed by Bjorklund's algorithm, repurposed from a neutron-source timing problem, which recursively balances groups until the onsets are maximally spread. Sweeping k and n moves through a family of interlocking patterns, and layering several yields shifting polyrhythm. The aesthetic is the deep groove of evenness — figures that feel both mathematically inevitable and unmistakably danceable, ancient logic surfacing from a few integers.