https://github.com/synox/reverse-metronome
https://github.com/synox/reverse-metronome
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/synox/reverse-metronome
- Owner: synox
- Created: 2016-12-06T22:18:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T21:26:42.000Z (about 9 years ago)
- Last Synced: 2025-04-10T19:46:25.654Z (about 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/