Gating audio signals

Dec 23, 2010 at 4:46am

Gating audio signals

Hello all.

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.


– Pasted Max Patch, click to expand. –
Dec 23, 2010 at 7:06am

try average~ instead of peakamp~
also keep it in audio signal domain

here’s a start– maybe instead of using gate~ have some sort of ramped gain control (using line~ and *~)

– Pasted Max Patch, click to expand. –
Dec 23, 2010 at 8:21am

Hi, you could check the code for the noise gate module in Jamoma (

Dec 23, 2010 at 10:26am

thresh~ is perfect for what you describe. many different ways to hook it up, too(you could put average~ into this instead of thresh~ and try different modes of average~). keeping it completely signal-domain as mentioned before is best for speed/efficiency/accuracy:

– Pasted Max Patch, click to expand. –

hope it helps.
*Never fear, Noob4Life was never here!*

Dec 24, 2010 at 12:26am

As always, thank you very much max community. I will study all your suggestions and hopefully refine my solution.

Merry Xmas!



You must be logged in to reply to this topic.