Stable triggering system with sfplay~

Sep 30, 2012 at 7:55pm

Stable triggering system with sfplay~

Hi all,

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?

thanks
Woody

#64556
Sep 30, 2012 at 8:18pm

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.

– Pasted Max Patch, click to expand. –
#232929
Oct 1, 2012 at 8:51am

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.

p

#232930

You must be logged in to reply to this topic.