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:


(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.