I’m trying to find a way of effectively gating the output of a fl.interval trigger but can’t quite work out how I would do this. So for example I’ve got a standard max signal that is either 0 or 1 at any given time. I’d like to have the interval object only producing triggers when the signal is 1 and to stop when it returns to 0. So far I’ve managed to make this, which half works:
----------begin_max5_patcher----------
799.3ocyX90aZCCD.+YpT+NjkmoL6j3Pxj1K6k8YXZZZxj3l5JGajiSKcUiO
6y+IgRoPigkh3AHvwc4te2c9rIOe8USBWHVQZBC9RvOClL4YsjIVYFIS5ELI
rFupfgarJFV2xTzFFsjHCm1ofnUwHJ0SKIt6UX3T8qfe0+6zRqohE2eSLXiU
Kwph6n7peKIEJmgo4y.SCRfHykH2EirWtUMDUMkqiHmA.iFvWo.8O1n.Ai5E
wa0lnCPK.vWbuDWSTD4uIb7Bl0HvVl3fxZyl6T0chF0BrzHLGXE92quxbUeY
p24PN4QctXShPQVY4O7V1LkPq452Iyt+rJb3rZbVpMcFYysQamy1eB504.3G
AsRLuTTuN3yLBuRcmoncznG4A5nLaeRb1.rGctX+Secc.3vn1Pq3X19AF9t0
ZXDbFRiZtsLGmdo.bIgovqOMhy8AXjazwkT2MtsjJTRZUEQdzKogHOnNJxN.
LK6Bh5FQqrf7xZZ3QS97gWQGglaWQCACPd74hbcC7I1dCyFl2NPigm6BsRTU
o2a7ffQ4pCPU9vTMOwhyl2GBpiXK6OjVaEtZcffezMzIdzPmaKvnKlcnz3pq
sD4CX1wO6J0i8jck8zQZzky5PFk+lCzZCAyOrSZvMnpCj9AOAaEGkjFEkiUT
cIeKsRbZc3Lt+NLyKGtSXIjlyd+9Ec+CAj2g.bbXN0GGZNU2HkjMmM1CGBFO
GF4kCgiWaTtW0vrQyg94uQDPuJg8sxmsEl4GXcIXLhfDuPNcuH2MLDub4CDY
SmINeoG9euvFkYScemxce2MnMTRdf1aBxIBK0ivU542sRaHFtJsaGsvZglYd
KsebjgViqaTOwdyfXtdy6s1y4arVxM8mNTC3s3VlZm7BtnfvUEBlKFM+g+X3
7zj4ZrmkhRxAQlOkaDA6dR.8Iio8obo9VXCHqy6cn8AYrob85xzNQ5OHLl3w
SHVyhPPanNOClAMe.fxQIncdlE2JzAX2ysvb1diV.P1HiRa8Bh76BV4I.hI+
BRM.fxifHKSP.LO8+Mo20pZOOhITaVhcqCrma45qzp7OhrNGv.
-----------end_max5_patcher-----------
But the switch is inverted (turns on when 0 and off when 1). I believe this is due to the delay of one frame between the fl.source and the fl.audiotrigger maybe, although I’m not totally sure. Any more elegant suggestions would be appreciated!
I offer you two more alternatives
<pre><code>
----------begin_max5_patcher----------
1126.3oc2Ys0bahCE9Y6eEr7Z85kCBwkcl9ReY+MryNc5fsUHzUF7HDooaml
e6U2H2pri.qlf2GhcPH367ctej+1xEgaZukzEF7mA+SvhEea4hEpkjKrvb8h
v8k2tkV1o1V39dJutiVuivBWoue8N0cZ274eGkOr3gRV4dBmv9DoobCkH2Rj
4dc0+m5ZLDOrBguutQ.jVThVGsJ.VGE7Qy8a5E2lR3JY.tGB91qqap9Dirkq
ePbNV9nIf5qX8WoEO8M01yGdUC3qWh+0CD86ILbk3u6enpqa63aJYxaVDIW6
6KWJ+XkiZsFxWDpmAcCmbqRdCeW.XSIlEZi1wGm1YIoJMFR8UbwZr3y3ixZ3
XrttQ7B+3D3GuspRXisvkTWbHb07Z3Ygx+HNY3yWMZdDy3Uz07xp6BD.cnma
SKjLQKZbrhpY45KFOU8MOYBDH2YghwEikhlX0Xblx2MO5E33KEq5W6YqXiV4
YT3zxIgxTVzz3YiorrYW696B9CJoohesLarM9BSzthRx04jlM9tWwZ2eLqJJ
bZohLtsYyFqpH2FgcSI0JKSmnuKnSCkl75xxS2qwabqFH3hpUiSkSCFcNMC4
Q4Wj4zdXQWyoMvW7aSNsi1dUlO6txPxrjYW2UmHycxDccAHedk39.gsg1t8e
sQxQWcBk8HSYVzbgi5tjarUZZhQjw5YAv4WB0egollUGLNuJ+hhdaq+JK09+
ixunQ6Wn49EZ0Wzni0MzEOqFn32d+cAQ1BxG8.SPLHOvFnPYHMmgyDnWWcUS
I0qjbGgxKs4yVLVW1ARh0gswyHRJ7bK62U2xY0UUDl0L23IxWyA3jOapO001
y1RdHF01APB1O.RzKEgNbTNv7ngCgqhUaY9zR2ZnEBdKbcO5D.PgOGAPyzY3
D.GuyQHYZkStr5bLchsHX5bzSjT8zgz5lm+aFoD.45Ok45jMlW0vomF7fPri
zwqaJ40BK6CaR9iHI2jUsqyHU3.RxC27rQR9y07xHg7AmRGARCVTlr8cYpfy
ijt.8fl37HIxEjR7ggKwE0ozOBdULbE1Mbv4AM3BzQdPc5BPxABNefbIIhOx
gLHsmlR9P24DPd.GWRU4kPqWIbbJB1GdBt.Dj5Cjxc.oheEo3AmBfwdfitTZ
F7g6N3DR9HUAxkHXjWZ2vEyDxKIzcpluWBuvtXmx7PkXmBufreEUhAWR9B+b
VQcS2kGNbCg0Y1sBDwfEetUIX4qTWV2nuT0MeHibS8v9UitGVxDSIvEiHzyT
BV3so5gmB22JnXSesgkB5Ifri+U5yazuQLh4ili4CzdxvwZKXzUk8T9SUCka
2RZ3aaoZQSdfuHHKMISPy0o3jhnX4+UHWBLmDrl7qLZWl34UhhBWCVpyldHm
2isFOS.+aBk19kSKhW0J.vbN0xCtYcDtHJJ+dKkEJjGiAECxxgbP9OhmAmf8
JA52ugv9qV5tQqgkJynToXgKhArRRgHnHc5ZXsWnZNVoD1cnT6bqF2c42W9C
.wJ6Nl.
-----------end_max5_patcher-----------
</code></pre>
I’m possibly going mad here (it’s been a long day) but that seems to open as an empty patch for me?
It’s not empty to me, but I’m using a single object build of FrameLib right now.
Going analog here with a picture for you