Adding new function to measure signals in a spectrogram.