Processing Forum
my purpose is to find the the time that every maxband lasts.fft.forward(player.mix);//FFT ON THE BUFFER
for(int i=0;i<spectrum.length;i++)
{
spectrum[i] = (fft.getBand(i));//FILL THE ARRAY WITH THE SPECTRUM
line(i,height,i,height-fft.getBand(i));//DRAW THE SPECTRUM
if ((fft.getBand(i)>fft.getBand(maximum))&&fft.getBand(i)>120)
{
maximum=i;
currMaxBand = fft.getBand(maxim);
count=millis()-start;
}
}
start = millis();