how to make a gate turn on and then stay off??
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.
----------begin_max5_patcher---------- 744.3oc2X00aaBCE8YxuBKdNqCarCvdXR62wTUEI3Q8DwTANqoqp429ruFRR iRZrYAlzdAx0XrOmy8CeIuNKHbY8VdaH5KnuiBBdcVP.LjYffN6fv04aWUk2 BSKb4FkpVFN29H4l00aTUbE7Pb2n1gTu7D2txgKykkgn66d7S4pUOJjkOzvW ory.mt3tn4nXFybiD0ec+6n2Hg7z8QT.Ppd4O+DMMzL1aylYtL2QxH4Oqe4d xn3aU1ETxADeVRR9PRN+Tx9iZopU7aXRXhlWWTCHQwfFDYlEhk7wZ.4LZvhv i1TY9ZXSC+ViHuZHpiptrrh6oqVHUenmlDAtXb7.czw3v8KdilhJdyCbY9xJ ..Q2tff7hU67LBnUTJ0R878+ZPQAPl.MChER7OQ31FCbAwgWTx28uI+fvrBD 0aoAuXRzlutCwtyyrl+l3EqpfsEPS8tpQxjHJed2joH3LPJvI1xoj6XdpHj3 IQRx+EuIWmFoq3GgZV2NcBTLbBClXqDGk5clDYZpxTvqxeYmNUGGgvrnIWfh 5tE4cREg8+cHDgBwNYICNBJaRDHMhqaJ1gZq2HKVJTb7zEDYaokgAwAiux4U wm47pabVVY6yBMLIddts4L6CB.ze2AA6xDmxfzl3rtpvtm7vbsCOXECqDxS+ DF.UlweuZniBZV0SqtcBg2iqBdqRHyUB822bXNFu.5.3eTTTvgm266WKJdpV KKcXffYlSbnYYla3rCVG1HQqgNEWtiUWIfok+qx.lmDP63LPN1d7PGALViAA ReG3tLAvtSfdHC4m68GXx3PfENPfSXoCwPPWKwTxQt.vZDX.1IFrXPLfjlB2 NxZDXfogsqxfDOIPDy13nstcGALVi.ARb.+3q4Atg5IyA7PnSFdnt.G1fJSm ZKxQw8FiQIBWfe1vfuMrjQ6MFirKmverm0nsJNl0Ue.5R.rFCFj4JC75XRPz wTpsx.au0Hv.y+500qQOvDRz8yda1eP.0X.W -----------end_max5_patcher-----------
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.