[jitter] Bug in jit.rota inside jit.expr
Jean-Fran ç ois Charles
jeanfrancois.charles at newflore.org
Sun Jul 1 19:12:02 MDT 2007
- Previous message: [jitter] Re: Flash in Jitter
- Next message: [jitter] Multiline Textedit entry to Matrix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Summary: " error: jit.expr: null matrix in jit_expr_treecalc" error message when theta < 0, when jit.rota is used as a functor from within [jit.expr]. Steps to Reproduce: -open the patch -read a jpg -bang the jit.qt.movie -try a positive value for theta, that works -try a negative value, see the error message and the incorrect result Expected Results: -same result as with jit.rota Actual Results: -no rotation Regression: tested on PB G4 OS X 10.4.10, MaxMSP 4.6.3, Jitter 1.6.3 Notes Same bug with float32 matrices. Jean-François. Patch: #P button 134 95 15 0; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 343 207 29 196617 t b f; #P window linecount 2; #P comment 449 132 170 196617 message "null matrix in jit_expr_treecalc" in Max window; #P window linecount 1; #P comment 449 119 100 196617 theta <0 \, problem; #P comment 449 81 100 196617 theta >0 \, no problem; #P message 390 123 30 196617 -0.5; #P window setfont "Sans Serif" 18.; #P comment 426 118 21 196626 3; #P user panel 377 111 251 53; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P window setfont "Sans Serif" 9.; #P message 388 82 31 196617 1.12; #P window setfont "Sans Serif" 18.; #P comment 426 76 21 196626 2; #P user panel 377 69 180 39; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P window setfont "Sans Serif" 9.; #P message 648 291 48 196617 theta \$1; #P comment 349 169 37 196617 theta; #P newex 270 313 69 196617 prepend expr; #P message 674 122 14 196617 2; #P message 640 122 14 196617 0; #P newex 640 93 48 196617 loadbang; #P user jit.pwindow 643 432 202 152 0 1 0 0 1 0; #P user jit.pwindow 269 432 202 152 0 1 0 0 1 0; #P window linecount 5; #P message 357 362 97 196617 expr "jit.rota(in[0]\\\, @theta -0.500000\\\, @interp 0\\\, @boundmode 2)"; #P window linecount 1; #P newex 134 177 27 196617 t l b; #P message 907 294 71 196617 boundmode \$1; #P message 839 294 50 196617 interp \$1; #P toggle 478 179 15 0; #P message 153 95 74 196617 read chilis.jpg; #P newex 134 123 105 196617 jit.qt.movie 600 400; #P newex 644 355 43 196617 jit.rota; #P newex 357 343 62 196617 prepend set; #P newex 270 355 45 196617 jit.expr; #P number 503 179 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 343 182 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 270 281 386 196617 sprintf symout jit.rota(in[0]\\\\\\\, @theta %f\\\\\\\, @interp %i\\\\\\\, @boundmode %i); #P window setfont "Sans Serif" 18.; #P comment 236 88 21 196626 1; #P user panel 127 81 145 41; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P connect 4 0 2 2; #P connect 4 0 12 0; #P connect 10 0 2 1; #P connect 10 0 11 0; #P connect 17 0 18 0; #P connect 17 0 19 0; #P connect 32 1 2 0; #P connect 32 1 22 0; #P connect 3 0 32 0; #P connect 3 0 22 0; #P connect 7 0 16 0; #P connect 11 0 7 0; #P connect 12 0 7 0; #P connect 22 0 7 0; #P fasten 13 0 5 0 139 354 275 354; #P lcolor 7; #P fasten 13 0 7 0 139 337 649 337; #P lcolor 7; #P fasten 19 0 4 0 679 177 508 177; #P fasten 18 0 10 0 645 174 483 174; #P connect 6 0 14 0; #P connect 20 0 5 0; #P connect 20 0 6 0; #P connect 28 0 3 0; #P connect 25 0 3 0; #P connect 5 0 15 0; #P connect 2 0 20 0; #P fasten 13 1 2 0 156 266 275 266; #P connect 8 0 13 0; #P fasten 9 0 8 0 158 115 139 115; #P connect 33 0 8 0; #P fasten 32 0 33 0 348 236 337 236 337 73 139 73; #P window clipboard copycount 34;
- Previous message: [jitter] Re: Flash in Jitter
- Next message: [jitter] Multiline Textedit entry to Matrix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
