home/ atoms/ euclidean-rhythm-in-live-coding

Euclidean rhythm notation is a first-class idiom in TidalCycles/Strudel, compressing a groove to two integers

In Strudel/Tidal the mini-notation (k,n) inside a sound call generates a Euclidean rhythm with k onsets spread across n steps. The parameters themselves are patterns, so (<3 5>,8) alternates between E(3,8) and E(5,8) every cycle. This makes Euclidean rhythms a go-to live-coding idiom: a single pair of numbers produces a groove the audience hears as complex, and changing one number live produces an immediate, audible shift. The pattern-of-parameters extension means the underlying rhythm morphs in real time without the coder having to specify each hit.

Examples

In Strudel: s("bd(3,8)") — tresillo kick. s("hh(<3 5>,8)") — hats alternate between 3 and 5 hits per 8-step cycle.

Assessment

In the Strudel demo in the podcast, McLean types note("c5").s("folkHarp") with (3,8). Modify the example so the number of hits morphs between 3 and 5 every cycle. Then predict how the rhythm will sound different on even versus odd cycles.

“ukian algorithm is really popular for live coding because you just need to give two numbers the number of sounds and the number of steps and it just fills them in for you”
corpus · why-we-bleep-045-algorave-alex-mclean-podcast · chunk 5