Synchronize your animation with sound!
I’ve made some experiment with sound beat detect engine. You can make nice sound visualization using it.
Engine algorithm is based on spectrum bandwidth statistical analysis.
See, how to use it:
import beat.BeatEngine;
import beat.BeatEvent;
var sound:Sound = new YourSound();
sound.play();
var engine:BeatEngine = new BeatEngine();
engine.addEventListener(BeatEvent.LOW_BEAT, lowHandler);
engine.addEventListener(BeatEvent.MED_BEAT, medHandler);
engine.addEventListener(BeatEvent.HI_BEAT, hiHandler);
function lowHandler(e:BeatEvent):void {
doSemethingLow(e.power);//action for low frequency beat detection
}
function medHandler(e:BeatEvent):void {
doSemethingMedium(e.power); //action for medium frequency beat detection
}
function hiHandler(e:BeatEvent):void {
doSemethingHigh(e.power); //action for high frequency beat detection
}
It is only 3kb!
Cube animation is not included.

55 Purchases
13 Comments