ojack / hydra-standalone

Standalone version of hydra running in Electron
GNU Affero General Public License v3.0
26 stars 13 forks source link

Improvements/clock #2

Closed diegovdc closed 5 years ago

diegovdc commented 5 years ago

Adds the following methods:

clock.wrapAt(modulo)
clock.foldAt(modulo)
clock.wrapBetween(bottom, top)
clock.foldBetween(bottom, top)
clock.wrapSeq(numberArray)
clock.foldSeq(numberArray)

addCb(callback) //on tick
resetCbs(callbackArray) // defaults to []

And adds the key bpm to constructor to set the tick interval in bpms.