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. –
Copy all of the following text. Then, in Max, select New From Clipboard.
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.