Forums > Jitter

Jitter Delay

April 22, 2006 | 11:22 pm

This seems sort of basic, but I still haven’t found an object to do
this. I would like to delay a certain signal in Jitter before it goes
into jit.glue. I tried to find something that would delay or stretch
a signal coming from jit.grab, but I can’t seem to find anything that
works. Any help would be great.

Thanks,
Keith


April 22, 2006 | 11:31 pm

This patch has a delay in it. It uses a 3D buffer.

best,
wes

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 179 303 34 196617 % 20;
#P newex 179 282 31 196617 + 20;
#P newex 169 360 76 196617 jit.matrix buff;
#P number 247 252 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 128 120 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 128 141 48 196617 xfade $1;
#P user jit.pwindow 52 367 82 62 0 1 0 0 1 0;
#P user jit.pwindow 52 283 82 62 0 1 0 0 1 0;
#P user jit.pwindow 52 199 82 62 0 1 0 0 1 0;
#P newex 181 412 41 196617 jit.thin;
#P number 237 225 35 9 0 20 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 166 339 27 196617 t b i;
#P newex 189 250 27 196617 – 0;
#P message 207 345 207 196617 srcdimstart 0 0 $1 , srcdimend 319 239 $1;
#P newex 180 385 204 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1;
#N vpatcher 20 74 620 474;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 383 84 55 196617 buffer size;
#B color 1;
#P comment 252 122 30 196617 dims;
#B color 1;
#P comment 393 209 30 196617 sync;
#B color 1;
#P newex 375 187 34 196617 % 20;
#N comlet sync;
#P outlet 375 208 15 0;
#P newex 439 101 27 196617 – 1;
#P message 439 83 20 196617 20;
#P newex 280 59 45 196617 loadbang;
#P newex 317 139 27 196617 – 1;
#P message 317 121 26 196617 240;
#P message 280 121 26 196617 320;
#P newex 280 139 27 196617 – 1;
#P newex 243 164 123 196617 pak dstdimend 319 239 0;
#P newex 135 164 105 196617 pak dstdimstart 0 0 0;
#P newex 104 96 27 196617 t b l;
#N comlet video in;
#P inlet 104 77 15 0;
#P newex 375 166 31 196617 + 20;
#N counter 0 0 20;
#X flags 0 0;
#P newobj 375 121 75 196617 counter 0 0 20;
#P newex 121 189 230 196617 jit.matrix buff 4 char 302 240 20 @usedstdim 1;
#P connect 3 0 4 0;
#P fasten 5 0 0 0 140 185 126 185;
#P fasten 6 0 0 0 248 185 126 185;
#P connect 4 1 0 0;
#P fasten 1 0 5 3 380 160 233 160;
#P connect 11 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 6 1;
#P fasten 11 0 9 0 285 113 322 113;
#P connect 9 0 10 0;
#P connect 10 0 6 2;
#P fasten 1 0 6 3 380 160 359 160;
#P fasten 4 0 1 0 109 117 380 117;
#P connect 1 0 2 0;
#P connect 2 0 15 0;
#P connect 15 0 14 0;
#P fasten 11 0 12 0 285 79 444 79;
#P connect 12 0 13 0;
#P connect 13 0 1 4;
#P pop;
#P newobj 188 223 36 196617 p buff;
#P newex 188 196 49 196617 jit.xfade;
#P flonum 387 104 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 387 125 42 196617 rate $1;
#P message 251 125 28 196617 read;
#P message 321 125 27 196617 stop;
#P message 287 125 31 196617 start;
#P flonum 230 104 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 188 104 15 0;
#P newex 188 124 52 196617 metro 30;
#P message 351 125 31 196617 clear;
#P newex 188 151 103 196617 jit.qt.movie 320 240;
#P connect 14 0 25 0;
#P connect 14 0 23 0;
#P connect 16 0 14 1;
#P connect 11 0 14 0;
#P connect 26 0 15 0;
#P connect 25 0 26 0;
#P connect 24 0 12 0;
#P connect 15 0 24 0;
#P connect 21 0 10 0;
#P connect 22 0 21 0;
#P connect 10 0 19 0;
#P connect 10 0 11 0;
#P connect 17 0 20 0;
#P fasten 17 0 10 1 380 426 490 245 352 176;
#P connect 0 0 18 0;
#P connect 0 0 10 0;
#P connect 12 0 17 0;
#P connect 15 1 13 0;
#P connect 13 0 12 0;
#P connect 9 0 8 0;
#P connect 4 0 2 1;
#P fasten 2 0 0 0 193 149 193 149;
#P fasten 1 0 0 0 356 146 193 146;
#P fasten 5 0 0 0 292 146 193 146;
#P fasten 6 0 0 0 326 146 193 146;
#P fasten 7 0 0 0 256 146 193 146;
#P fasten 8 0 0 0 392 146 193 146;
#P connect 3 0 2 0;
#P window clipboard copycount 27;


April 22, 2006 | 11:55 pm

I’m sorry, wes. I changed the matrix to fit jit.glue, but there is no
delay. Do I also need to change the pak info as well? Finally, the
sync part, how does that fit in? I’m going through jit.tiffany first
as well; how does that affect things?

Thanks so much,
Keith


April 23, 2006 | 12:31 am

look at the jit.matrixset helpfile. You can use a ‘buffer’ of
matrixes as a delay line as well, it might suit your needs.

v a d e //

http://www.vade.info
abstrakt.vade.info


April 23, 2006 | 1:21 am

Maybe this patch will make more sense. If you’re new to jitter, a
good exercise to learn the finer points of the jit.matrix object would
be to analyze what’s going on here.

best,
wes

#P bpatcher 757 59 165 64 -26 -36 xray.about.pat 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 4;
#P comment 446 141 165 196618 sends out the location of the last frame
written in the 3dbuffer , specified in terms of the 3rd dimension;
#B frgb 133 131 115;
#P window linecount 1;
#P comment 433 127 87 196618 sync signal;
#B frgb 133 131 115;
#P comment 433 112 62 196618 output:;
#B frgb 133 131 115;
#P window setfont "Sans Serif" 9.;
#P comment 6 64 120 196617 try it with just the bang;
#B color 1;
#P button 7 100 15 0;
#P comment 127 215 98 196617 3d buffer reference;
#B color 12;
#P comment 63 172 61 196617 sync signal;
#B color 12;
#P window setfont "Sans Serif" 10.;
#P comment 319 75 190 196618 based on a patch by Jeremy Bernstein;
#B frgb 178 180 167;
#P comment 319 202 87 196618 6: buffer name;
#B frgb 133 131 115;
#P comment 319 187 87 196618 5: matrix dim3;
#B frgb 133 131 115;
#P comment 319 172 87 196618 4: matrix dim2;
#B frgb 133 131 115;
#P comment 319 157 87 196618 3: matrix dim1;
#B frgb 133 131 115;
#P comment 319 142 87 196618 2: matrix type;
#B frgb 133 131 115;
#P window linecount 3;
#P comment 631 150 255 196618 note: argument 6 is for giving the
3dbuffer a unique name so that more than one 3dbuffer object can be
used without conflict.;
#B frgb 178 180 167;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 677 215 85 196617 bgcolor 50 58 81;
#P window setfont "Sans Serif" 10.;
#P comment 319 127 87 196618 1: matrix planes;
#B frgb 133 131 115;
#P comment 319 112 62 196618 arguments:;
#B frgb 133 131 115;
#P comment 319 94 100 196618 takes any 2D input;
#B frgb 133 131 115;
#P comment 319 61 178 196618 multitap time delay circular buffer;
#B frgb 178 180 167;
#P window setfont "Sans Serif" 20.;
#P comment 316 37 165 196628 xray.jit.3dbuffer;
#B frgb 184 201 229;
#P user jit.pwindow 859 528 202 152 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P newex 860 495 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 9 @srcdimend 319 239 9;
#P window linecount 1;
#P newex 860 474 45 196617 r buffer;
#P user jit.pwindow 650 528 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 651 495 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 8 @srcdimend 319 239 8;
#P window linecount 1;
#P newex 651 474 45 196617 r buffer;
#P user jit.pwindow 442 528 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 443 495 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 7 @srcdimend 319 239 7;
#P window linecount 1;
#P newex 443 474 45 196617 r buffer;
#P user jit.pwindow 234 528 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 235 495 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 6 @srcdimend 319 239 6;
#P window linecount 1;
#P newex 235 474 45 196617 r buffer;
#P user jit.pwindow 26 528 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 27 495 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 5 @srcdimend 319 239 5;
#P window linecount 1;
#P newex 27 474 45 196617 r buffer;
#P user jit.pwindow 859 311 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 860 278 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 4 @srcdimend 319 239 4;
#P window linecount 1;
#P newex 860 257 45 196617 r buffer;
#P user jit.pwindow 650 311 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 651 278 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 3 @srcdimend 319 239 3;
#P window linecount 1;
#P newex 651 257 45 196617 r buffer;
#P user jit.pwindow 442 311 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 443 278 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 2 @srcdimend 319 239 2;
#P window linecount 1;
#P newex 443 257 45 196617 r buffer;
#P user jit.pwindow 234 311 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 235 278 205 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 1 @srcdimend 319 239 1;
#P window linecount 1;
#P newex 235 257 45 196617 r buffer;
#P user jit.pwindow 26 311 202 152 0 1 0 0 1 0;
#P window linecount 2;
#P newex 27 278 204 196617 jit.matrix 4 char 320 240 1 @usesrcdim 1
@srcdimstart 0 0 0 @srcdimend 319 239 0;
#P window linecount 1;
#P newex 27 257 45 196617 r buffer;
#P newex 27 235 45 196617 s buffer;
#P newex 27 188 20 196617 t b;
#P newex 27 212 93 196617 jit.matrix thisbuff;
#P number 27 171 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 30 89 839 412;
#P window setfont "Sans Serif" 9.;
#P comment 582 87 55 196617 buffer size;
#B color 1;
#P comment 451 125 30 196617 dims;
#B color 1;
#P comment 592 212 30 196617 sync;
#B color 1;
#P hidden newex 199 43 85 196617 bgcolor 50 58 81;
#P window setfont "Sans Serif" 10.;
#P window linecount 4;
#P comment 147 143 165 196618 sends out the location of the last frame
written in the 3dbuffer , specified in terms of the 3rd dimension;
#B frgb 133 131 115;
#P window linecount 1;
#P comment 134 129 87 196618 sync signal;
#B frgb 133 131 115;
#P comment 134 114 62 196618 output:;
#B frgb 133 131 115;
#P comment 20 77 190 196618 based on a patch by Jeremy Bernstein;
#B frgb 178 180 167;
#P comment 20 204 87 196618 6: buffer name;
#B frgb 133 131 115;
#P comment 20 189 87 196618 5: matrix dim3;
#B frgb 133 131 115;
#P comment 20 174 87 196618 4: matrix dim2;
#B frgb 133 131 115;
#P comment 20 159 87 196618 3: matrix dim1;
#B frgb 133 131 115;
#P comment 20 144 87 196618 2: matrix type;
#B frgb 133 131 115;
#P comment 20 129 87 196618 1: matrix planes;
#B frgb 133 131 115;
#P comment 20 114 62 196618 arguments:;
#B frgb 133 131 115;
#P comment 20 96 100 196618 takes any 2D input;
#B frgb 133 131 115;
#P comment 20 63 178 196618 multitap time delay circular buffer;
#B frgb 178 180 167;
#P window setfont "Sans Serif" 20.;
#P comment 17 39 165 196628 xray.jit.3dbuffer;
#B frgb 184 201 229;
#P window setfont "Sans Serif" 9.;
#P newex 574 190 34 196617 % 10;
#N comlet sync;
#P outlet 574 211 15 0;
#P newex 638 104 27 196617 – 1;
#P message 638 86 20 196617 10;
#P newex 479 62 45 196617 loadbang;
#P newex 516 142 27 196617 – 1;
#P message 516 124 26 196617 240;
#P message 479 124 26 196617 320;
#P newex 479 142 27 196617 – 1;
#P newex 442 167 123 196617 pak dstdimend 319 239 0;
#P newex 334 167 105 196617 pak dstdimstart 0 0 0;
#P newex 303 99 27 196617 t b l;
#N comlet video in;
#P inlet 303 80 15 0;
#P newex 574 169 31 196617 + 10;
#N counter 0 0 20;
#X flags 0 0;
#P newobj 574 124 75 196617 counter 0 0 20;
#P newex 320 192 247 196617 jit.matrix thisbuff 4 char 320 240 10 @usedstdim 1;
#P connect 3 0 4 0;
#P fasten 5 0 0 0 339 188 325 188;
#P fasten 6 0 0 0 447 188 325 188;
#P connect 4 1 0 0;
#P fasten 1 0 5 3 579 163 432 163;
#P connect 11 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 6 1;
#P fasten 11 0 9 0 484 116 521 116;
#P connect 9 0 10 0;
#P connect 10 0 6 2;
#P fasten 1 0 6 3 579 163 558 163;
#P fasten 4 0 1 0 308 120 579 120;
#P connect 1 0 2 0;
#P connect 2 0 15 0;
#P connect 15 0 14 0;
#P fasten 11 0 12 0 484 82 643 82;
#P connect 12 0 13 0;
#P connect 13 0 1 4;
#P pop;
#P newobj 27 148 46 196617 p buffer;
#B color 5;
#P flonum 213 80 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 213 99 42 196617 rate $1;
#P message 82 99 28 196617 read;
#B color 9;
#P message 147 99 27 196617 stop;
#B color 2;
#P message 113 99 31 196617 start;
#B color 2;
#P flonum 68 80 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 27 80 15 0;
#P newex 27 99 51 196617 metro 30;
#P message 177 99 31 196617 clear;
#P newex 27 124 103 196617 jit.qt.movie 320 240;
#P user panel 24 145 52 23;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 24 209 100 23;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 5 0 4 0;
#P fasten 4 0 2 0 32 123 32 123;
#P fasten 3 0 2 0 182 120 32 120;
#P fasten 7 0 2 0 118 120 32 120;
#P fasten 8 0 2 0 152 120 32 120;
#P fasten 9 0 2 0 87 120 32 120;
#P fasten 10 0 2 0 218 120 32 120;
#P fasten 62 0 2 0 12 120 32 120;
#P connect 2 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 15 0;
#P connect 15 0 14 0;
#P connect 14 0 16 0;
#P connect 17 0 18 0;
#P connect 18 0 19 0;
#P connect 32 0 33 0;
#P connect 33 0 34 0;
#P connect 6 0 4 1;
#P connect 11 0 10 0;
#P connect 20 0 21 0;
#P connect 21 0 22 0;
#P connect 35 0 36 0;
#P connect 36 0 37 0;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P connect 38 0 39 0;
#P connect 39 0 40 0;
#P connect 26 0 27 0;
#P connect 27 0 28 0;
#P connect 41 0 42 0;
#P connect 42 0 43 0;
#P connect 29 0 30 0;
#P connect 30 0 31 0;
#P connect 44 0 45 0;
#P connect 45 0 46 0;
#P window clipboard copycount 68;


April 23, 2006 | 2:04 am

Here’s a very simple way of doing it.
Study and learn how to change from 120 frames, to as many as you’d like.
You can also look at jit.matrixset for more complicated techniques of storing and playing back by frames.
And the previous examples here are very rich with possibility.

max v2;
#N vpatcher 116 31 1105 704;
#P origin 15 144;
#P outlet 35 352 15 0;
#P inlet 115 32 15 0;
#P inlet 35 37 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 307 205 23 9109513 120;
#P newex 344 172 73 9109513 receive bigbang;
#P newex 71 236 129 9109513 expr (($i1+$i2)-$i3)%$i4;
#P newex 35 306 215 9109513 jit.matrix 4 char 320 240 @usesrcdim 1 @adapt 0;
#P message 71 271 182 9109513 srcdimstart 0 0 $1 , srcdimend 319 239 $1;
#N counter 0 0 119;
#X flags 0 0;
#P newobj 54 102 73 9109513 counter 0 0 119;
#P message 47 159 182 9109513 dstdimstart 0 0 $1 , dstdimend 319 239 $1;
#P newex 35 204 233 9109513 jit.matrix 4 char 320 240 120 @usedstdim 1 @interp 0;
#P newex 35 63 29 9109513 t l b;
#P comment 0 21 30 9109513 Delay;
#B color 10;
#P connect 10 0 1 0;
#P connect 3 0 2 0;
#P connect 1 0 2 0;
#P lcolor 13;
#P connect 2 0 6 0;
#P lcolor 13;
#P connect 5 0 6 0;
#P connect 6 0 12 0;
#P connect 4 0 3 0;
#P connect 1 1 4 0;
#P connect 4 0 7 0;
#P connect 7 0 5 0;
#P connect 9 0 7 1;
#P connect 11 0 7 2;
#P connect 9 0 7 3;
#P connect 8 0 9 0;
#P pop;


April 23, 2006 | 2:45 am

All of these are great; thank you all.

Keith


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