An open API service indexing awesome lists of open source software.

https://github.com/synox/reverse-metronome


https://github.com/synox/reverse-metronome

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Simple reverse metronome

You tap, tap, tap and the metronome will continue with the same tempo.

Try the [demo](https://synox.github.io/reverse-metronome/index.html).

# Tech Background

It is realized using a setInterval() and [howler.js](https://www.npmjs.com/package/howler).

# TODO

- The native JS Timer is not gread and can run out of sync. There are different ways to improve this:
* https://www.html5rocks.com/en/tutorials/audio/scheduling/
* https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
* https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame can help.

- Improve animation. Example: http://deejdesigns.com/experiment/metronome/