Dumping FFT results quicker than track playback
in
Core Library Questions
•
2 years ago
Hi Guys!
I'm coding a game strongly based around audio data of users mp3s.
I'm looking to dump the results of the FFT along with the metadata of the mp3 to a text file and usign this for the level data and probably uploading them to a server for consistency for online hiscores.
I'm hoping you might be able to give some advice as to how to do this QUICKER than the actual playback speed.
Audiosurf is a great example of this, once you've picked your song it generates the level by analysing the audio but the player doesn't have to wait for the whole song to finish, it scans it relatively quickly.
I've had a look over the latest audio library updates and I think I'll be using Minim again for this but I've got no idea how to do it quicker than the playback speed.
Maybe using a larger int for 'timesize' and skipping through the audio file? (also the player should obviously not 'hear' this going on)
Hope you guys might have some advice and pointers on this
Cheers
-greg
I'm coding a game strongly based around audio data of users mp3s.
I'm looking to dump the results of the FFT along with the metadata of the mp3 to a text file and usign this for the level data and probably uploading them to a server for consistency for online hiscores.
I'm hoping you might be able to give some advice as to how to do this QUICKER than the actual playback speed.
Audiosurf is a great example of this, once you've picked your song it generates the level by analysing the audio but the player doesn't have to wait for the whole song to finish, it scans it relatively quickly.
I've had a look over the latest audio library updates and I think I'll be using Minim again for this but I've got no idea how to do it quicker than the playback speed.
Maybe using a larger int for 'timesize' and skipping through the audio file? (also the player should obviously not 'hear' this going on)
Hope you guys might have some advice and pointers on this
Cheers
-greg
1