0.4.0 • Published 9 years ago

beatmath v0.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

beatmath

module is a function that requires two arguments

  • @Number - measure length in beats
  • @Array - list of beats

It returns a function that takes one argument, a @Number, the beat count

var beatmath = require('beatmath')

var beats = beatmath(4, [1,3])
// this will return a function 
// which will return true on the 1st and 3rd
// zero indexed = false

beats(1) // true
beats(2) // false
beats(3) // true
beats(5) // true
npm install beatmath
0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago