A sketchy implementation of cubehelix color scheme algorithm for Max/MSP/Jitter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

4107 lines
89 KiB

{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 1203.0, 137.0, 646.0, 760.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-83",
"maxclass" : "newobj",
"numinlets" : 4,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 69.0, 346.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"visible" : 1,
"boxes" : [ {
"box" : {
"id" : "obj-23",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 243.0, 363.0, 192.0, 22.0 ],
"text" : "color_start 0.046667 0.725 0. 1."
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 243.0, 391.0, 192.0, 22.0 ],
"text" : "color_end 1.566667 0.725 1. 1."
}
}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 163.0, 71.0, 29.5, 22.0 ],
"text" : "/ 2."
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 397.0, 176.0, 61.0, 22.0 ],
"text" : "color_end"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 382.0, 161.0, 65.0, 22.0 ],
"text" : "color_start"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 314.0, 176.0, 61.0, 22.0 ],
"text" : "color_end"
}
}
, {
"box" : {
"id" : "obj-15",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 299.0, 161.0, 65.0, 22.0 ],
"text" : "color_start"
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "" ],
"patching_rect" : [ 309.0, 108.0, 44.0, 22.0 ],
"text" : "sel 0 1"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "float" ],
"patching_rect" : [ 163.0, 108.0, 29.5, 22.0 ],
"text" : "t f f"
}
}
, {
"box" : {
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "float" ],
"patching_rect" : [ 47.0, 108.0, 29.5, 22.0 ],
"text" : "t f f"
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "float" ],
"patching_rect" : [ 108.0, 108.0, 29.5, 22.0 ],
"text" : "t b f"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 108.0, 154.0, 29.5, 22.0 ],
"text" : "+ 0."
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 220.0, 272.0, 155.0, 22.0 ],
"text" : "pak color_end -1.5 0.5 1. 1."
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 47.0, 272.0, 147.0, 22.0 ],
"text" : "pak color_start 0. 0.5 0. 1."
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-5",
"index" : 1,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 47.0, 396.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-4",
"index" : 4,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 309.0, 27.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-3",
"index" : 3,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 163.0, 27.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-2",
"index" : 2,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 108.0, 27.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"index" : 1,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 47.0, 27.0, 30.0, 30.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 1 ],
"source" : [ "obj-10", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 1 ],
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-11", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 2 ],
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 2 ],
"source" : [ "obj-12", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"order" : 1,
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"order" : 0,
"source" : [ "obj-13", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"order" : 1,
"source" : [ "obj-13", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-15", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"source" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 1 ],
"order" : 0,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"order" : 1,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"order" : 0,
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"order" : 1,
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"source" : [ "obj-9", 0 ]
}
}
]
}
,
"patching_rect" : [ 396.0, 137.0, 91.0, 22.0 ],
"saved_object_attributes" : {
"description" : "",
"digest" : "",
"globalpatchername" : "",
"tags" : ""
}
,
"text" : "p process_data"
}
}
, {
"box" : {
"id" : "obj-82",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 775.0, 255.0, 67.0, 22.0 ],
"text" : "* 3.141593"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-81",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 751.0, 289.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-76",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 625.0, 381.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-73",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 745.477272727272748, 381.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-71",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 573.0, 381.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-69",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 741.0, 331.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-65",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 517.977272727272748, 381.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-66",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 486.727272727272748, 414.0, 147.0, 22.0 ],
"text" : "pak color_start 0. 0.5 0. 1."
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-64",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 682.977272727272748, 381.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-62",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 651.727272727272748, 414.0, 144.0, 22.0 ],
"text" : "pak color_end 0. 0.5 0. 1."
}
}
, {
"box" : {
"id" : "obj-58",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 578.0, 331.0, 121.0, 22.0 ],
"text" : "color_end 0. 0.5 1. 1."
}
}
, {
"box" : {
"id" : "obj-59",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 573.0, 305.0, 131.0, 22.0 ],
"text" : "color_start 0.5 0.5 0. 1."
}
}
, {
"box" : {
"id" : "obj-56",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 406.0, 331.0, 165.0, 22.0 ],
"presentation_linecount" : 2,
"text" : "color_end -1.333333 0.5 1. 1."
}
}
, {
"box" : {
"id" : "obj-51",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 406.0, 363.0, 29.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"id" : "obj-48",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 406.0, 305.0, 165.0, 22.0 ],
"presentation_linecount" : 2,
"text" : "color_start 0.166666 0.5 0. 1."
}
}
, {
"box" : {
"id" : "obj-31",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 309.441558441558414, 354.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-27",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 204.441558441558414, 387.0, 129.0, 22.0 ],
"text" : "jit.matrix 4 float32 10 1"
}
}
, {
"box" : {
"id" : "obj-26",
"maxclass" : "jit.pwindow",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 15.5, 738.0, 602.227272727272748, 56.53314208984375 ],
"sync" : 1
}
}
, {
"box" : {
"id" : "obj-24",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 527.0, 637.0, 29.5, 22.0 ],
"text" : "-1"
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "jit.pwindow",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 15.5, 667.0, 602.227272727272748, 56.53314208984375 ],
"sync" : 1
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 195.0, 151.0, 29.5, 22.0 ],
"text" : "0"
}
}
, {
"box" : {
"bgcolor" : [ 1.0, 0.0, 0.0, 1.0 ],
"color" : [ 1.0, 0.0, 0.0, 1.0 ],
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "jit.gen",
"rect" : [ 1206.0, 214.0, 672.0, 730.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.0, 14.0, 169.0, 22.0 ],
"text" : "param color_end -1.5 0.5 1. 1."
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 105.0, 14.0, 162.0, 22.0 ],
"text" : "param color_start 0. 0.5 0. 1."
}
}
, {
"box" : {
"code" : "h_s = color_start.x * TWOPI;\r\nh_e = color_end.x * TWOPI - h_s;\r\ns_s = color_start.y;\r\ns_e = color_end.y - s_s;\r\nl_s = color_start.z;\r\nl_e = color_end.z - l_s;\r\n\r\n\r\nh = h_s + h_e * norm;\r\nl = pow(l_s + l_e * norm, gamma);\r\na = (s_s + s_e * norm) * l * (1 - l);\r\n\r\ncosh = cos(h);\r\nsinh = sin(h);\r\n\r\nr = l + a * (-0.14861 * cosh + 1.78277 * sinh);\r\n\r\ng = l + a * (-0.29227 * cosh - 0.90649 * sinh);\r\n\r\nb = l + a * (1.97294 * cosh);\r\n\r\nout1 = vec(1, r, g, b);",
"fontface" : 0,
"fontname" : "<Monospaced>",
"fontsize" : 12.0,
"id" : "obj-12",
"maxclass" : "codebox",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 84.0, 531.0, 382.0 ]
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 540.0, 14.0, 99.0, 22.0 ],
"text" : "param gamma 1."
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 14.0, 28.0, 22.0 ],
"text" : "in 1"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 50.0, 483.0, 35.0, 22.0 ],
"text" : "out 1"
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-12", 0 ]
}
}
]
}
,
"patching_rect" : [ 204.441558441558414, 440.0, 189.0, 22.0 ],
"text" : "jit.gen @title cubehelix-interpolate"
}
}
, {
"box" : {
"id" : "obj-67",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 4,
"outlettype" : [ "float", "float", "", "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 45.0, 152.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-40",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 544.0, 400.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-19",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 151.0, 317.0, 33.0, 20.0 ],
"text" : "rgba"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 157.0, 84.0, 33.0, 20.0 ],
"text" : "argb"
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 81.0, 30.0, 33.0, 20.0 ],
"text" : "rgba"
}
}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 33.0, 317.0, 113.0, 22.0 ],
"text" : "zl.indexmap 1 2 3 0"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 33.0, 84.0, 113.0, 22.0 ],
"text" : "zl.indexmap 3 0 1 2"
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 33.0, 170.0, 29.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.0, 138.0, 129.0, 22.0 ],
"text" : "prepend setcell 0 0 val"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-5",
"index" : 1,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 33.0, 361.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 33.0, 272.0, 40.0, 22.0 ],
"text" : "jit.iter"
}
}
, {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 33.0, 239.0, 60.0, 22.0 ],
"text" : "jit.rgb2hsl"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 33.0, 206.0, 123.0, 22.0 ],
"text" : "jit.matrix 4 float32 1 1"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"index" : 1,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.0, 20.0, 30.0, 30.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-13", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-9", 0 ]
}
}
]
}
,
"patching_rect" : [ 276.0, 229.0, 58.0, 22.0 ],
"saved_object_attributes" : {
"description" : "",
"digest" : "",
"globalpatchername" : "",
"tags" : ""
}
,
"text" : "p rgb2hsl"
}
}
, {
"box" : {
"id" : "obj-39",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 544.0, 400.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-19",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 151.0, 317.0, 33.0, 20.0 ],
"text" : "rgba"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 157.0, 84.0, 33.0, 20.0 ],
"text" : "argb"
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 81.0, 30.0, 33.0, 20.0 ],
"text" : "rgba"
}
}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 33.0, 317.0, 113.0, 22.0 ],
"text" : "zl.indexmap 1 2 3 0"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 33.0, 84.0, 113.0, 22.0 ],
"text" : "zl.indexmap 3 0 1 2"
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 33.0, 170.0, 29.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.0, 138.0, 129.0, 22.0 ],
"text" : "prepend setcell 0 0 val"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-5",
"index" : 1,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 33.0, 361.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 33.0, 272.0, 40.0, 22.0 ],
"text" : "jit.iter"
}
}
, {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 33.0, 239.0, 60.0, 22.0 ],
"text" : "jit.rgb2hsl"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 33.0, 206.0, 123.0, 22.0 ],
"text" : "jit.matrix 4 float32 1 1"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"index" : 1,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.0, 20.0, 30.0, 30.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-13", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-9", 0 ]
}
}
]
}
,
"patching_rect" : [ 89.0, 229.0, 58.0, 22.0 ],
"saved_object_attributes" : {
"description" : "",
"digest" : "",
"globalpatchername" : "",
"tags" : ""
}
,
"text" : "p rgb2hsl"
}
}
, {
"box" : {
"id" : "obj-36",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 385.0, 259.0, 242.0, 22.0 ],
"text" : "0. 0. 0. 1. 1. 1. 1. 1."
}
}
, {
"box" : {
"id" : "obj-34",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 562.0, 180.0, 29.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"id" : "obj-33",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 505.0, 203.0, 39.0, 22.0 ],
"text" : "zl.join"
}
}
, {
"box" : {
"id" : "obj-32",
"maxclass" : "swatch",
"numinlets" : 3,
"numoutlets" : 2,
"outlettype" : [ "", "float" ],
"parameter_enable" : 0,
"patching_rect" : [ 560.0, 118.0, 128.0, 32.0 ],
"saturation" : 1.0
}
}
, {
"box" : {
"id" : "obj-31",
"maxclass" : "swatch",
"numinlets" : 3,
"numoutlets" : 2,
"outlettype" : [ "", "float" ],
"parameter_enable" : 0,
"patching_rect" : [ 425.0, 118.0, 128.0, 32.0 ],
"saturation" : 1.0
}
}
, {
"box" : {
"id" : "obj-28",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 363.0, 30.0, 85.0, 22.0 ],
"text" : "0 0 0 1 1 1 1 1"
}
}
, {
"box" : {
"id" : "obj-26",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 333.0, 67.0, 129.0, 22.0 ],
"text" : "0. 0.5 0. 1 -1.5 0.5 1. 1"
}
}
, {
"box" : {
"id" : "obj-24",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 122.0, 86.0, 55.0, 22.0 ],
"text" : "zl.slice 4"
}
}
, {
"box" : {
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 544.666666666666629, 350.0, 72.0, 22.0 ],
"text" : "prepend l_e"
}
}
, {
"box" : {
"id" : "obj-22",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 419.666666666666686, 350.0, 71.0, 22.0 ],
"text" : "prepend l_s"
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 576.666666666666629, 420.0, 79.0, 20.0 ],
"presentation_linecount" : 2,
"text" : "end lightness"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-19",
"index" : 4,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 544.666666666666629, 410.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 451.666666666666686, 420.0, 83.0, 20.0 ],
"presentation_linecount" : 2,
"text" : "start lightness"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-6",
"index" : 3,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 419.666666666666686, 410.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 307.916666666666686, 331.0, 71.0, 20.0 ],
"text" : "end hue"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 307.916666666666686, 420.0, 71.0, 20.0 ],
"text" : "rotation"
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "float" ],
"patching_rect" : [ 275.916666666666686, 330.0, 29.5, 22.0 ],
"text" : "t b f"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 275.916666666666686, 372.0, 29.5, 22.0 ],
"text" : "!- 0."
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-15",
"index" : 2,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 275.916666666666686, 410.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-14",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 121.499999999999986, 420.0, 71.0, 20.0 ],
"text" : "start hue"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-12",
"index" : 1,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 89.0, 410.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "float", "float", "float", "float" ],
"patching_rect" : [ 276.0, 290.0, 74.0, 22.0 ],
"text" : "unpack f f f f"
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "float", "float", "float", "float" ],
"patching_rect" : [ 89.0, 290.0, 74.0, 22.0 ],
"text" : "unpack f f f f"
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 276.0, 184.0, 52.0, 22.0 ],
"text" : "gate 2 1"
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 15.0, 79.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 15.0, 109.0, 29.5, 22.0 ],
"text" : "+ 1"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 89.0, 184.0, 52.0, 22.0 ],
"text" : "gate 2 1"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-2",
"index" : 2,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 122.0, 22.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"index" : 1,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 15.0, 22.0, 30.0, 30.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"order" : 1,
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-22", 0 ],
"source" : [ "obj-10", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 0 ],
"source" : [ "obj-11", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 1 ],
"source" : [ "obj-17", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-24", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 1 ],
"source" : [ "obj-24", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"source" : [ "obj-24", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-24", 0 ],
"source" : [ "obj-26", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-24", 0 ],
"source" : [ "obj-28", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-31", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-34", 0 ],
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-24", 0 ],
"order" : 1,
"source" : [ "obj-33", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-36", 1 ],
"order" : 0,
"source" : [ "obj-33", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 1 ],
"source" : [ "obj-34", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-34", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-39", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-4", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"source" : [ "obj-40", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"order" : 1,
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"order" : 0,
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"source" : [ "obj-8", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-40", 0 ],
"source" : [ "obj-8", 0 ]
}
}
]
}
,
"patching_rect" : [ 594.538461538461547, 112.0, 132.0, 22.0 ],
"saved_object_attributes" : {
"description" : "",
"digest" : "",
"globalpatchername" : "",
"tags" : ""
}
,
"text" : "p process_input_colors"
}
}
, {
"box" : {
"id" : "obj-57",
"linecount" : 2,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 35.0, 317.0, 50.0, 36.0 ],
"text" : "0.106106"
}
}
, {
"box" : {
"id" : "obj-53",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 15.5, 260.0, 52.0, 22.0 ],
"text" : "/ 3.1415"
}
}
, {
"box" : {
"id" : "obj-52",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 15.5, 196.0, 90.0, 22.0 ],
"text" : "0.31059"
}
}
, {
"box" : {
"id" : "obj-49",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 132.0, 137.0, 59.0, 22.0 ],
"text" : "0.333333"
}
}
, {
"box" : {
"id" : "obj-99",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 496.0, 720.0, 57.0, 22.0 ],
"text" : "plane $1"
}
}
, {
"box" : {
"disabled" : [ 0, 0, 0, 0 ],
"id" : "obj-187",
"itemtype" : 0,
"maxclass" : "radiogroup",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 496.0, 645.0, 18.0, 66.0 ],
"size" : 4,
"value" : 1
}
}
, {
"box" : {
"cols" : 128,
"colwidth" : 138,
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-208",
"maxclass" : "jit.cellblock",
"numinlets" : 2,
"numoutlets" : 4,
"outlettype" : [ "list", "", "", "" ],
"patching_rect" : [ 219.5, 835.766571044921875, 344.0, 139.0 ],
"precision" : 3,
"rows" : 1
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-214",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 481.0, 755.0, 66.0, 23.0 ],
"text" : "128 1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-217",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 412.0, 755.0, 66.0, 23.0 ],
"text" : "float32"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-218",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 328.0, 755.0, 74.0, 23.0 ],
"text" : "4"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-219",
"maxclass" : "newobj",
"numinlets" : 4,
"numoutlets" : 4,
"outlettype" : [ "", "", "", "" ],
"patching_rect" : [ 328.0, 720.0, 159.0, 23.0 ],
"text" : "route planecount type dim"
}
}
, {
"box" : {
"id" : "obj-220",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 328.0, 687.0, 75.0, 22.0 ],
"text" : "jit.matrixinfo"
}
}
, {
"box" : {
"id" : "obj-221",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 328.0, 648.0, 55.0, 22.0 ],
"text" : "jit.matrix"
}
}
, {
"box" : {
"id" : "obj-37",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 552.0, 846.0, 30.0, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-40",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 552.0, 746.0, 112.0, 23.0 ],
"text" : "planemap 0 1 2 3"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-43",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 552.0, 821.0, 112.0, 23.0 ],
"text" : "planemap 3 3 3 3"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-46",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 552.0, 798.0, 112.0, 23.0 ],
"text" : "planemap 2 2 2 2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 13.0,
"id" : "obj-47",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 552.0, 771.0, 112.0, 23.0 ],
"text" : "planemap 1 1 1 1"
}
}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "jit.pwindow",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 552.0, 877.0, 80.0, 60.0 ],
"planemap" : [ 1, 1, 1, 1 ],
"sync" : 1
}
}
, {
"box" : {
"id" : "obj-32",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 130.0, 176.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-42",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "float" ],
"patching_rect" : [ 303.941558441558414, 270.0, 29.5, 22.0 ],
"text" : "t b f"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-41",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 252.441558441558414, 338.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-39",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 252.441558441558414, 306.0, 81.0, 22.0 ],
"text" : "expr ($f1-$f2)"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-38",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 248.941558441558414, 266.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-34",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "int", "int", "" ],
"patching_rect" : [ 65.0, 780.0, 78.0, 22.0 ],
"text" : "unpack s i i s"
}
}
, {
"box" : {
"id" : "obj-29",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 665.727272727272748, 202.0, 29.5, 22.0 ],
"text" : "t l l"
}
}
, {
"box" : {
"id" : "obj-28",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 214.0, 679.0, 55.0, 22.0 ],
"text" : "zl.slice 1"
}
}
, {
"box" : {
"id" : "obj-25",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 214.0, 738.0, 29.5, 22.0 ],
"text" : "- 1"
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "int" ],
"patching_rect" : [ 190.0, 710.0, 43.0, 22.0 ],
"text" : "Uzi 10"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 190.0, 679.0, 22.0, 22.0 ],
"text" : "t b"
}
}
, {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 190.0, 648.0, 52.0, 22.0 ],
"text" : "gate 1 0"
}
}
, {
"box" : {
"id" : "obj-125",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 555.727272727272748, 202.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-123",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 555.727272727272748, 234.0, 71.0, 22.0 ],
"text" : "prepend flip"
}
}
, {
"box" : {
"id" : "obj-122",
"linecount" : 8,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 318.168831168831275, 491.0, 622.558441558441586, 117.0 ],
"text" : "Bang: triggers outputs\nauto: If 0, a bang is needed to trigger output. If 1 (default), any paramater change triggers output.\nstart: hue from which to start\nrotation: number of rotations (1. being a full revolution)\ngamma: \nsaturation: \ncolormodeoutput: RGB if 0, HSL if 1\ncolormodeinput: RGB if 0, HSL if 1 (stands for start_color and end_color messages)"
}
}
, {
"box" : {
"id" : "obj-120",
"linecount" : 10,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 818.727272727272862, 586.0, 153.0, 144.0 ],
"text" : "TO-DO\n- Start-end range for hue and lightness: https://github.com/d3/d3-plugins/tree/master/cubehelix\n- RGB/HSL start/end inputs\n- proper range for hue (0-1 with 0 being red instead of 0-3 with 1 being red"
}
}
, {
"box" : {
"id" : "obj-115",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 31.0, 440.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-113",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 31.0, 479.0, 29.5, 22.0 ],
"text" : "+ 1"
}
}
, {
"box" : {
"id" : "obj-112",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 31.0, 510.0, 52.0, 22.0 ],
"text" : "gate 2 1"
}
}
, {
"box" : {
"id" : "obj-109",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 64.0, 547.0, 60.0, 22.0 ],
"text" : "jit.rgb2hsl"
}
}
, {
"box" : {
"id" : "obj-107",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 896.727272727272748, 299.0, 75.0, 22.0 ],
"text" : "prepend dim"
}
}
, {
"box" : {
"id" : "obj-106",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 860.727272727272748, 267.0, 79.0, 22.0 ],
"text" : "prepend type"
}
}
, {
"box" : {
"id" : "obj-98",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 860.727272727272748, 234.0, 55.0, 22.0 ],
"text" : "zl.slice 1"
}
}
, {
"box" : {
"id" : "obj-95",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 860.727272727272748, 75.0, 72.0, 22.0 ],
"text" : "patcherargs"
}
}
, {
"box" : {
"id" : "obj-92",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 737.5, 143.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-88",
"index" : 2,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 84.666666666666657, 887.5662841796875, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-87",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "int" ],
"patching_rect" : [ 84.666666666666657, 811.0662841796875, 29.5, 22.0 ],
"text" : "t b i"
}
}
, {
"box" : {
"id" : "obj-86",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 84.666666666666657, 843.5662841796875, 106.0, 22.0 ],
"text" : "pack getcolor i f f f"
}
}
, {
"box" : {
"id" : "obj-85",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "int" ],
"patching_rect" : [ 737.5, 172.0, 29.5, 22.0 ],
"text" : "t i i"
}
}
, {
"box" : {
"id" : "obj-74",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 641.727272727272748, 234.0, 67.0, 22.0 ],
"text" : "pak dim i 1"
}
}
, {
"box" : {
"id" : "obj-61",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 149.0, 547.0, 93.0, 22.0 ],
"text" : "pak getcell 10 0"
}
}
, {
"box" : {
"id" : "obj-55",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 641.727272727272748, 267.0, 29.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"id" : "obj-54",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 107.72727272727272, 287.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-50",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 65.0, 742.5662841796875, 55.0, 22.0 ],
"text" : "zl.slice 4"
}
}
, {
"box" : {
"id" : "obj-45",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 31.0, 599.5662841796875, 53.0, 22.0 ],
"text" : "jit.matrix"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-44",
"index" : 1,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 31.0, 887.5662841796875, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-36",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 665.727272727272748, 143.0, 24.0, 24.0 ]
}
}
, {
"box" : {
"id" : "obj-33",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 665.727272727272748, 172.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 107.72727272727272, 317.0, 52.0, 22.0 ],
"text" : "gate 1 1"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-22",
"index" : 1,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 64.0, 12.0, 30.0, 30.0 ]
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "newobj",
"numinlets" : 14,
"numoutlets" : 14,
"outlettype" : [ "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
"patching_rect" : [ 64.0, 81.0, 646.0, 22.0 ],
"text" : "route bang auto start rotation gamma saturation flip dim getcolor colormodeoutput listoutput colormodeinput color_range"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-20",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 431.441558441558414, 202.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-19",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 331.441558441558414, 202.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-18",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 227.441558441558442, 202.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 140.72727272727272, 287.0, 73.5, 22.0 ],
"text" : "t b l"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-16",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 140.441558441558442, 202.0, 79.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 431.441558441558414, 234.0, 109.0, 22.0 ],
"text" : "prepend saturation"
}
}
, {
"box" : {
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 140.441558441558442, 234.0, 79.0, 22.0 ],
"text" : "prepend start"
}
}
, {
"box" : {
"id" : "obj-12",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 331.441558441558414, 234.0, 96.0, 22.0 ],
"text" : "prepend gamma"
}
}
, {
"box" : {
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 227.441558441558442, 234.0, 96.0, 22.0 ],
"text" : "prepend rotation"
}
}
, {
"box" : {
"bgcolor" : [ 1.0, 0.0, 0.0, 1.0 ],
"color" : [ 1.0, 0.0, 0.0, 1.0 ],
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 6,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "jit.gen",
"rect" : [ 1206.0, 214.0, 672.0, 730.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 438.0, 55.0, 79.0, 22.0 ],
"text" : "param s_e 1."
}
}
, {
"box" : {
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 357.0, 55.0, 78.0, 22.0 ],
"text" : "param s_s 1."
}
}
, {
"box" : {
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 273.0, 55.0, 75.0, 22.0 ],
"text" : "param l_e 1."
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 192.0, 55.0, 75.0, 22.0 ],
"text" : "param l_s 0."
}
}
, {
"box" : {
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 547.0, 14.0, 71.0, 22.0 ],
"text" : "param flip 0"
}
}
, {
"box" : {
"code" : "fract = flip*1 + (1 + flip * -2) * norm;\r\nangle = TWOPI * (start + 1 + rotation * fract);// + PI/2; //added pi/2 to start from red \r\nlight = pow(l_s + l_e * fract, gamma);\r\namp = saturation * fract * (1 - fract) / 2.;\r\ncos_angle = cos(angle);\r\nsin_angle = sin(angle);\r\n\r\nr = light + amp * (-0.14861 * cos_angle + 1.78277 * sin_angle);\r\n//r = max(min(r,1.0),0.0);\r\n\r\ng = light + amp * (-0.29227 * cos_angle - 0.90649 * sin_angle);\r\n//g = max(min(g,1.0),0.0);\r\n\r\nb = light + amp * (1.97294 * cos_angle);\r\n//b = max(min(b,1.0),0.0);\r\n\r\n\r\nout1 = vec(1, r, g, b);",
"fontface" : 0,
"fontname" : "<Monospaced>",
"fontsize" : 12.0,
"id" : "obj-12",
"maxclass" : "codebox",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 182.0, 531.0, 284.0 ]
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 315.0, 14.0, 99.0, 22.0 ],
"text" : "param gamma 1."
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 424.0, 14.0, 112.0, 22.0 ],
"text" : "param saturation 1."
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 192.0, 14.0, 110.0, 22.0 ],
"text" : "param rotation -1.5"
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 91.0, 14.0, 83.0, 22.0 ],
"text" : "param start 0."
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 14.0, 28.0, 22.0 ],
"text" : "in 1"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 50.0, 501.0, 35.0, 22.0 ],
"text" : "out 1"
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-12", 0 ]
}
}
]
}
,
"patching_rect" : [ 64.0, 440.0, 129.0, 22.0 ],
"text" : "jit.gen @title cubehelix"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 64.0, 387.0, 129.0, 22.0 ],
"text" : "jit.matrix 4 float32 10 1"
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 870.227272727272748, 372.0, 73.5, 372.0 ],
"source" : [ "obj-106", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 906.227272727272748, 372.0, 73.5, 372.0 ],
"source" : [ "obj-107", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-45", 0 ],
"source" : [ "obj-109", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"midpoints" : [ 236.941558441558442, 273.0, 150.22727272727272, 273.0 ],
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-109", 0 ],
"source" : [ "obj-112", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-45", 0 ],
"source" : [ "obj-112", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-112", 0 ],
"source" : [ "obj-113", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-113", 0 ],
"source" : [ "obj-115", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"midpoints" : [ 340.941558441558414, 273.0, 150.22727272727272, 273.0 ],
"order" : 2,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"order" : 0,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"order" : 1,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"midpoints" : [ 565.227272727272748, 273.0, 150.22727272727272, 273.0 ],
"source" : [ "obj-123", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-123", 0 ],
"source" : [ "obj-125", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"midpoints" : [ 440.941558441558414, 273.0, 150.22727272727272, 273.0 ],
"source" : [ "obj-14", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"order" : 1,
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-42", 0 ],
"order" : 0,
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 1 ],
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"midpoints" : [ 204.72727272727272, 426.0, 73.5, 426.0 ],
"source" : [ "obj-17", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-99", 0 ],
"source" : [ "obj-187", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-115", 0 ],
"source" : [ "obj-21", 9 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-125", 0 ],
"order" : 0,
"source" : [ "obj-21", 6 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 1,
"source" : [ "obj-21", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"order" : 1,
"source" : [ "obj-21", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"source" : [ "obj-21", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"order" : 1,
"source" : [ "obj-21", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"source" : [ "obj-21", 10 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-21", 7 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"source" : [ "obj-21", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-67", 1 ],
"source" : [ "obj-21", 12 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-67", 0 ],
"source" : [ "obj-21", 11 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-83", 3 ],
"order" : 1,
"source" : [ "obj-21", 6 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-83", 2 ],
"order" : 0,
"source" : [ "obj-21", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-83", 1 ],
"order" : 0,
"source" : [ "obj-21", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-83", 0 ],
"order" : 0,
"source" : [ "obj-21", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-85", 0 ],
"source" : [ "obj-21", 8 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-214", 1 ],
"midpoints" : [ 430.833333333333314, 748.0, 537.5, 748.0 ],
"source" : [ "obj-219", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-217", 1 ],
"midpoints" : [ 384.166666666666686, 745.0, 468.5, 745.0 ],
"source" : [ "obj-219", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-218", 1 ],
"midpoints" : [ 337.5, 745.0, 392.5, 745.0 ],
"source" : [ "obj-219", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-219", 0 ],
"source" : [ "obj-220", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-208", 0 ],
"order" : 2,
"source" : [ "obj-221", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-220", 0 ],
"order" : 1,
"source" : [ "obj-221", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"order" : 0,
"source" : [ "obj-221", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 117.22727272727272, 372.0, 73.5, 372.0 ],
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-99", 0 ],
"source" : [ "obj-24", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-61", 1 ],
"midpoints" : [ 223.5, 766.0, 253.0, 766.0, 253.0, 532.0, 195.5, 532.0 ],
"source" : [ "obj-25", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-27", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 1 ],
"source" : [ "obj-28", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"source" : [ "obj-29", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-74", 1 ],
"source" : [ "obj-29", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"source" : [ "obj-3", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-27", 0 ],
"source" : [ "obj-31", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 1,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"order" : 0,
"source" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-29", 0 ],
"source" : [ "obj-33", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-87", 0 ],
"source" : [ "obj-34", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"source" : [ "obj-36", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-221", 0 ],
"source" : [ "obj-37", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-37", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"source" : [ "obj-38", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-41", 0 ],
"source" : [ "obj-39", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"source" : [ "obj-40", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 1 ],
"source" : [ "obj-42", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"source" : [ "obj-42", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"source" : [ "obj-43", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"order" : 3,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-221", 0 ],
"order" : 0,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-3", 1 ],
"order" : 1,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-44", 0 ],
"order" : 2,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-50", 0 ],
"source" : [ "obj-45", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"source" : [ "obj-47", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-48", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-49", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-53", 0 ],
"order" : 1,
"source" : [ "obj-49", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-112", 1 ],
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-34", 0 ],
"source" : [ "obj-50", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-86", 2 ],
"source" : [ "obj-50", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-27", 0 ],
"source" : [ "obj-51", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-51", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"order" : 0,
"source" : [ "obj-52", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-53", 0 ],
"order" : 1,
"source" : [ "obj-52", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-57", 1 ],
"source" : [ "obj-53", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 0 ],
"source" : [ "obj-54", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 661.727272727272748, 372.0, 73.5, 372.0 ],
"order" : 1,
"source" : [ "obj-55", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 73.5, 372.0 ],
"order" : 1,
"source" : [ "obj-55", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-27", 0 ],
"midpoints" : [ 661.727272727272748, 372.0, 213.941558441558414, 372.0 ],
"order" : 0,
"source" : [ "obj-55", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-27", 0 ],
"midpoints" : [ 651.227272727272748, 372.0, 213.941558441558414, 372.0 ],
"order" : 0,
"source" : [ "obj-55", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-56", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-58", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-59", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-45", 0 ],
"midpoints" : [ 158.5, 581.0, 40.5, 581.0 ],
"source" : [ "obj-61", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-62", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-62", 1 ],
"source" : [ "obj-64", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-66", 1 ],
"source" : [ "obj-65", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"source" : [ "obj-67", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"source" : [ "obj-67", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-67", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-62", 2 ],
"source" : [ "obj-69", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-25", 0 ],
"source" : [ "obj-7", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-66", 2 ],
"source" : [ "obj-71", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-62", 3 ],
"source" : [ "obj-73", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-55", 0 ],
"source" : [ "obj-74", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-66", 3 ],
"source" : [ "obj-76", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-26", 0 ],
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-64", 0 ],
"order" : 0,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-65", 0 ],
"order" : 1,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"source" : [ "obj-83", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-61", 1 ],
"source" : [ "obj-85", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-88", 0 ],
"source" : [ "obj-86", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-86", 1 ],
"source" : [ "obj-87", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-86", 0 ],
"source" : [ "obj-87", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-85", 0 ],
"source" : [ "obj-92", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"midpoints" : [ 923.227272727272748, 104.0, 944.0, 104.0, 944.0, 64.0, 73.5, 64.0 ],
"source" : [ "obj-95", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-98", 0 ],
"source" : [ "obj-95", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-106", 0 ],
"source" : [ "obj-98", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-107", 0 ],
"source" : [ "obj-98", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-208", 0 ],
"source" : [ "obj-99", 0 ]
}
}
]
}
}