I figured out how to do it to some extent, but it would take me forever as I have to do +20 soundfiles of +5 mins as it requires the song to be playing. Is there a way to do it without playing the song?
Here's what I have, using Minim
- void draw()
- {
- // first perform a forward fft on one of song's buffers
- // I'm using the mix buffer
- // but you can use any one you like
- fft.forward(song.mix);
- ellipse(x,height/2,2,2);
- ellipse(x,height/2 + song.mix.get(0) *500,2,2);
- x+=0.04;
- if(x > width) x = 0;
- }