Forums > Jitter

isolate a single color in a matrix?

October 16, 2008 | 3:47 am

Hey all,

I am trying to make a sort of extended exposure effect but with live video and I want to try and isolate a single color within a maximum lumination (so that only bright LED lights come in, in somewhat natural lighting conditions otherwise) Here is what I have so far..someone helped me slog through working with jit.expr but it doesn’t quite work..some red things show through when i select blue only for example..any tips would be appreciated..I’m also having issues doing the succinct text patch posts..but here it is:

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 554.0, 79.0, 1006.0, 845.0 ],
"bglocked" : 0,
"defrect" : [ 554.0, 79.0, 1006.0, 845.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 9.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",
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-24",
"patching_rect" : [ 351.0, 662.0, 235.0, 176.25 ],
"outlettype" : [ "", "" ]
}

}
, {
"box" : {
"maxclass" : "jit.pwindow",
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-13",
"patching_rect" : [ 104.0, 518.0, 235.0, 176.25 ],
"outlettype" : [ "", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.dimmap @invert 1 0",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-10",
"fontname" : "Arial",
"patching_rect" : [ 604.0, 567.0, 100.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.op @op +",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-8",
"fontname" : "Arial",
"patching_rect" : [ 563.0, 603.0, 59.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-61",
"fontname" : "Arial",
"patching_rect" : [ 540.0, 17.0, 48.0, 17.0 ],
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "1.",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-60",
"fontname" : "Arial",
"patching_rect" : [ 593.0, 48.0, 32.5, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.91014",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-59",
"fontname" : "Arial",
"patching_rect" : [ 546.0, 49.0, 43.0, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.07143",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-58",
"fontname" : "Arial",
"patching_rect" : [ 497.0, 49.0, 43.0, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-54",
"patching_rect" : [ 439.0, 469.0, 20.0, 20.0 ],
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-55",
"patching_rect" : [ 408.5, 469.0, 20.0, 20.0 ],
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pak invert 0 0",
"fontsize" : 11.595187,
"numinlets" : 3,
"numoutlets" : 1,
"id" : "obj-56",
"fontname" : "Arial",
"patching_rect" : [ 378.0, 493.0, 80.0, 20.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.dimmap @invert 1 0",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-27",
"fontname" : "Arial",
"patching_rect" : [ 74.0, 398.0, 100.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 32",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-53",
"fontname" : "Arial",
"patching_rect" : [ 164.0, 282.0, 35.0, 17.0 ],
"outlettype" : [ "bang", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "key",
"fontsize" : 9.0,
"numinlets" : 0,
"numoutlets" : 4,
"id" : "obj-52",
"fontname" : "Arial",
"patching_rect" : [ 166.0, 252.0, 59.5, 17.0 ],
"outlettype" : [ "int", "int", "int", "int" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.21",
"hidden" : 1,
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-48",
"fontname" : "Arial",
"patching_rect" : [ 562.0, 410.0, 31.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.38",
"hidden" : 1,
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-47",
"fontname" : "Arial",
"patching_rect" : [ 666.0, 410.0, 33.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "2",
"hidden" : 1,
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-46",
"fontname" : "Arial",
"patching_rect" : [ 724.0, 410.0, 30.5, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "7",
"hidden" : 1,
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-45",
"fontname" : "Arial",
"patching_rect" : [ 639.0, 412.0, 18.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-22",
"fontname" : "Arial",
"patching_rect" : [ 636.0, 390.0, 58.0, 20.0 ],
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.brcosa",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-28",
"fontname" : "Arial",
"patching_rect" : [ 561.0, 518.0, 57.0, 20.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.wake",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-41",
"fontname" : "Arial",
"patching_rect" : [ 561.0, 492.0, 49.0, 20.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "contrast $1",
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-30",
"fontname" : "Arial",
"patching_rect" : [ 723.0, 467.0, 68.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-31",
"fontname" : "Arial",
"patching_rect" : [ 723.0, 444.0, 50.0, 20.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "bleed $1",
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-32",
"fontname" : "Arial",
"patching_rect" : [ 665.0, 467.0, 55.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-33",
"fontname" : "Arial",
"patching_rect" : [ 665.0, 444.0, 50.0, 20.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "fb $1",
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-49",
"fontname" : "Arial",
"patching_rect" : [ 613.0, 467.0, 36.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-50",
"fontname" : "Arial",
"patching_rect" : [ 613.0, 444.0, 50.0, 20.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-51",
"fontname" : "Arial",
"patching_rect" : [ 561.0, 444.0, 50.0, 20.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p esc-fullscreen",
"fontsize" : 11.595187,
"numinlets" : 0,
"numoutlets" : 1,
"id" : "obj-72",
"fontname" : "Arial",
"patching_rect" : [ 597.824768, 622.958557, 90.0, 20.0 ],
"outlettype" : [ "" ],
"patcher" : {
"fileversion" : 1,
"rect" : [ 86.0, 108.0, 235.0, 205.0 ],
"bglocked" : 0,
"defrect" : [ 86.0, 108.0, 235.0, 205.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 10.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" : "comment",
"text" : "Escape ASCII Code",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-7",
"fontname" : "Arial",
"patching_rect" : [ 86.0, 67.0, 114.0, 20.0 ]
}

}
, {
"box" : {
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"id" : "obj-2",
"patching_rect" : [ 27.0, 157.25, 25.0, 25.0 ],
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "fullscreen $1",
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-3",
"fontname" : "Arial",
"patching_rect" : [ 27.0, 127.25, 76.0, 18.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "key",
"fontsize" : 11.595187,
"numinlets" : 0,
"numoutlets" : 4,
"id" : "obj-4",
"fontname" : "Arial",
"patching_rect" : [ 27.0, 37.0, 46.0, 20.0 ],
"outlettype" : [ "int", "int", "int", "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 27",
"fontsize" : 11.595187,
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-5",
"fontname" : "Arial",
"patching_rect" : [ 27.0, 67.25, 57.0, 20.0 ],
"outlettype" : [ "bang", "" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-6",
"patching_rect" : [ 27.0, 97.25, 20.0, 20.0 ],
"outlettype" : [ "int" ]
}

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

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

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

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

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

}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.window",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-26",
"fontname" : "Arial",
"patching_rect" : [ 565.0, 645.0, 50.0, 17.0 ],
"outlettype" : [ "bang", "" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-21",
"fontname" : "Arial",
"patching_rect" : [ 394.0, 95.0, 50.0, 17.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-20",
"fontname" : "Arial",
"patching_rect" : [ 327.0, 94.0, 50.0, 17.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-19",
"fontname" : "Arial",
"patching_rect" : [ 249.0, 98.0, 50.0, 17.0 ],
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "close",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-42",
"fontname" : "Arial",
"patching_rect" : [ 156.0, 53.0, 32.5, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "unpack 0. 0. 0.",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 3,
"id" : "obj-37",
"fontname" : "Arial",
"patching_rect" : [ 261.0, 70.0, 126.0, 20.0 ],
"outlettype" : [ "float", "float", "float" ]
}

}
, {
"box" : {
"maxclass" : "swatch",
"numinlets" : 3,
"numoutlets" : 2,
"id" : "obj-38",
"patching_rect" : [ 261.0, 10.0, 186.0, 56.0 ],
"outlettype" : [ "", "float" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pak sqrt(pow(in[0].p[1]- 0. \,2)+pow(in[0].p[2]- 0. \,2)+pow(in[0].p[3]- 0. \,2))",
"fontsize" : 11.595187,
"numinlets" : 7,
"numoutlets" : 1,
"id" : "obj-29",
"fontname" : "Arial",
"patching_rect" : [ 143.0, 123.0, 392.0, 20.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "tosymbol",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-43",
"fontname" : "Arial",
"patching_rect" : [ 143.0, 145.0, 55.0, 20.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend expr",
"fontsize" : 11.595187,
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-44",
"fontname" : "Arial",
"patching_rect" : [ 143.0, 169.0, 77.0, 20.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clear",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-16",
"fontname" : "Arial",
"patching_rect" : [ 91.0, 310.0, 32.5, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-15",
"patching_rect" : [ 46.0, 24.0, 20.0, 20.0 ],
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.op @op max",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-12",
"fontname" : "Arial",
"patching_rect" : [ 58.0, 363.0, 71.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "number",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-11",
"fontname" : "Arial",
"patching_rect" : [ 113.0, 236.0, 50.0, 17.0 ],
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.expr @inputs 1",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-9",
"fontname" : "Arial",
"patching_rect" : [ 75.0, 196.0, 80.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.op @op >=p",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 2,
"id" : "obj-7",
"fontname" : "Arial",
"patching_rect" : [ 56.0, 265.0, 69.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"id" : "obj-5",
"patching_rect" : [ 77.0, 22.0, 25.0, 25.0 ],
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 30",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-4",
"fontname" : "Arial",
"patching_rect" : [ 77.0, 58.0, 46.0, 17.0 ],
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "open",
"fontsize" : 9.0,
"numinlets" : 2,
"numoutlets" : 1,
"id" : "obj-3",
"fontname" : "Arial",
"patching_rect" : [ 191.0, 52.0, 32.5, 15.0 ],
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.qt.grab",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-2",
"fontname" : "Arial",
"patching_rect" : [ 77.0, 93.0, 48.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix",
"fontsize" : 9.0,
"numinlets" : 1,
"numoutlets" : 2,
"id" : "obj-1",
"fontname" : "Arial",
"patching_rect" : [ 158.0, 326.0, 44.0, 17.0 ],
"outlettype" : [ "jit_matrix", "" ]
}

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

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

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

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

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

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

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

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-61", 0 ],
"destination" : [ "obj-60", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-61", 0 ],
"destination" : [ "obj-59", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-61", 0 ],
"destination" : [ "obj-58", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-38", 0 ],
"destination" : [ "obj-37", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

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

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

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

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

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

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

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

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

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ 732.5, 515.0, 570.5, 515.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-41", 0 ],
"hidden" : 0,
"midpoints" : [ 674.5, 487.0, 570.5, 487.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-49", 0 ],
"destination" : [ "obj-41", 0 ],
"hidden" : 0,
"midpoints" : [ 622.5, 490.0, 570.5, 490.0 ]
}

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-50", 0 ],
"destination" : [ "obj-49", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

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

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

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

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

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

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

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "ob


October 16, 2008 | 2:31 pm

Hi Laserpilot,

Are you talking about something like this?

Also, please try to use the compressed format when posting patches. select all in patch —> go to edit —> select copy compressed.

best,
Zachary

– Pasted Max Patch, click to expand. –

October 16, 2008 | 2:59 pm

yess..that works a bit better..it looks like i still have to pretty much crank everything to be the brightest bright so i lose a lot of color info, but i think this makes a little more sense to me than jit.expr..thanks!


October 26, 2008 | 12:24 am

after playing around with jit.charmap a bit it seems like it may be a better solution to isolating colors..however I’m trying to figure out a better (ie simpler) way to create the color map than whats in the jit.charmap help file. Would swatch be usable for this? Just to output a small gradient/single color but have the rest of the 254 values be black?


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