Spectrum analysis

Hia all I'm looking to build an Arduino controlled stereo amp, inside it it would be nice to included a spectrum analyiser, does anyone have some code to read the input from a stereo (or possibly mono) output via the analogue pins of the board? I'm flummoxed.

Regards /me

You can find some related projects in google using search terms like: avr spectrum analyzer fft

But I am not sure there is code available that makes it easy to do this on Arduino.

good luck!