beatSpectrum function

Computes a beat spectrum