Could you possibly expand upon your comment for those of us who don't spot the wrongness right away?
Otherwise, what was the point of posting your comment?
Otherwise, what was the point of posting your comment?
It reads like the guy did some googling, found some blogs and / or wiki pages, and just banged together enough of what he found until he got an effect he wanted.
(Also I'm not familiar with the cpu inside the arduino, but his code is using floats, and I'm a little skeptical that anything with hardware floats is too slow to do a real time small-ish DFT, especially since he appears to only be sampling at 5k )
For folks that like embedded stuff and audio, check out a Cortex M4-based board like the Teensy 3.1. It has faster floating point, much more speed and memory, and some basic DSP functions like FFT, etc. built in.