I'm trying to make my waveform cut off the signal until it reaches a certain power threshold, then keep the gate open until the signal reaches 0.
(excusing the ASCII) it would look something like this:
I would like the threshold to be adjustable.
I'm not very good at maths. Here's what I have so far...