Traditional music rhythms (Euclidean/Bjorklung algorithm)
npm install bjorkThis is my library, there are many like it, but this one is mine.
So, yes: Yet another JavaScript implementation of E. Bjorklund's algorithm.
``js
var bjork = require('bjork')
,to_ex_dot = function(i){ return i? 'x': '.'; }
;
console.log( bjork(3,8) );
console.log( bjork(3,8).map(to_ex_dot).join('') );
``
* The Theory of Rep-Rate Pattern Generation in the SNS Timing System
* The Euclidean Algorithm Generates Traditional Musical Rhythms
See LICENSE