Numerical display of data in matrix…

Feb 21, 2008 at 5:33pm

Numerical display of data in matrix…

I am trying to view the numerical data in a jit.matrix.
I want to use jit.cellblock to do this but am unable to
hook things up properly. Can someone look over this
patch and tell me why my jit.cellblock is not being
updated?

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 137 246 66 9109513 jit.unpack 4;
#P user jit.cellblock 255 323 429 446 3 9 16 16 20 20 0 1 1 0 0 0 1 0 5 0 0 0 255 255 255 231 231 231 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 2 4 0 0 0;
#P window setfont “Sans Serif” 9.;
#P user jit.fpsgui 73 450 60 196617 0;
#P hidden message 193 21 69 196617 saturation $1;
#P user uslider 278 36 13 43 256 1 0 0;
#P newex 242 103 87 196617 unpack 0 0 0;
#P user swatch 294 36 179 59;
#P button 166 142 15 0;
#P number 318 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 280 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 242 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 204 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 166 160 164 196617 pack setall 0 0 0 0;
#P button 38 80 15 0;
#P user jit.pwindow 72 319 162 122 0 1 0 0 1 0;
#P flonum 107 59 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 73 59 15 0;
#P newex 73 79 45 196617 metro 10;
#P newex 73 195 99 196617 jit.matrix 4 char 16 16;
#P comment 218 196 136 196617 fill an entire matrix;
#P window setfont “Sans Serif” 18.;
#P comment 218 465 105 196626 Fill a Matrix;
#P connect 2 0 6 0;
#P fasten 2 0 20 0 78 229 142 229;
#P fasten 7 0 2 0 43 106 78 106;
#P fasten 8 0 2 0 171 186 78 186;
#P fasten 3 0 2 0 78 111 78 111;
#P connect 4 0 3 0;
#P connect 5 0 3 1;
#P fasten 20 0 19 0 142 294 260 294;
#P connect 12 0 8 4;
#P connect 15 2 12 0;
#P hidden connect 17 0 14 0;
#P connect 11 0 8 3;
#P connect 15 1 11 0;
#P connect 10 0 8 2;
#P fasten 15 0 13 0 247 122 171 122;
#P connect 15 0 10 0;
#P fasten 14 0 15 0 299 99 247 99;
#P connect 9 0 8 1;
#P hidden connect 16 0 17 0;
#P connect 13 0 8 0;
#P connect 6 0 18 0;
#P window clipboard copycount 21;

Thanks,
Anthony

#35974
Feb 21, 2008 at 5:46pm

The jit.unpack sends out a matrix name, not the values.
Hence the jit.iter, which splits up the cell location and its corresponding values.
Also, your 4 plane char is structured as argb so the first outlet of the unpack will give you 0 over all its cells as this is the alpha channel.

#P button 123 275 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 140 296 74 196617 pack set 0 0 0;
#P newex 155 269 58 196617 unpack 0 0;
#P newex 140 247 41 196617 jit.iter;
#P newex 140 224 66 196617 jit.unpack 4;
#P user jit.cellblock 253 315 427 438 3 9 16 16 20 20 0 1 1 0 0 0 1 0 5 0 0 0 255 255 255 231 231 231 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 2 4 0 0 0;
#P user jit.fpsgui 73 450 60 196617 0;
#P hidden message 193 21 69 196617 saturation $1;
#P user uslider 278 36 13 43 256 1 0 0;
#P newex 242 103 87 196617 unpack 0 0 0;
#P user swatch 294 36 179 59;
#P button 166 142 15 0;
#P number 318 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 280 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 242 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 204 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 166 160 164 196617 pack setall 0 0 0 0;
#P button 38 80 15 0;
#P user jit.pwindow 72 319 162 122 0 1 0 0 1 0;
#P flonum 107 59 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 73 59 15 0;
#P newex 73 79 59 196617 metro 10;
#P newex 73 195 123 196617 jit.matrix 4 char 16 16;
#P comment 218 196 136 196617 fill an entire matrix;
#P window setfont “Sans Serif” 18.;
#P comment 218 465 105 196626 Fill a Matrix;
#P connect 21 0 24 0;
#P fasten 21 0 23 3 145 292 208 292;
#P connect 20 0 21 0;
#P connect 23 0 19 0;
#P connect 24 0 23 0;
#P connect 2 0 6 0;
#P fasten 2 0 20 0 78 216 145 216;
#P fasten 22 1 23 2 208 290 187 290;
#P fasten 22 0 23 1 160 290 166 290;
#P connect 21 1 22 0;
#P connect 6 0 18 0;
#P connect 13 0 8 0;
#P hidden connect 16 0 17 0;
#P connect 9 0 8 1;
#P fasten 14 0 15 0 299 99 247 99;
#P connect 15 0 10 0;
#P fasten 15 0 13 0 247 122 171 122;
#P connect 10 0 8 2;
#P connect 15 1 11 0;
#P connect 11 0 8 3;
#P hidden connect 17 0 14 0;
#P connect 15 2 12 0;
#P connect 12 0 8 4;
#P connect 5 0 3 1;
#P connect 4 0 3 0;
#P fasten 3 0 2 0 78 111 78 111;
#P fasten 8 0 2 0 171 186 78 186;
#P fasten 7 0 2 0 43 106 78 106;
#P window clipboard copycount 25;

#123202
Feb 21, 2008 at 6:20pm

you can also directly hook you [jit.cellblock] to your matrix’s output and select the planes whoms ( do you say that ?) cell values you want to see

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 396 284 42 196617 plane 3;
#P message 351 284 42 196617 plane 2;
#P message 307 284 42 196617 plane 1;
#P message 262 284 42 196617 plane 0;
#P user jit.cellblock 262 330 436 453 3 9 16 16 20 20 0 1 1 0 0 0 1 0 5 0 0 0 255 255 255 231 231 231 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 2 4 0 0 0;
#P user jit.fpsgui 80 457 60 196617 0;
#P hidden message 200 28 69 196617 saturation $1;
#P user uslider 285 43 13 43 256 1 0 0;
#P newex 249 110 87 196617 unpack 0 0 0;
#P user swatch 301 43 179 59;
#P button 173 149 15 0;
#P number 325 133 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 287 133 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 249 133 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 211 133 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 173 167 164 196617 pack setall 0 0 0 0;
#P button 45 87 15 0;
#P user jit.pwindow 79 326 162 122 0 1 0 0 1 0;
#P flonum 114 66 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 80 66 15 0;
#P newex 80 86 59 196617 metro 10;
#P newex 80 202 123 196617 jit.matrix 4 char 16 16;
#P comment 225 203 136 196617 fill an entire matrix;
#P window setfont “Sans Serif” 18.;
#P comment 225 472 105 196626 Fill a Matrix;
#P connect 23 0 19 0;
#P connect 22 0 19 0;
#P connect 21 0 19 0;
#P connect 20 0 19 0;
#P connect 2 0 6 0;
#P connect 2 0 19 0;
#P connect 6 0 18 0;
#P connect 13 0 8 0;
#P hidden connect 16 0 17 0;
#P connect 9 0 8 1;
#P fasten 14 0 15 0 306 106 254 106;
#P connect 15 0 10 0;
#P fasten 15 0 13 0 254 129 178 129;
#P connect 10 0 8 2;
#P connect 15 1 11 0;
#P connect 11 0 8 3;
#P hidden connect 17 0 14 0;
#P connect 15 2 12 0;
#P connect 12 0 8 4;
#P connect 5 0 3 1;
#P connect 4 0 3 0;
#P fasten 3 0 2 0 85 118 85 118;
#P fasten 8 0 2 0 178 193 85 193;
#P fasten 7 0 2 0 50 113 85 113;
#P window clipboard copycount 24;

Quote: Anthony Palomba wrote on Thu, 21 February 2008 18:33
—————————————————-
> I am trying to view the numerical data in a jit.matrix.
> I want to use jit.cellblock to do this but am unable to
> hook things up properly. Can someone look over this
> patch and tell me why my jit.cellblock is not being
> updated?
>
>

#123203
Feb 21, 2008 at 8:26pm

That is exactly what I needed.
Thanks!

#123204

You must be logged in to reply to this topic.