Forums > MaxMSP

beachball

June 4, 2007 | 6:26 pm

Hello,

For Midi and DMX i want to make a relay solution so one lightchanel
can cross to an Midicontrolvalue and back.
the first test patch functions enjoy !
The second however does not.
How can i multiply a 662 X 662 float matrix at approx. 25 Frames Per
Second ?

DO_Ray

// 2 patches follow 1 functioning and one not //
max v2;
#N vpatcher 10 59 1004 562;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 648 334 63 196617 s Patchcode;
#P message 704 315 58 196617 45 58 100;
#P message 634 315 64 196617 45 558 100;
#N vpatcher 340 236 940 636;
#P origin -51 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P message 170 75 39 196617 0 0 -1;
#P window linecount 1;
#P newex 68 48 40 196617 t b l b;
#P window linecount 0;
#P newex 126 96 82 196617 vexpr $i1 + $i2;
#P window linecount 1;
#P newex 164 202 27 196617 t i i;
#P window linecount 0;
#P newex 160 222 27 196617 +;
#P button 112 165 15 0;
#P window linecount 1;
#P message 404 36 64 196617 45 558 100;
#P number 74 165 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 126 143 27 196617 !-;
#P newex 126 122 67 196617 unpack 0 0 0;
#P window linecount 1;
#P newex 126 182 40 196617 uzi;
#P window linecount 0;
#P newex 464 93 67 196617 unpack 0 0 0;
#P window linecount 1;
#P message 397 138 68 196617 $1 , $2 9000;
#P window linecount 0;
#P newex 400 58 40 196617 t b b l;
#P newex 420 116 92 196617 sprintf %d %d %d;
#P newex 393 191 32 196617 print;
#P window linecount 1;
#P message 220 137 173 196617 Zelfs met 9000 is line te langzaam >;
#P window linecount 0;
#P newex 389 162 40 196617 line 0;
#P outlet 211 309 15 0;
#P outlet 242 342 15 0;
#P window linecount 1;
#P newex 71 26 63 196617 r Patchcode;
#P toggle 328 280 15 0;
#P number 294 209 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 294 227 27 196617 – 1;
#P button 275 247 15 0;
#P window setfont "Sans Serif" 14.;
#P message 291 176 42 196622 Naar;
#P message 233 176 36 196622 Van;
#P window setfont "Sans Serif" 9.;
#P number 232 247 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 294 247 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 232 310 15 0;
#P newex 275 299 57 196617 pack 0 0 0;
#P message 274 319 102 196617 setcell $1 $2 val $3;
#P connect 11 0 30 0;
#P connect 23 0 24 0;
#P connect 30 1 29 0;
#P connect 29 0 22 0;
#P connect 22 0 23 0;
#P connect 23 0 21 0;
#P connect 26 0 21 0;
#P connect 22 1 23 1;
#P connect 28 0 27 0;
#P connect 21 2 28 0;
#P connect 30 2 31 0;
#P connect 22 2 27 1;
#P connect 31 0 29 1;
#P connect 7 0 13 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P fasten 30 0 2 0 73 293 237 293;
#P connect 7 0 2 0;
#P connect 0 0 12 0;
#P connect 2 0 12 0;
#P connect 1 0 0 0;
#P connect 7 0 1 0;
#P connect 3 0 1 0;
#P connect 27 0 1 0;
#P connect 9 0 8 0;
#P connect 8 0 3 0;
#P connect 4 0 1 1;
#P connect 28 1 1 1;
#P connect 10 0 1 2;
#P connect 19 0 14 0;
#P connect 14 0 16 0;
#P connect 17 0 19 0;
#P connect 18 0 19 0;
#P connect 25 0 18 0;
#P connect 18 2 17 0;
#P connect 18 2 20 0;
#P pop;
#P newobj 596 211 84 196617 p Codeerafdeling;
#P outlet 830 235 15 0;
#P toggle 916 173 15 0;
#P number 882 102 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 882 120 27 196617 – 1;
#P button 863 140 15 0;
#P window setfont "Sans Serif" 14.;
#P message 879 69 42 196622 Naar;
#P message 821 69 36 196622 Van;
#P window setfont "Sans Serif" 9.;
#P message 544 203 47 196617 setall 0.;
#P number 820 140 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 882 140 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 820 203 15 0;
#P newex 863 192 52 196617 pak 0 0 0;
#P message 862 212 102 196617 setcell $1 $2 val $3;
#P newex 244 371 118 196617 jit.matrix 1 float32 6 1;
#P button 252 256 15 0;
#P number 100 56 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 138 55 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 31 103 15 0;
#P newex 100 104 46 196617 pak 0 0.;
#P message 99 124 96 196617 setcell $1 0 val $2;
#P flonum 36 46 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 35 66 29 196617 t b f;
#P message 65 153 50 196617 setall $1;
#P newex 60 183 118 196617 jit.matrix 1 float32 6 1;
#P user jit.cellblock 245 394 530 422 3 9 6 1 45 17 0 1 1 0 0 0 0 0 5
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4
0 0 0;
#P button 505 168 15 0;
#P user jit.cellblock 523 72 799 182 3 9 6 6 45 17 0 1 1 0 0 0 0 0 5
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4
0 0 0;
#P newex 514 189 20 196617 t b;
#P newex 534 242 118 196617 jit.matrix 1 float32 6 6;
#P user jit.cellblock 213 68 489 177 3 9 6 6 45 17 0 1 1 0 0 0 0 0 5
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4
0 0 0;
#P newex 201 187 20 196617 t b;
#P newex 241 303 118 196617 jit.matrix 1 float32 6 6;
#P newex 252 347 53 196617 jit.la.mult;
#B color 5;
#P connect 16 0 15 0;
#P connect 17 0 15 0;
#P connect 12 0 11 0;
#P connect 13 0 9 0;
#P connect 15 0 9 0;
#P connect 10 0 9 0;
#P connect 11 0 9 0;
#P connect 11 1 10 0;
#P connect 14 0 13 0;
#P connect 17 0 14 0;
#P connect 16 0 14 1;
#P fasten 3 0 2 0 218 180 206 180;
#P fasten 1 0 3 0 246 327 498 327 498 59 218 59;
#P connect 18 0 1 0;
#P fasten 9 0 1 0 65 274 246 274;
#P fasten 2 0 1 0 206 274 246 274;
#P fasten 5 0 1 0 519 209 246 209;
#P connect 0 0 19 0;
#P connect 19 0 8 0;
#P fasten 33 0 18 0 601 230 257 230;
#P fasten 28 0 18 0 868 186 257 186;
#P connect 1 0 0 0;
#P fasten 4 0 0 1 539 342 300 342;
#P connect 7 0 5 0;
#P fasten 6 0 5 0 528 186 519 186;
#P fasten 4 0 6 0 539 288 805 288 805 66 528 66;
#P fasten 5 0 4 0 519 232 539 232;
#P connect 33 1 4 0;
#P connect 20 0 4 0;
#P connect 25 0 4 0;
#P connect 22 0 4 0;
#P connect 35 0 36 0;
#P connect 34 0 36 0;
#P connect 28 0 22 0;
#P connect 23 0 22 0;
#P connect 24 0 22 0;
#P connect 20 0 32 0;
#P connect 22 0 32 0;
#P connect 21 0 20 0;
#P connect 28 0 21 0;
#P connect 23 0 21 0;
#P connect 30 0 29 0;
#P connect 29 0 23 0;
#P connect 24 0 21 1;
#P connect 31 0 21 2;
#P pop;

max v2;
#N vpatcher 0 44 1024 741;
#P outlet 154 227 15 0;
#P inlet 24 33 15 0;
#P button 139 177 15 0;
#P button 47 90 15 0;
#P button 210 90 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 156 197 167 196617 jit.matrix RESULT 1 float32 662 1;
#P newex 216 114 176 196617 jit.matrix PATCH 1 float32 662 662;
#P newex 35 114 171 196617 jit.matrix DATA 1 float32 662 662;
#P newex 161 148 53 196617 jit.la.mult;
#B color 5;
#P newex 22 60 164 196617 jit.matrix START 1 float32 662 1;
#P connect 8 0 0 0;
#P connect 0 0 2 0;
#P connect 6 0 2 0;
#P connect 4 0 9 0;
#P connect 1 0 4 0;
#P connect 7 0 4 0;
#P connect 2 0 1 0;
#P connect 3 0 1 1;
#P connect 5 0 3 0;
#P pop;


June 4, 2007 | 7:00 pm


June 5, 2007 | 12:31 pm


August 24, 2007 | 1:21 pm


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