Forums > Jitter

Video fade slider patch needed!

February 15, 2011 | 10:50 am

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! :-)

February 20, 2011 | 9:59 pm

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.

February 21, 2011 | 1:12 pm

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

February 22, 2011 | 1:56 am

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

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

Forums > Jitter