tap-tempo

Estimates BPM from tap events

npm install tap-tempo
4 downloads in the last month

tap-tempo

Estimates BPM from tap events.

Install

$ npm install tap-tempo

Example

var tapTempo = require('tap-tempo')()

// simulate tap at 120bpm
setTimeout(function(){
  tapTempo.tap()
}, 500)

tapTempo.on('tempo', function(tempo){
  console.log('estimated tempo:', tempo)
})
npm loves you