Bjork
This is my library, there are many like it, but this one is mine.
So, yes: Yet another JavaScript implementation of E. Bjorklund's algorithm.
Usage
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('') );
Further reading
- The Theory of Rep-Rate Pattern Generation in the SNS Timing System
- The Euclidean Algorithm Generates Traditional Musical Rhythms
License
See LICENSE