đź’— Estimates BPM from tap events
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
example.js
index.js
package.json

README.md

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)
})