by Benoit Wimart
An implementation of the Bjorklund algorithm in JavaScript to generate euclidean arrays of pulses