Forums > MaxMSP

Gating audio signals

December 23, 2010 | 4:46 am

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.

Thanks,
Mike

– Pasted Max Patch, click to expand. –

December 23, 2010 | 7:06 am

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. –

December 23, 2010 | 8:21 am

Hi, you could check the code for the noise gate module in Jamoma (www.jamoma.org).


December 23, 2010 | 10:26 am

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!*


December 24, 2010 | 12:26 am

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

Merry Xmas!

M.


Viewing 5 posts - 1 through 5 (of 5 total)