how to video fade out over time


    May 16 2007 | 4:49 am
    I have a basic Jitter patch based on a Midi keyboard that triggers QuickTime video clips; each key stroke plays a different clip in the window. I want the video clips to slowly fade out to black after hitting a key on the keyboard about a couple of seconds after the key was hit, a bit like hitting one piano key and listening to the room harmonics slowly fade out into silent.
    How do I do that?
    thanks.

    • May 16 2007 | 5:04 am
      Depends on your patch. You could jit.xfade to black, slowly set the alpha of a video plane to 0 with blend_enable 1, jit.op @op * to 0 to make the video go away etc. etc.
      wes
      On 5/15/07, Doron Altaratz wrote: > > I have a basic Jitter patch based on a Midi keyboard that triggers QuickTime video clips; each key stroke plays a different clip in the window. > I want the video clips to slowly fade out to black after hitting a key on the keyboard about a couple of seconds after the key was hit, a bit like hitting one piano key and listening to the room harmonics slowly fade out into silent. > > How do I do that? > > thanks. > >
    • May 16 2007 | 10:06 am
      Thanks WES, But how do I make the video fade to black over a certain period of time, for example I want to make the video fade out to black gradually exactly 5 seconds after the user clicked the midi key. I want to tell Jitter to perform the fade out of the video automatically by itself, not by control of the user. I guess I'm looking for some kind of an automatic transition system. Thanks D.
    • May 16 2007 | 10:13 am
      have a look at the 'line' or 'bline' objects - they let you trigger a ramp of values from a start to an end point over a specified time.
      -deKam
      > > Thanks WES, > But how do I make the video fade to black over a certain period of > time, for example I want to make the video fade out to black > gradually exactly 5 seconds after the user clicked the midi key. > I want to tell Jitter to perform the fade out of the video > automatically by itself, not by control of the user. > I guess I'm looking for some kind of an automatic transition system. > Thanks > D.
    • May 17 2007 | 12:18 am
      I have a patch on my website that demos how to use a floating num box with line to create a ramp (it's a little more useful than that, but that's the heart of it).
      Go to http://www.hellbender.org and follow the link to "Max/MSP/Jitter Programming". Then, download "ike.gain~"
      It's an audio-based example, but the logic should be clear and you can adapt it to stick with floating-point info.
      You can then attach the output to a brcosa object or whatever object you want for the fade to black.
      Adam