Media player and Crossfade

Based on what I’ve learned at Mutek Workshop – Movie playback techniques
derivative.ca/Events/2012/MUTEKWorkshop/

I’m trying to develop a basic media player that:

  • current movie are always looping
  • there is a button for load each movie via script
  • when the button is clicked, there is a crossfade transition between current video and the video I want to load
  • after transition, the old video is unloaded

Could you help me on these:

What are the steps so I trigger with the button nor only the load of the new movie, but the transition animation in one second and after that, the unload of the old video?

I think crossfade will happen in a TOP blending two inputs: movie 1 and movie 2.
Maybe I have to swap inputs everytime I click a button, so the new video is always the second input and the old is always the first input that fades out. Am I thinking right? How can I do that?

Thank you!

  1. You can set the loop in the MovieIn’s
  2. You should look into DATs, that’s what they’re all about. Specific one you’ll probably use is CHOP Execute DAT.
  3. Again, DATs, have the button change a value in a Constant CHOP connected to a Lag CHOP → Null, then export that Null to a Cross TOP.
  4. More scripting, have a CHOP Execute DAT on the Null (after the Lag CHOP) and have it unload movie 1 when the value is set to 1 (hypothetically meaning it’s crossed over to movie 2), and have it unload movie 2 when the value is 0 (meaning it’s crossed over to movie 1 again).

Hope that helps. If you’re in 088, Python is the way to go, and if you’re in 077, look up Tscript.

thank you, elburz. I will try your solution.