Function for generating Euclidean rhythm patterns. Based on 'The Euclidean Algorithm Generates Traditional Musical Rhythms' by Godfried Toussaint and Lisp code by Ruin and Wesen: https://web.archive.org/web/20131114124454/http://ruinwesen.com/blog?id=216
(euclid hits steps)
(euclid hits steps rotation)
Generates Euclidean Beat pattern given number of hits per total steps. Returns a sequence of 1s and 0s where 1 is a hit and 0 is silent.
(rotate-seq steps xs)
Rotates sequence by x steps.