As part of my work on
this project, I needed to improve the beat detection on OGG/MP3 music, as it was easy to add audio cues to MOD tracks for this, but we have a lesser library of source material there.
So, I added a FFT function to my plugin and managed to get a first effort FFT spectrum. The function can take a param for the amount of bands and it returns peaks for each band. Unfortunately, I have to call the function for every band because I can't pass data back to AppGameKit memblocks or even return a string, so it has to be one band at a time for now.
I think this is a good first effort and will suffice for isolating certain frequencies which I was initially interested in.
The top boxes are stereo peaks, which was all I was working with on
this. I should be able to get some more fidelity now.