Stable triggering system with sfplay~

Woody's icon

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

Woody's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

pdelges's icon

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