Spectrogram and envelope plots working