Forums > Jitter

Fade to white

February 13, 2006 | 3:39 pm

Hi, I’m using the following patch to create a video feedback that fade to white. However, the fade is much too fast. I’d like it to last around 60 seconds. Does anyone has a clue how to make the fade slower?

Best regards,

max v2;
#N vpatcher 184 251 927 778;
#P origin 2 33;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 185 65 48 196617 loadbang;
#P newex 53 195 55 196617 jit.matrix;
#B color 5;
#P message 185 90 31 196617 0.02;
#P flonum 185 115 66 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 131 135 64 196617 jit.op @op +;
#P newex 33 168 108 196617 jit.op @op * @val 0.5;
#P newex 313 169 43 196617 r temps;
#P inlet 33 112 15 0;
#P outlet 33 227 15 0;
#P connect 1 0 3 0;
#P connect 3 0 0 0;
#P connect 3 0 7 0;
#P connect 7 0 4 0;
#P connect 4 0 3 1;
#P connect 8 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 1;
#P pop;


February 13, 2006 | 4:05 pm

If you don’t want feedback to blow up on you, then you need a delay.
TapTools has a delay object. You can use a 3dbuffer a la
xray.jit.3dbuffer, uoi can use a matrixset…

wes


February 13, 2006 | 4:14 pm

use jit.op + instead of jit.op * to ADD the feedback to the input instead of
multiplying it, then control the feedback path with a * so you only add a
really small part of the feedback matrix. The speed at which you fade to
white will also depend on your framerate of course.

hth, T_


February 13, 2006 | 4:15 pm

does this help?

#P window setfont Geneva 9.;
#P window linecount 1;
#P comment 382 107 38 196617 to img;
#P comment 382 85 47 196617 to white;
#P flonum 363 128 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 363 151 47 196617 * 1000.;
#N vpatcher 20 74 346 378;
#N comlet onoff;
#P inlet 19 48 15 0;
#P window setfont Geneva 9.;
#P window linecount 1;
#P message 194 198 27 196617 stop;
#P message 155 197 32 196617 start;
#P newex 1 249 35 196617 s mov;
#P newex 60 250 44 196617 r movie;
#P newex 71 192 65 196617 prepend read;
#B color 5;
#P user umenu 158 111 100 196647 1 64 127 1;
#X add :patches:media:dozer.mov;
#X add :patches:media:blading.mov;
#X add :patches:media:bball.mov;
#X add :patches:media:countdown15.mov;
#X add :patches:media:rca.mov;
#X add :patches:media:ozone.mov;
#X add :patches:media:sunset.jpg;
#X add :patches:media:DSCF0367.JPG;
#X add :patches:media:DSCF0372.JPG;
#X add :patches:media:chilis.jpg;
#X add :patches:media:grid.gif;
#P inlet 158 51 15 0;
#P outlet 42 250 15 0;
#P newex 94 47 45 196617 loadbang;
#P message 61 169 28 196617 read;
#P toggle 40 77 15 0;
#P newex 48 106 45 196617 metro 1;
#P newex 40 223 165 196617 jit.qt.movie 320 240 @autostart 1;
#B color 5;
#P connect 0 0 10 0;
#P connect 13 0 2 0;
#P connect 1 0 0 0;
#P connect 12 0 0 0;
#P connect 11 0 0 0;
#P connect 8 0 0 0;
#P fasten 3 0 0 0 66 188 45 188;
#P connect 9 0 5 0;
#P connect 0 0 5 0;
#P connect 4 0 1 0;
#P connect 2 0 1 0;
#P connect 7 1 8 0;
#P connect 4 0 7 0;
#P connect 6 0 7 0;
#P pop 1;
#P newobj 121 182 37 196617 p mov;
#P message 367 107 14 196617 0;
#P message 367 85 14 196617 1;
#P newex 321 171 72 196617 pack 1. 1000.;
#P newex 317 196 40 196617 line 0.;
#P message 165 273 70 196617 size 320 240;
#P user jit.pwindow 133 298 322 242 0 1 0 0 1 0;
#P newex 113 255 55 196617 jit.matrix;
#B color 5;
#P flonum 245 175 66 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 191 195 102 196617 jit.op @op * @val 0.;
#P newex 93 228 64 196617 jit.op @op +;
#P inlet 93 172 15 0;
#P outlet 93 287 15 0;
#P comment 402 128 100 196617 time in secs for fade;
#P connect 5 0 4 1;
#P connect 6 0 4 0;
#P connect 4 0 3 1;
#P connect 15 0 14 0;
#P connect 14 0 10 1;
#P connect 10 0 9 0;
#P connect 11 0 10 0;
#P connect 12 0 10 0;
#P connect 13 0 3 0;
#P connect 9 0 5 0;
#P connect 3 0 1 0;
#P connect 3 0 6 0;
#P connect 3 0 7 0;
#P connect 8 0 7 0;
#P connect 2 0 3 0;
#P window clipboard copycount 18;


February 13, 2006 | 7:06 pm

Thanks for the answer. However, I want a continuous feedback the way a delay works with audio. My patch is already working except that the fade is too fast. Probably slowing the FPS rate would work but since I don’t use any QT movie, I don’t know how to slow the FPS rate.


February 13, 2006 | 7:09 pm

did you not see my post about creating a delay line???

wes


February 13, 2006 | 7:25 pm

If you mean that you want to set up an Infinite Impulse Response filter,
this is how you would do it:

#P window setfont "Sans Serif" 9.;
#P flonum 208 337 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 154 355 64 196617 jit.op @op +;
#P flonum 209 297 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 154 316 65 196617 jit.op @op *;
#P outlet 100 477 15 0;
#P inlet 100 336 15 0;
#P newex 100 383 64 196617 jit.op @op +;
#P connect 0 0 2 0;
#P fasten 0 0 3 0 105 419 261 419 261 278 159 278;
#P connect 5 0 0 1;
#P connect 1 0 0 0;
#P connect 6 0 5 1;
#P connect 3 0 5 0;
#P connect 4 0 3 1;
#P window clipboard copycount 7;

The jit.op @op * gives you the ability to scale the feedback to prevent
it from blowing out too fast.

Is this what you would like to accomplish? If not, please explain more.

Cheers,
Andrew B.


February 14, 2006 | 6:04 am

On Feb 13, 2006, at 11:14 AM, Thijs Koerselman wrote:

> use jit.op + instead of jit.op * to ADD the feedback to the input
> instead of multiplying it, then control the feedback path with a *
> so you only add a really small part of the feedback matrix. The
> speed at which you fade to white will also depend on your framerate
> of course.

You can always just use jit.xfade as well, which has the benefit of
being easy and not framerate/feedback dependent. Just move from 0. to
1. over an arbitrary period of time, with the second input being the
white matrix.

- John


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