Improved spectrogram scaling