Problem with sel and jit.qt.movie

todernst's icon

Hey Max fans,

I'm trying to route the time and duration of a movie to a sel object so that I can start crossfading at a specific percentage from the end of a movie. I'm using the duration to determine the starting point for the crossfade and using the current time to trigger a sel object based on that number. It seems really straightforward, yet the sel does not send out a bang when the time reaches the number set by the duration. Does anyone know what I'm doing wrong or have a better way of doing this? A very simplified version of the patch is pasted below.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks!

Christopher Dobrian's icon

Your odds of the reported time hitting exactly the duration of your movie are extremely low (say, roughly 5% likelihood). So instead of testing for an exact match with sel, you should use [>=] to [change] to [sel 1].

Your problem is addressed in this thread:stop playback at a specific time
including some examples of what I described above.