Forums > Jitter

jit.gl output issue

February 26, 2009 | 5:47 pm

Hi,
I’m trying to figure out how to modify this patch to allow me to pass the final output to a matrix rather than a window. (It is taken from Andrew Benson’s "Jitter Recipes 1") I want to use the output in a chromakey patch, but continue to get errors every time I change the "jit.window foo" object into a "jit.matrix foo" object.
I’m sure there is some fundamental issue I am not getting, so any help would be appreciated.

thanks,
Aaron

max v2;
#N vpatcher 455 99 1159 573;
#P origin -16 0;
#P window setfont "Sans Serif" 9.;
#P flonum 580 353 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 544 353 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 616 353 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 508 353 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 509 372 142 196617 pak color 1. 1. 1. 1.;
#P newex 459 214 104 196617 prepend draw_pixels;
#B color 5;
#P newex 459 193 85 196617 route jit_matrix;
#B color 5;
#P newex 247 196 192 196617 jit.matrix 1 float32 50 50 50 @interp 1;
#P newex 247 153 64 196617 metro 1000;
#P newex 566 214 86 196617 jit.gl.texture foo;
#B color 5;
#P message 604 84 28 196617 read;
#P newex 503 150 103 196617 jit.qt.movie 320 240;
#B color 5;
#P newex 247 216 73 196617 jit.matrix rad;
#P newex 247 174 119 196617 jit.noise 1 float32 5 5 5;
#P hidden newex 508 437 100 196617 bgcolor 60 100 190;
#P newex 59 72 48 196617 r eraser;
#B color 5;
#P window linecount 0;
#P comment 68 99 100 196617;
#P toggle 471 315 15 0;
#P toggle 491 353 15 0;
#P toggle 450 353 15 0;
#P window linecount 1;
#P newex 409 374 92 196617 pak poly_mode 0 0;
#P toggle 311 358 15 0;
#P message 311 375 96 196617 smooth_shading $1;
#P comment 472 53 119 196617 andrewb@cycling74.com;
#P comment 47 29 102 196617 < -- start rendering;
#P newex 31 136 184 196617 jit.slide @slide_up 30 @slide_down 20;
#P toggle 218 359 15 0;
#P message 218 376 92 196617 lighting_enable $1;
#P newex 185 318 70 196617 prepend mode;
#P user ubumenu 185 297 100 196617 0 1 1 0;
#X add cubes;
#X add tetra;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P flonum 128 299 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 128 319 55 196617 epsilon $1;
#P flonum 70 300 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 68 319 59 196617 isolevel $1;
#P window linecount 2;
#P newex 31 406 379 196617 jit.gl.isosurf foo @lighting_enable 1 @color 1 1 1 1 @isolevel 0.41 @blend_enable 1 @depth_enable 1 @smooth_shading 1 @scale 2. 2. 2. @cull_face 1 1;
#B color 5;
#P window linecount 1;
#P message 507 302 68 196617 fullscreen $1;
#P toggle 490 302 15 0;
#P newex 532 277 35 196617 sel 27;
#P newex 490 277 40 196617 keyup;
#P toggle 31 25 15 0;
#P newex 31 49 51 196617 qmetro 5;
#P window linecount 2;
#P newex 507 320 143 196617 jit.window foo @depthbuffer 1 @fsaa 1;
#P window linecount 1;
#P newex 212 73 90 196617 t erase b b;
#B color 5;
#P newex 63 375 153 196617 jit.gl.handle foo @auto_rotate 1;
#P newex 212 113 290 196617 jit.gl.render foo @blend_enable 1 @erase_color 0.8 0.8 0.7 1.;
#P newex 31 113 163 196617 jit.matrix rad 1 float32 50 50 50;
#P window setfont "Sans Serif" 20.;
#P comment 483 25 173 196628 videoBlobs;
#P window setfont "Sans Serif" 9.;
#P newex 31 160 109 196617 jit.xfade @xfade 0.95;
#P window linecount 4;
#P newex 39 200 141 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1 @srcdimstart 1 1 1 @srcdimend 48 48 48 @interp 1;
#P window linecount 1;
#N vpatcher 271 464 521 857;
#P origin 0 -34;
#P inlet 24 22 15 0;
#P toggle 24 39 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 24 59 58 196617 metro 200;
#N counter 2 0 49;
#X flags 0 0;
#P newobj 24 79 77 196617 counter 2 0 49;
#P message 24 99 192 196617 srcdimstart 0 0 $1 , srcdimend 49 49 $1;
#P user jit.pwindow 2 188 183 178 0 1 0 0 1 0;
#P window linecount 1;
#P newex 3 131 211 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1;
#P inlet 3 39 15 0;
#P window linecount 4;
#P comment 89 129 124 196617 This pwindow scrolls back and forth through the z dimension of our 3-d matrix;
#P fasten 4 0 2 0 29 125 8 125;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 8 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P pop;
#P newobj 57 182 77 196617 p matrix-show;
#P connect 10 0 9 0;
#P connect 9 0 4 0;
#P connect 34 0 4 0;
#P connect 4 0 24 0;
#P connect 24 0 2 0;
#P connect 24 0 15 0;
#P connect 2 0 15 0;
#P fasten 40 0 15 0 571 269 36 269;
#P fasten 45 0 15 0 514 402 36 402;
#P fasten 21 0 15 0 190 353 36 353;
#P fasten 18 0 15 0 133 353 36 353;
#P fasten 16 0 15 0 73 353 36 353;
#P fasten 6 0 15 0 68 399 36 399;
#P fasten 22 0 15 0 223 402 36 402;
#P fasten 27 0 15 0 316 402 36 402;
#P fasten 29 0 15 0 414 402 36 402;
#P fasten 2 0 1 0 36 188 44 188;
#P fasten 2 0 0 0 36 179 62 179;
#P connect 17 0 16 0;
#P fasten 10 0 0 1 36 45 129 45;
#P connect 19 0 18 0;
#P fasten 1 0 2 1 44 257 186 257 186 156 135 156;
#P fasten 20 1 21 0 235 315 190 315;
#P fasten 9 0 7 0 36 69 217 69;
#P fasten 44 0 5 0 464 238 456 238 456 99 217 99;
#P fasten 7 1 5 0 257 101 217 101;
#P connect 7 0 5 0;
#P connect 23 0 22 0;
#P fasten 10 0 41 0 36 45 252 45;
#P connect 41 0 36 0;
#P connect 36 0 42 0;
#P connect 42 0 37 0;
#P connect 28 0 27 0;
#P fasten 32 0 30 0 476 340 455 340;
#P connect 30 0 29 1;
#P fasten 38 0 43 0 508 180 464 180;
#P connect 43 0 44 0;
#P fasten 12 0 13 0 537 299 495 299;
#P fasten 32 0 31 0 476 340 496 340;
#P connect 31 0 29 2;
#P fasten 39 0 38 0 609 140 508 140;
#P fasten 7 2 38 0 297 96 508 96;
#P fasten 13 0 14 0 506 317 506 302;
#P connect 14 0 8 0;
#P fasten 11 0 12 0 531 294 531 279;
#P connect 46 0 45 1;
#P fasten 38 0 40 0 508 180 571 180;
#P connect 48 0 45 2;
#P connect 49 0 45 3;
#P connect 47 0 45 4;
#P pop;


February 26, 2009 | 8:42 pm

i don’t see what you are talking about in your patch so it’s hard to offer much advice.

to draw to a matrix, make sure the matrix has a different name then the window and make sure you set each gl object’s drawto attribute.


February 27, 2009 | 6:26 am

Hi Robtherich,
Here’s a patch doing what I think you suggested. I’ve removed the window object named foo and instead have created a matrix object named fud. I’ve adjusted all the gl objects to draw to this new matrix. (See full patch below).

When I start the patch I get the following error:
ob3d_draw_preamble initial: GL Error: Invalid enumeration

Any idea what’s going on?
Thanks,
Aaron

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 0.0, 40.0, 1440.0, 804.0 ],
"bgcolor" : [ 0.235294, 0.392157, 0.745098, 1.0 ],
"bglocked" : 0,
"defrect" : [ 0.0, 40.0, 1440.0, 804.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "jit.pwindow",
"outlettype" : [ "", "" ],
"id" : "obj-52",
"numinlets" : 1,
"patching_rect" : [ 195.341843, 486.100677, 80.0, 60.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix fud 4 char 320 240",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-51",
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 195.0, 452.0, 159.0, 20.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend draw_pixels",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-6",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 459.0, 214.0, 104.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route jit_matrix",
"outlettype" : [ "", "" ],
"fontname" : "Arial",
"id" : "obj-7",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 459.0, 193.0, 85.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix 1 float32 50 50 50 @interp 1",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-8",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 247.0, 196.0, 192.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 1000",
"outlettype" : [ "bang" ],
"fontname" : "Arial",
"id" : "obj-9",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 247.0, 153.0, 64.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.texture fud",
"outlettype" : [ "jit_gl_texture", "" ],
"fontname" : "Arial",
"id" : "obj-10",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 566.0, 214.0, 72.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-11",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 604.0, 84.0, 28.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.qt.movie 320 240",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-12",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 503.0, 150.0, 103.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix rad",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-13",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 247.0, 216.0, 73.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.noise 1 float32 5 5 5",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-14",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 247.0, 174.0, 119.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "bgcolor 60 100 190",
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-15",
"fontsize" : 9.0,
"numinlets" : 4,
"patching_rect" : [ 508.0, 437.0, 100.0, 17.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "r eraser",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-16",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 0,
"patching_rect" : [ 59.0, 72.0, 48.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "comment",
"fontname" : "Arial",
"id" : "obj-17",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 68.0, 99.0, 100.0, 17.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-18",
"numinlets" : 1,
"patching_rect" : [ 471.0, 315.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-19",
"numinlets" : 1,
"patching_rect" : [ 491.0, 353.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-20",
"numinlets" : 1,
"patching_rect" : [ 450.0, 353.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pak poly_mode 0 0",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-21",
"fontsize" : 9.0,
"numinlets" : 3,
"patching_rect" : [ 409.0, 374.0, 92.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-22",
"numinlets" : 1,
"patching_rect" : [ 311.0, 358.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "smooth_shading $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-23",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 311.0, 375.0, 96.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "andrewb@cycling74.com",
"fontname" : "Arial",
"id" : "obj-24",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 472.0, 53.0, 119.0, 17.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "< -- start rendering",
"fontname" : "Arial",
"id" : "obj-25",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 47.0, 29.0, 102.0, 17.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.slide @slide_up 30 @slide_down 20",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-26",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 31.0, 136.0, 184.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-27",
"numinlets" : 1,
"patching_rect" : [ 218.0, 359.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "lighting_enable $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-28",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 218.0, 376.0, 92.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend mode",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-29",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 185.0, 318.0, 70.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "umenu",
"items" : [ "cubes", ",", "tetra" ],
"outlettype" : [ "int", "", "" ],
"fontname" : "Arial",
"types" : [ ],
"id" : "obj-30",
"pattrmode" : 1,
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 185.0, 297.0, 100.0, 17.0 ],
"numoutlets" : 3
}

}
, {
"box" : {
"maxclass" : "flonum",
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"triscale" : 0.9,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-31",
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 128.0, 299.0, 35.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "epsilon $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-32",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 128.0, 319.0, 55.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "flonum",
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"triscale" : 0.9,
"outlettype" : [ "float", "bang" ],
"fontname" : "Arial",
"id" : "obj-33",
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 70.0, 300.0, 35.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "isolevel $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-34",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 68.0, 319.0, 59.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.isosurf fud @lighting_enable 1 @color 1 1 1 1 @isolevel 0.41 @blend_enable 1 @depth_enable 1 @smooth_shading 1 @scale 2. 2. 2. @cull_face 1 1",
"linecount" : 2,
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-35",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 31.0, 406.0, 570.0, 27.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-40",
"numinlets" : 1,
"patching_rect" : [ 31.0, 25.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "qmetro 5",
"outlettype" : [ "bang" ],
"fontname" : "Arial",
"id" : "obj-41",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 31.0, 49.0, 51.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t erase b b",
"outlettype" : [ "erase", "bang", "bang" ],
"fontname" : "Arial",
"id" : "obj-43",
"fontsize" : 9.0,
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 212.0, 73.0, 90.0, 17.0 ],
"numoutlets" : 3
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.handle fud @auto_rotate 1",
"outlettype" : [ "", "" ],
"fontname" : "Arial",
"id" : "obj-44",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 63.0, 375.0, 136.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.render fud @blend_enable 1 @erase_color 0.8 0.8 0.7 1.",
"outlettype" : [ "bang", "" ],
"fontname" : "Arial",
"id" : "obj-45",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 212.0, 113.0, 257.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix rad 1 float32 50 50 50",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-46",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 31.0, 113.0, 163.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "videoBlobs",
"fontname" : "Arial",
"id" : "obj-47",
"fontsize" : 20.0,
"numinlets" : 1,
"patching_rect" : [ 483.0, 25.0, 173.0, 29.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.xfade @xfade 0.95",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-48",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 31.0, 160.0, 109.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix 1 float32 50 50 50 @usesrcdim 1 @srcdimstart 1 1 1 @srcdimend 48 48 48 @interp 1",
"linecount" : 4,
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-49",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 39.0, 200.0, 141.0, 48.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p matrix-show",
"fontname" : "Arial",
"id" : "obj-50",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 57.0, 182.0, 77.0, 17.0 ],
"numoutlets" : 0,
"patcher" : {
"fileversion" : 1,
"rect" : [ 271.0, 464.0, 250.0, 419.0 ],
"bglocked" : 0,
"defrect" : [ 271.0, 464.0, 250.0, 419.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "int" ],
"id" : "obj-1",
"numinlets" : 0,
"patching_rect" : [ 24.0, 22.0, 15.0, 15.0 ],
"numoutlets" : 1,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-2",
"numinlets" : 1,
"patching_rect" : [ 24.0, 39.0, 15.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 200",
"outlettype" : [ "bang" ],
"fontname" : "Arial",
"id" : "obj-3",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 24.0, 59.0, 58.0, 17.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 2 0 49",
"outlettype" : [ "int", "", "", "int" ],
"fontname" : "Arial",
"id" : "obj-4",
"fontsize" : 9.0,
"numinlets" : 5,
"patching_rect" : [ 24.0, 79.0, 77.0, 17.0 ],
"numoutlets" : 4
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "srcdimstart 0 0 $1, srcdimend 49 49 $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-5",
"fontsize" : 9.0,
"numinlets" : 2,
"patching_rect" : [ 24.0, 99.0, 192.0, 15.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "jit.pwindow",
"outlettype" : [ "", "" ],
"id" : "obj-6",
"numinlets" : 1,
"depthbuffer" : 0,
"patching_rect" : [ 2.0, 188.0, 181.0, 176.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix 1 float32 50 50 50 @usesrcdim 1",
"outlettype" : [ "jit_matrix", "" ],
"fontname" : "Arial",
"id" : "obj-7",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 3.0, 131.0, 211.0, 17.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "jit_matrix" ],
"id" : "obj-8",
"numinlets" : 0,
"patching_rect" : [ 3.0, 39.0, 15.0, 15.0 ],
"numoutlets" : 1,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "This pwindow scrolls back and forth through the z dimension of our 3-d matrix",
"linecount" : 4,
"fontname" : "Arial",
"id" : "obj-9",
"fontsize" : 9.0,
"numinlets" : 1,
"patching_rect" : [ 89.0, 129.0, 117.0, 48.0 ],
"numoutlets" : 0
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ 33.5, 125.0, 12.5, 125.0 ]
}

}
]
}
,
"saved_object_attributes" : {
"default_fontsize" : 12.0,
"fontname" : "Arial",
"fontface" : 0,
"default_fontface" : 0,
"fontsize" : 12.0,
"globalpatchername" : "",
"default_fontname" : "Arial"
}

}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-51", 0 ],
"destination" : [ "obj-52", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 194.5, 353.0, 40.5, 353.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 137.5, 353.0, 40.5, 353.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 77.5, 353.0, 40.5, 353.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 227.5, 402.0, 40.5, 402.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 320.5, 402.0, 40.5, 402.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 418.5, 402.0, 40.5, 402.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-44", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 72.5, 399.0, 40.5, 399.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-35", 0 ],
"hidden" : 0,
"midpoints" : [ 575.5, 269.0, 40.5, 269.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ 512.5, 180.0, 575.5, 180.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"midpoints" : [ 468.5, 238.0, 456.0, 238.0, 456.0, 99.0, 221.5, 99.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-43", 1 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"midpoints" : [ 257.0, 101.0, 221.5, 101.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-43", 2 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ 292.5, 96.0, 512.5, 96.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ 613.5, 140.0, 512.5, 140.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-21", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ 480.0, 340.0, 500.0, 340.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-12", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ 512.5, 180.0, 468.5, 180.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-21", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ 480.0, 340.0, 459.0, 340.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-22", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ 40.0, 45.0, 256.5, 45.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ 40.5, 69.0, 221.5, 69.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-30", 1 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"midpoints" : [ 235.0, 315.0, 194.5, 315.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-49", 0 ],
"destination" : [ "obj-48", 1 ],
"hidden" : 0,
"midpoints" : [ 48.5, 257.0, 186.0, 257.0, 186.0, 156.0, 130.5, 156.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-32", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-50", 1 ],
"hidden" : 0,
"midpoints" : [ 40.0, 45.0, 124.5, 45.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-34", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-50", 0 ],
"hidden" : 0,
"midpoints" : [ 40.5, 179.0, 66.5, 179.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-49", 0 ],
"hidden" : 0,
"midpoints" : [ 40.5, 188.0, 48.5, 188.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-48", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-46", 0 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-46", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-46", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-40", 0 ],
"destination" : [ "obj-41", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}


February 27, 2009 | 7:13 pm

hey aaron, couple things.
first please edit your last post and use the Edit->Copy Compressed feature to post your patch to the forum.

second. your patch works fine for me, as soon as you connect the metro to the matrix named "fud". it’s a matrix, so it needs a bang to output its contents.

third. if you are still getting errors, you need to file a proper bug report with os, max version, system specs and steps to reproduce.

-rob


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