Forums > Jitter

metro problem

May 7, 2008 | 6:27 am

Hi, all,

I’m working on a patch that uses two variations on the same video, one controlled by a metro that is activated only when it receives a certain amplitude from an audio track, and the other that is running on a normal metro 40. The audio-variable movie is chromakeyed so that the normal movie shows through it in certain areas.

My problem is this:
Because jit.chromakey is controlled by the chromakeyed video’s metro (the audio-variable movie), the normal video is also subject to the starting and stopping. I don’t want this. I want the normal video to play normally, and the audio video to play in the sporadic, glitchy fashion that it does.

Apologies for the convoluted wording, I can post the patch if necessary.
Thanks for any and all advise!
-Anna


May 7, 2008 | 6:02 pm

send the left input into a jit.matrix before the chromakey input, then trigger bang that matrix every time you receive an input to the right input.

like so:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 99 176 55 196617 jit.matrix;
#P flonum 341 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 341 80 42 196617 rate $1;
#P message 401 60 83 196617 read dishes.mov;
#P toggle 266 60 15 0;
#P newex 266 80 46 196617 metro 2;
#P newex 266 117 103 196617 jit.qt.movie 320 240;
#B color 5;
#P flonum 174 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 174 80 42 196617 rate $1;
#P message 223 41 80 196617 read dozer.mov;
#P toggle 99 60 15 0;
#P newex 99 80 58 196617 metro 500;
#P newex 99 117 103 196617 jit.qt.movie 320 240;
#B color 5;
#P user jit.pwindow 98 258 82 62 0 1 0 0 1 0;
#P newex 266 142 27 196617 t b l;
#P newex 99 209 194 196617 jit.chromakey @color 0. 1. 1. 1. @tol 0.1;
#P connect 1 1 0 1;
#P connect 0 0 2 0;
#P connect 15 0 0 0;
#P fasten 1 0 15 0 271 170 104 170;
#P connect 3 0 15 0;
#P connect 11 0 10 0;
#P fasten 10 0 9 0 271 110 271 110;
#P fasten 4 0 3 0 104 110 104 110;
#P connect 5 0 4 0;
#P fasten 12 0 9 0 406 107 271 107;
#P fasten 6 0 3 0 228 107 104 107;
#P connect 9 0 1 0;
#P fasten 13 0 9 0 346 107 271 107;
#P connect 14 0 13 0;
#P connect 8 0 7 0;
#P fasten 7 0 3 0 179 107 104 107;
#P window clipboard copycount 16;


May 7, 2008 | 6:04 pm

should note, fwiw, probably more efficient to use the "frame" message to the jit.qt.movie to achieve the jerky effect.


May 7, 2008 | 6:36 pm

Thanks for all the responses, I really appreciate it! That patch really helped, though I’m confused about one thing. When sending out a tbl, what is the list doing? I’m not familiar with that method, I’d appreciate any explanations.

Thanks again!
Anna


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