{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 506.0, 145.0, 864.0, 603.0 ], "bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "editing_bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.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" : "IceCubeTray", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-40", "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 302.5, 396.5, 161.0, 35.0 ], "style" : "", "text" : ";\rlcd linesegment $1 $2 $3 $4" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 422.5, 359.5, 32.5, 22.0 ], "style" : "", "text" : "join" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-33", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.0, 213.0, 104.0, 22.0 ], "style" : "", "text" : "s circle_add_item" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-99", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 586.0, 360.0, 102.0, 22.0 ], "style" : "", "text" : "r circle_add_item" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-98", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 586.0, 471.0, 32.5, 22.0 ], "style" : "", "text" : "join" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-97", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 599.5, 435.0, 75.0, 22.0 ], "style" : "", "text" : "r circle_item" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-96", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], "patching_rect" : [ 586.0, 503.0, 75.0, 22.0 ], "saved_object_attributes" : { "embed" : 0 } , "style" : "", "text" : "coll circlelist" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-90", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 680.0, 435.0, 50.0, 22.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-91", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 690.0, 360.0, 98.0, 22.0 ], "style" : "", "text" : "r circle_idx_zero" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-93", "maxclass" : "newobj", "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], "patching_rect" : [ 586.0, 396.0, 73.0, 22.0 ], "style" : "", "text" : "counter" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-31", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 690.0, 490.0, 76.0, 33.0 ], "style" : "", "text" : "Add item to collection" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], "patching_rect" : [ 343.0, 309.5, 75.0, 22.0 ], "saved_object_attributes" : { "embed" : 0 } , "style" : "", "text" : "coll circlelist" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "int" ], "patching_rect" : [ 316.0, 277.5, 46.0, 22.0 ], "style" : "", "text" : "uzi" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 343.0, 213.0, 43.0, 22.0 ], "style" : "", "text" : "length" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], "patching_rect" : [ 343.0, 243.5, 75.0, 22.0 ], "saved_object_attributes" : { "embed" : 0 } , "style" : "", "text" : "coll circlelist" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-21", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 5, "outlettype" : [ "bang", "bang", "bang", "", "" ], "patching_rect" : [ 302.5, 174.5, 73.0, 22.0 ], "style" : "", "text" : "t b b b l l" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 302.5, 134.5, 75.0, 22.0 ], "style" : "", "text" : "r circle_item" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 302.5, 440.0, 180.0, 33.0 ], "style" : "", "text" : "Connect point to each previous point then add to collection" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "bang", "bang" ], "patching_rect" : [ 30.0, 165.0, 46.0, 22.0 ], "style" : "", "text" : "t i b b" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-10", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 149.5, 135.0, 108.0, 33.0 ], "style" : "", "text" : "Input is number of points" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 41.0, 540.0, 117.0, 20.0 ], "style" : "", "text" : "Create each point" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-42", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "bang", "int", "int" ], "patching_rect" : [ 30.0, 285.0, 46.0, 22.0 ], "style" : "", "text" : "t b i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-43", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 41.0, 517.0, 77.0, 22.0 ], "style" : "", "text" : "s circle_item" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-64", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 255.0, 100.0, 22.0 ], "style" : "", "text" : "s circle_idx_zero" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-45", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "int" ], "patching_rect" : [ 121.0, 213.0, 34.0, 22.0 ], "style" : "", "text" : "t b 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-23", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], "patching_rect" : [ 121.0, 288.0, 75.0, 22.0 ], "saved_object_attributes" : { "embed" : 0 } , "style" : "", "text" : "coll circlelist" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 121.0, 255.0, 37.0, 22.0 ], "style" : "", "text" : "clear" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 121.0, 315.0, 100.0, 20.0 ], "style" : "", "text" : "Clear collection" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-53", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 75.0, 390.0, 195.0, 22.0 ], "style" : "", "text" : "expr $i1*((360./$i2)/180.)*acos(-1.)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 87.0, 450.0, 41.0, 22.0 ], "style" : "", "text" : "+ 100" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 41.0, 450.0, 41.0, 22.0 ], "style" : "", "text" : "+ 100" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 41.0, 482.0, 56.0, 22.0 ], "style" : "", "text" : "pack 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-51", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "float", "float" ], "patching_rect" : [ 41.0, 420.0, 53.0, 22.0 ], "style" : "", "text" : "poltocar" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-50", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 57.0, 360.0, 37.0, 22.0 ], "style" : "", "text" : "t 90 i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-46", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "int" ], "patching_rect" : [ 30.0, 330.0, 46.0, 22.0 ], "style" : "", "text" : "uzi" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-9", "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 174.75, 202.0, 55.0, 35.0 ], "style" : "", "text" : ";\rlcd clear" } } , { "box" : { "id" : "obj-6", "maxclass" : "slider", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, "patching_rect" : [ 30.0, 135.0, 105.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-1", "maxclass" : "lcd", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "list", "list", "int", "" ], "patching_rect" : [ 586.0, 134.5, 200.0, 200.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 586.0, 90.0, 33.0, 22.0 ], "style" : "", "text" : "r lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 525.0, 33.0 ], "style" : "", "text" : "Here again we plot a number of evenly distributed points around the circumference of a circle. Connecting each point with every other requires that we keep track of our lines in a coll object." } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "style" : "", "text" : "Patch 7-046. All Points Connected\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "angle" : 0.0, "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 72.0, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-42", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-45", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 53.0, 198.0, 130.5, 198.0 ], "source" : [ "obj-11", 1 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 66.5, 188.0, 184.25, 188.0 ], "source" : [ "obj-11", 2 ] } } , { "patchline" : { "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-26", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 2 ] } } , { "patchline" : { "destination" : [ "obj-27", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 1 ] } } , { "patchline" : { "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 366.0, 194.5, 474.5, 194.5 ], "source" : [ "obj-21", 4 ] } } , { "patchline" : { "destination" : [ "obj-34", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 352.5, 205.5, 445.5, 205.5 ], "source" : [ "obj-21", 3 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-27", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-25", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 2 ] } } , { "patchline" : { "destination" : [ "obj-34", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-25", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-25", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-34", 0 ] } } , { "patchline" : { "destination" : [ "obj-46", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 1 ] } } , { "patchline" : { "destination" : [ "obj-46", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-53", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 66.5, 315.0, 100.0, 315.0, 100.0, 375.0, 260.5, 375.0 ], "source" : [ "obj-42", 2 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-45", 0 ] } } , { "patchline" : { "destination" : [ "obj-64", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-45", 1 ] } } , { "patchline" : { "destination" : [ "obj-50", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-46", 2 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-51", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-53", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 1 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 1 ] } } , { "patchline" : { "destination" : [ "obj-51", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-53", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-93", 3 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-91", 0 ] } } , { "patchline" : { "destination" : [ "obj-90", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-93", 0 ] } } , { "patchline" : { "destination" : [ "obj-98", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-93", 0 ] } } , { "patchline" : { "destination" : [ "obj-98", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-97", 0 ] } } , { "patchline" : { "destination" : [ "obj-96", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-98", 0 ] } } , { "patchline" : { "destination" : [ "obj-93", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-99", 0 ] } } ], "dependency_cache" : [ ], "embedsnapshot" : 0, "default_bgcolor" : [ 0.207843, 0.215686, 0.278431, 1.0 ], "color" : [ 0.901961, 0.901961, 0.901961, 1.0 ], "elementcolor" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "accentcolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "selectioncolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "textcolor" : [ 0.090196, 0.07451, 0.07451, 1.0 ], "textcolor_inverse" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "patchlinecolor" : [ 0.207843, 0.215686, 0.278431, 0.9 ], "bgfillcolor_type" : "gradient", "bgfillcolor_color1" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color2" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "bgfillcolor_angle" : 270.0, "bgfillcolor_proportion" : 0.39 } }