better way of nesting metrices than glue?

Jan 31, 2008 at 11:58pm

better way of nesting metrices than glue?

Hello,
I’m new to Jitter and I was wondering if there is a better approach to ‘nesting’ metrices within a larger matrix than using jit.glue.

I would like to have a matrix made up of ’tiles’. these tiles would scale up and down according to luma value of imput movie (which will be pixelated, so that number of input cells will match the number of tiles in my main matrix).

I have made an example using jit.glue with just a 3×3 matrix, but ideally I would like it to be much larger, and jit.glue just seems like incredibly inefficient way of doing this.

I would really appreciate any suggestions.
below is my example.
Karolina

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 771 547 40 196617 s cell9;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 771 515 84 196617 patcher setZoom;
#P newex 674 548 40 196617 s cell8;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 674 516 84 196617 patcher setZoom;
#P newex 578 548 40 196617 s cell7;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 578 516 84 196617 patcher setZoom;
#P newex 482 547 40 196617 s cell6;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 482 515 84 196617 patcher setZoom;
#P newex 388 547 40 196617 s cell5;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 3 0 0 0 137 179 109 179;
#P connect 1 0 0 0;
#P fasten 2 0 0 0 98 179 109 179;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 388 515 84 196617 patcher setZoom;
#P newex 295 547 40 196617 s cell4;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 295 515 84 196617 patcher setZoom;
#P newex 204 546 40 196617 s cell3;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 3 0 0 0 137 179 109 179;
#P connect 1 0 0 0;
#P fasten 2 0 0 0 98 179 109 179;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 204 514 84 196617 patcher setZoom;
#P newex 145 97 44 196617 s image;
#P newex 188 136 40 196617 r cell6;
#P newex 213 157 40 196617 r cell7;
#P newex 237 179 40 196617 r cell8;
#P newex 257 200 40 196617 r cell9;
#P newex 134 199 40 196617 r cell5;
#P newex 100 180 40 196617 r cell4;
#P newex 79 161 40 196617 r cell3;
#P newex 48 122 40 196617 r cell1;
#P newex 27 540 40 196617 s cell1;
#P newex 61 142 40 196617 r cell2;
#P newex 113 545 40 196617 s cell2;
#N vpatcher 18 589 618 989;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 54 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 40 174 109 174;
#P fasten 2 0 0 0 98 179 109 179;
#P connect 1 0 0 0;
#P fasten 3 0 0 0 137 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 113 513 84 196617 patcher setZoom;
#N vpatcher 56 245 656 645;
#P window setfont “Sans Serif” 9.;
#P newex 13 60 44 196617 r image;
#P outlet 104 236 15 0;
#P inlet 93 30 15 0;
#P flonum 93 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 93 60 46 196617 / 255.;
#P newex 60 140 27 196617 t;
#P message 132 162 33 196617 clear;
#P message 93 117 60 196617 zoom_y $1;
#P message 104 143 60 196617 zoom_x $1;
#P newex 104 184 191 196617 jit.rota @anchor_x 160 @anchor_y 120;
#P fasten 5 0 4 0 98 82 65 82;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P fasten 6 0 1 0 98 112 85 112 85 135 109 135;
#P fasten 9 0 0 0 18 179 109 179;
#P fasten 3 0 0 0 137 179 109 179;
#P connect 1 0 0 0;
#P fasten 2 0 0 0 98 179 109 179;
#P fasten 0 0 8 0 108 234;
#P fasten 4 0 3 0 65 163;
#P pop;
#P newobj 27 508 84 196617 patcher setZoom;
#P newex 75 468 314 196617 unpack i i i i i i i i i;
#P newex 75 408 66 196617 jit.rgb2luma;
#P newex 75 446 43 196617 jit.spill;
#B color 5;
#P message 140 332 30 196617 read;
#P newex 75 377 81 196617 jit.qt.movie 3 3;
#P user jit.pwindow 335 69 278 214 0 1 0 0 1 0;
#P toggle 63 47 15 0;
#P newex 63 69 52 196617 metro 40;
#P message 207 69 27 196617 stop;
#P message 169 69 31 196617 start;
#P message 133 69 28 196617 read;
#P newex 63 95 63 196617 jit.qt.movie;
#P newex 48 229 251 196617 jit.glue @rows 3 @columns 3;
#B color 5;
#P fasten 12 0 13 0 80 498 32 498;
#P connect 13 0 17 0;
#P connect 18 0 0 0;
#P connect 6 0 5 0;
#P connect 5 0 1 0;
#P fasten 4 0 1 0 212 91 68 91;
#P fasten 3 0 1 0 174 91 68 91;
#P fasten 2 0 1 0 138 91 68 91;
#P fasten 5 0 8 0 68 90 41 90 41 361 80 361;
#P fasten 9 0 8 0 145 363 80 363;
#P connect 8 0 11 0;
#P fasten 11 0 10 0 80 432 80 432;
#P connect 10 0 12 0;
#P connect 16 0 0 1;
#P connect 19 0 0 2;
#P fasten 12 1 14 0 118 493;
#P connect 14 0 15 0;
#P connect 20 0 0 3;
#P fasten 1 0 26 0 68 116 134 116 134 94 150 94;
#P connect 21 0 0 4;
#P connect 25 0 0 5;
#P fasten 12 2 27 0 156 501 209 501;
#P connect 27 0 28 0;
#P fasten 24 0 0 6 218 218 233 218;
#P fasten 23 0 0 7 242 219 263 219;
#P fasten 22 0 0 8 262 220 293 220;
#P fasten 12 3 29 0 194 501 300 501;
#P connect 29 0 30 0;
#P fasten 0 0 7 0 53 268 305 268 305 63 341 63;
#P fasten 12 4 31 0 232 501 393 501;
#P connect 31 0 32 0;
#P fasten 12 5 33 0 270 501 487 501;
#P connect 33 0 34 0;
#P fasten 12 6 35 0 308 502 583 502;
#P connect 35 0 36 0;
#P fasten 12 7 37 0 346 500 679 500;
#P connect 37 0 38 0;
#P fasten 12 8 39 0 384 501 776 501;
#P connect 39 0 40 0;
#P window clipboard copycount 41;

#35606
Feb 5, 2008 at 6:58am

Look at the dstdimstart & dstdimend messages. Or better yet, chuck
each matrix in a videoplane & do it all in GL

M

On Jan 31, 2008, at 18:58, karolina wrote:

>
> Hello,
> I’m new to Jitter and I was wondering if there is a better approach
> to ‘nesting’ metrices within a larger matrix than using jit.glue.
>
> I would like to have a matrix made up of ’tiles’. these tiles would
> scale up and down according to luma value of imput movie (which will
> be pixelated, so that number of input cells will match the number of
> tiles in my main matrix).
>
> I have made an example using jit.glue with just a 3×3 matrix, but
> ideally I would like it to be much larger, and jit.glue just seems
> like incredibly inefficient way of doing this.

#121535

You must be logged in to reply to this topic.