Video fade slider patch needed!

tiptop's icon

Hi all,

I'm a real newbie to MSP, and would be very very grateful of any help.

I'm trying to build a patch in Jitter that allows the user to fade between two movies. The idea is that there is a slider at the bottom of the screen which controls the fade. If the slider is over hard left, then one video will be playing. If it's over hard right, then the other video will be playing. If it's in the middle then there will be a blend of both files. I also need it to work for the audio.

Any ideas?

Thank you in adavance! :-)

seejayjames's icon

you'll need jit.xfade for the video, and two spigot~ objects for the audio (jit.xfade won't crossfade audio). Have the movies @vol 0. so QT doesn't play back the sound. from spigot~ you can use audio fading (gainfader~, matrix~) and tie that to the video fader. might need [scale] in there for the right values.

Kurt Ralske's icon

If you don't need to further process the audio in MSP--you just want to control its level--then I think you could get by without the spigot~ business. It should work to set the "vol $1" parameter for each jit.qt.movie to control its audio volume in QuickTime. The fader should make one volume level would go up as the other goes down. The [scale] or [!-] objects would be helpful to get the correct values.

seejayjames's icon

Kurt is right, I forgot you can just use the QT volume and scale that. Doh!