Forums > MaxMSP

how to make a gate turn on and then stay off??

December 22, 2011 | 9:53 pm

Hi guys, i’m trying to record in by detecting transients and want to record only once. This has flaws but you get the idea. Feel free to tweak it and send it back. Basically I need the gate to turn on at the instance of a transient, and turn off shortly after and STAY off. So no more recording.

– Pasted Max Patch, click to expand. –

December 22, 2011 | 10:22 pm

I’m not at my max machine, but the answer is probably just [trigger].

Supposing you want to sample one integer, for example, you might do something like [t 0 i 1]. The rightmost outlet goes into the left inlet of your [gate] to open it. The middle outlet goes into the right inlet of your [gate] to be gated. Then the left outlet goes into the left inlet of your [gate] again, to immediately close it.

That’s going to happen every time a value comes in, so you’ll want to limit its input to only the transients somehow.


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