Forums > Jitter

switching between qt.movies, resetting and then delaying repetition

April 18, 2011 | 10:28 am

Hello all,

I’m quite new to Max, and so I’d love to get some feedback on my patch as I think I’m going about it in a very convoluted way.

Ideally, I’m aiming to have 4 videos loaded into my patch, each attached to a ‘trigger’. Depending on which of these 4 ‘triggers’ is activated by an external input (into the ‘r left’ and ‘r right’ objects), the corresponding video is reset to frame 1, played and then the latter section (past frame 2200) is looped. The final thing is that the ability to switch to and/or reset any of the videos needs to delayed for 3seconds before any of the triggers can be activated once again.

I managed to more or less achieve this using the imovie object, ‘switch’ function and a ‘dot.debounce’ object to delay reactivation, but as far as I can tell, the ‘switch’ function doesn’t exist for qt.movie.

– Pasted Max Patch, click to expand. –

The problem the patch above is that the layout of either of input (left or right) allows you to switch between the videos, even though the ‘debounce’ object is delaying either being reset to frame 1. And although I’ve been looking at looppoints, loopstart etc, I’m yet to get my head around that part of the problem.

Thanks for any help,
Andy


April 18, 2011 | 6:47 pm

I’ve just had a bit more of a think and play around with what I had and I’ve come up with this.

It does what I proposed (minus looppoints), and seems to be relatively stable, but again, it looks like it might be an overcomplicated answer to the question.

Thanks in advance to anyone who has a look,
Andy

– Pasted Max Patch, click to expand. –

April 20, 2011 | 12:49 pm

Small update, realised that even though metro might be turned off, the videos would still play, messing up any loopreports. I managed to add [sel] objects and rearrange the lot, so all videos are stopped when another is started. The loopreport works as well now, so I can shorten my videos and maybe even use only one, then use [frame] commands to jump and loop accordingly.

– Pasted Max Patch, click to expand. –

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