Implement automatic scaling of the waveform, based on filtered RMS (root-mean-square) value