Forums > MaxMSP

Stable triggering system with sfplay~

Sep 30 2012 | 7:55 pm

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?


Sep 30 2012 | 8:18 pm

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. --

Oct 01 2012 | 8:51 am

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.


Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP