XML Feeds

.

[jitter] Re: proportion issue while rendering to matrix

jasch   j at jasch.ch
Thu Nov 15 09:15:06 MST 2007


in your adapt-subpatch, you fall into the age old "commas are only  
for messageboxes" trap.

hth

/*j

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 56 206 265 196617 jit.gl.videoplane bob @scale 1.333 1. 1.  
@blend_enable 1;
#P newex 685 243 147 196617 jit.window bob @size 640 480;
#P newex 395 53 48 196617 loadbang;
#P toggle 356 53 15 0;
#P newex 356 74 29 196617 gate;
#P button 395 74 15 0;
#P newex 356 97 30 196617 t b b;
#P message 395 97 115 196617 reset \, glreadpixels bibi;
#P newex 115 123 83 196617 jit.gl.render bob;
#P newex 38 79 66 196617 t b b b erase;
#P message 76 153 83 196617 read dishes.mov;
#P flonum 79 37 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 38 37 15 0;
#P newex 38 58 57 196617 qmetro 33;
#P newex 56 185 144 196617 jit.qt.movie 320 240;
#P user jit.fpsgui 294 278 60 196617 3;
#P newex 685 189 66 196617 prepend size;
#P newex 569 165 40 196617 t l l l;
#P newex 617 189 64 196617 prepend dim;
#N vpatcher 40 104 956 567;
#P window setfont "Sans Serif" 9.;
#P window linecount 3;
#P comment 515 242 304 196617 the comma is onl useful in the message  
box: it separates into two messages what's in it \, no other object  
knows waht to do whitha comma \, when received in a list (especially  
idf it's escaped....);
#P window linecount 1;
#P comment 542 222 187 196617 this is ok for formatting a message box;
#P window linecount 0;
#P newex 88 78 98 196617 t l b;
#P window linecount 1;
#P newex 136 149 27 196617 - 1;
#P window linecount 0;
#P newex 88 149 27 196617 - 1;
#P window linecount 1;
#P comment 476 358 318 196617 well \, yous till have to send this to  
the matrix object by banging it ...;
#P newex 47 231 92 196617 pak srcdimend 0 0;
#P window linecount 0;
#P newex 59 256 100 196617 pak srcdimstart 0 0;
#P window linecount 1;
#P newex 488 184 218 196617 sprintf srcdimstart 0 %ld \\\, srcdimend % 
ld 0;
#P outlet 47 356 15 0;
#P window linecount 0;
#P message 478 334 186 196617 srcdimstart 0 767 \, srcdimend 719 0;
#P newex 488 298 62 196617 prepend set;
#P message 176 253 65 196617 usesrcdim 1;
#P newex 88 123 58 196617 unpack;
#P inlet 50 30 15 0;
#P comment 494 150 100 196617 shouldnt this work ?;
#P connect 9 0 6 0;
#P connect 8 0 6 0;
#P connect 3 0 6 0;
#P connect 1 0 13 0;
#P connect 13 0 2 0;
#P connect 2 0 11 0;
#P connect 11 0 9 1;
#P connect 2 1 12 0;
#P connect 12 0 8 2;
#P connect 13 1 3 0;
#P connect 4 0 5 0;
#P fasten 12 0 7 0 141 175 493 175;
#P connect 7 0 4 0;
#P fasten 11 0 7 1 93 175 701 175;
#P pop;
#P newobj 569 189 42 196617 p adapt;
#P user ubumenu 525 141 100 196617 0 1 1 0;
#X add 320 240;
#X add 640 480;
#X add 720 540;
#X add 1024 768;
#X prefix_set 0 0 <none> 0;
#P user jit.pwindow 355 277 322 242 0 0 0 0 0 0;
#P newex 356 244 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0  
239 @srcdimend 319 0;
#P newex 376 141 146 196617 jit.gl.sketch bob @automatic 0;
#P newex 356 215 148 196617 jit.matrix bibi 4 char 320 240;
#P window linecount 4;
#P comment 628 131 100 196617 only 320 240 dim keeps the right  
proportions \, what am i doing wrong;
#P fasten 3 0 10 0 361 265 299 265;
#P connect 3 0 4 0;
#P connect 9 0 24 0;
#P fasten 8 2 9 0 604 185 690 185;
#P fasten 8 1 7 0 589 185 622 185;
#P connect 8 0 6 0;
#P connect 5 1 8 0;
#P connect 20 0 18 0;
#P connect 23 0 20 0;
#P connect 19 1 2 0;
#P connect 18 0 2 0;
#P fasten 16 0 21 1 43 102 344 102 344 42 380 42;
#P fasten 6 0 3 0 574 237 361 237;
#P connect 1 0 3 0;
#P connect 19 0 1 0;
#P fasten 7 0 1 0 622 210 361 210;
#P connect 21 0 19 0;
#P connect 22 0 21 0;
#P connect 16 2 17 0;
#P connect 16 3 17 0;
#P connect 14 0 12 1;
#P connect 11 0 25 0;
#P fasten 15 0 11 0 81 173 61 173;
#P fasten 16 1 11 0 61 131 61 131;
#P connect 12 0 16 0;
#P connect 13 0 12 0;
#P window clipboard copycount 26;








More information about the jitter mailing list