At 2/4/09 05:12 PM, trig1 wrote: Mess with computeSpectrum(). It's only in AS3, but it's pretty fucking awesome. The only thing thats annoying is that it only gives off byte arrays of the current time, so you can't know when a beat is going to come, just that it already has happened. You can make some pretty cool displays with it, if not a rhythm game.
Yeah, that's the main problem with my game, i can get a good visualization for the speed and rythm of any mp3, but it's impossible to get it right. The only way i've thought of is my playing the mp3 you want at a low, barely audible volume, then multiply any values you get off it. Then play the full volume mp3 5 seconds later so the data from the quiet stream coincides with the actual music.
Here's an old demo if anyone wants a look.