Liking cljdoc? Tell your friends :D
Clojure only.

score.euclid

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

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

raw docstring

euclidclj

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

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.
sourceraw docstring

rotate-seqclj

(rotate-seq steps xs)

Rotates sequence by x steps.

Rotates sequence by x steps.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close