How to design a simpler filter (or filter-like circuit) with a varying time constant dependent on what kind of waveform is ...