Spectrum analysis