Linux Audio Spectrum Analyser
If you just need a library, GStreamer might be what you need
Otherwhise these look pretty good:
- Sonic Visualiser
- Spek
- Spectrum3D
You can use Audacity. Read this.
And please clarify what you mean with Array? If you want it programmatically, then you can read this.