We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
FFT condensing? (Read 1777 times)
FFT condensing?
Jun 2nd, 2010, 8:21pm
 
Hey all. I just started programming with Processing (but am not new to Java) and had a question about FFT.

Is it possible to look at the averages of the bands. It's a bit confusing to explain so I'll just run a sample below:

Band 0: 3
Band 1: 5
Band 2: 4
Band 3: 9
Band 4: 7
Band 5: 8

So if I want the averages of Band's 0, 1 and 2 It would return 4. But I also want the averages of Band's 3, 4 and 5 (which would be 8.) Is this possible to do and if so how?

I want to do this so that instead of running through the entire FFT using for(int i = 0; i < fft.specSize(); i++) I instead only have say 50 values which are the averages of 0, 1 and 2/3,4 and 5/6,7 and 8/etc.

Thanks in advance!
Re: FFT condensing?
Reply #1 - Jun 2nd, 2010, 9:57pm
 
Found my answer here: http://code.compartmental.net/tools/minim/manual-fft/
Page Index Toggle Pages: 1