@lokua/euclidean-sequence
v1.0.2
Published
Euclidean pattern generator
Downloads
14
Maintainers
Readme
@lokua/euclidean-sequence
See:
http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf
Other implementations:
- https://github.com/pingdynasty/EuclideanSequencer
- https://github.com/brianhouse/bjorklund/blob/master/init.py
Install
npm i @lokua/euclidean-sequence
Usage
eucideanSequence(fill, length[, offset = 0])
const eucideanSequence = require('@lokua/euclidean-sequence')
eucideanSequence(3, 8) // => [1, 0, 0, 1, 0, 0, 1, 0]