Stable triggering system with sfplay~
I’m trying to have a .wav file trigger some lights.
Therefore I created a coll. To keep it simple, I manually added a couple of cue points in the coll.
Now, an sfplay~ file position outlet is fed into the coll (through snapshot~).
It kinda works, but now, after expanding my MAX patch, sometimes a cue is just ‘forgotten’: it just doesn’t seem to come out of the coll, because MAX is busy doing other stuff!
Does anybody have any suggestions how to improve this?
Or maybe a complete alternative?
Sure thing, here it is.
So in this example I’ve already rounded off the snapshot~ output to 100′s, just to make it more stable.
----------begin_max5_patcher---------- 647.3ocyVErbZCCD8ryL4evi6URFKYarIbpm5sdIGKcXD1Bi5XjbsjaIMSy2 dkVaCDvTLPBNGXVX0h129zaWomu8FKmYhUToi8C1ey1x5YsGKvmwiUiCKmkj UwYDIDnCm9awre3LndMEckB7K4jb4Bg5Eaj65UYIvZ5+vcH+0d4kKEkpLpB1 QTi64BtRx9CEbhu2sweUrpmxoUH0YdlfnS52aBHmnhWv3oSKnwppXPg95MvF i.SjG7C26c27mLYiSVB6oymKXjrswGi2.OL37u2diwpMCtXlpPTxSzrT6zj2 aFMcLFBCjhWfwLLnOXnYkJkf2FMDDcLZXuxcFgmdjR1ejoJ8BiZJ1cK4WUWn yttVRkRRJc+i9wSJlvKn4YjmdTQTT6MZfLFmFqUFPf31nD70RY3GZXFeWjwf FBMOd3OFMO4Z1ipaelLYbq5F2qV6CvNd9Cuz1myWlo2lYzhVmhbHsB9joAlV QNnScW0CTBflr.2dgQNfpIVjkYKUjB0Wz4+Q5OKo7XZaL2gl63e55mAa8oKL mGtpgyGeATWiWI4Wzjo5JRmkoDkpfoG1VcWu0F1yxgpkPP06V4ol0OK1WIRS yZkUCO4o4FY2+mzpt3BE3+NOL+fO3YtYL9K1XaWaTqMguYRIIKkaNwa+acn0 zCtwCEAslgitf652VeUitO8U.OUzQshGqyF1czPSVq6AFqw3NGBU4Gt5a2Wg BUgYgcNZjhxh3lL27tR6spjDpTw3DES+vhshx60QsfkjPg.Vy5KYI4BsrqFI 6A1AmC3LTwQwle+fMuNQb39Ab3t.tndAaQcAZlGhzCXa2zd.vYXWz0GbQcFb eXYt9QxE1oV0KFZFGZy+.bPQOJA -----------end_max5_patcher-----------
Maybe a change inserted between round & coll is another option.
Personnaly, I would rather compare sfplay~‘s current time to the next cue id with a > 0. operator.