Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thbar/playground


https://github.com/thbar/playground

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

I wanted to see if it's possible to sync a music track with a given BPM (beats per minute) with a three.js animation.

It works (currently on Chrome) - here are the key points:

* `audio.currentTime` returns the audio position in seconds
* I use that and the precomputed BPM to guess the current beat index
* three.js is used for rendering
* the jQuery easing functions are used to bounce the cubes

Follow the author on Twitter! [thibaut_barrere](http://www.twitter.com/thibaut_barrere)

License: MIT for the code, Creative Commons Attribution-NonCommercial-ShareAlike 3.0 for the music.