jit.xfade help

aashnaei's icon

I made this program which depends on your position a movie will play
I want to add cross fade so when you move and another movie wants to play... it will fade to that movie rather than just stop and play the other movie
I dont know how to use the jit.xfade to automatically fade between each video when i move from one place to another

this is my patch

1510.finalproject5.maxpat
Max Patch
seejayjames's icon

try the [line] object with a floating-point argument, from 0. to 1. like this:

0., 1. 1000 (message to [line])

will give an output from 0.0 to 1.0 over 1000 msec. Run that through "xfade $1" and into jit.xfade.

line is a good one to know well by experimenting. you can of course use it for many many things...