I'm trying to figure out how to effectively build a gate. More explicitly, every time my input audio reaches an amplitude higher than a certain number, the gate opens to allow the signal through. My current patch pasted here seems to do that, but it is slow, inaccurate, and ineffective. I've searched the forums to try to find a solution to similar questions but I am still stuck. If anyone would mind looking at my patch I would really appreciate it.