{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 225.0, 123.0, 850.0, 598.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-82", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 525.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-80", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 715.0, 469.0, 72.0, 22.0 ], "style" : "", "text" : "pensize 2 2" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-78", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 675.0, 435.0, 72.0, 22.0 ], "style" : "", "text" : "pensize 1 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-76", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 375.0, 129.0, 47.0 ], "style" : "", "text" : "Draw thicker lines by changing the pen size (width, height)" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-74", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 375.0, 498.0, 149.0, 22.0 ], "style" : "", "text" : "linesegment 45 25 45 100" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-72", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 525.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-71", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 345.0, 480.0, 142.0, 22.0 ], "style" : "", "text" : "linesegment 25 55 80 55" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-69", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 420.0, 315.0, 47.0 ], "style" : "", "text" : "You can add three additional parameters RGB to specify the colour of a particular shape. Shapes drawn later overwrite ones drawn earlier." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-67", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 375.0, 360.0, 198.0, 22.0 ], "style" : "", "text" : "framerect 35 30 70 60 100 100 155" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-64", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 345.0, 330.0, 193.0, 22.0 ], "style" : "", "text" : "paintrect 30 40 75 50 200 200 255" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-61", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 390.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-60", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 420.0, 285.0, 240.0, 33.0 ], "style" : "", "text" : "Lists after each command are in the form StartX, StartY, EndX, EndY" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-58", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 480.0, 240.0, 128.0, 22.0 ], "style" : "", "text" : "framerect 55 20 80 45" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-56", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 285.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-55", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 345.0, 240.0, 128.0, 22.0 ], "style" : "", "text" : "framerect 25 20 50 45" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-48", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 165.0, 319.0, 60.0 ], "style" : "", "text" : "Positions in the lcd object are specified with X (horizontal) and Y (vertical) coordinates. The upper left hand corner of the display is X=0, Y=0. Values increase as you move right (X dimension) and down (Y dimension)." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-46", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 90.0, 315.0, 60.0 ], "style" : "", "text" : "The lcd object understands messages for creating many different kinds of shapes. Each different message has a number of arguments which let you specify the location and size of the shape you are drawing." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 210.0, 403.5, 113.0, 47.0 ], "style" : "", "text" : "When you get the colour you like, click clear" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "linecount" : 7, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 258.0, 150.0, 100.0 ], "style" : "", "text" : "Here we use the swatch object to set the foreground (pen) and background colours of the lcd. Note that we are using the old-style RGB system (0..255 values) " } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-35", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 50.5, 410.0, 109.0, 20.0 ], "style" : "", "text" : "Foreground colour" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 50.5, 390.0, 109.0, 20.0 ], "style" : "", "text" : "Background colour" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-32", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 450.0, 120.0, 60.0 ], "style" : "", "text" : "The object which is controlling the graphic gate is called radiogroup" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 160.0, 525.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 244.0, 480.0, 79.0, 22.0 ], "style" : "", "text" : "prepend frgb" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 160.0, 480.0, 82.0, 22.0 ], "style" : "", "text" : "prepend brgb" } } , { "box" : { "disabled" : [ 0, 0 ], "id" : "obj-27", "itemtype" : 0, "maxclass" : "radiogroup", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, "patching_rect" : [ 160.0, 390.0, 18.0, 34.0 ], "size" : 2, "style" : "", "value" : 1 } } , { "box" : { "id" : "obj-26", "int" : 1, "maxclass" : "gswitch2", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, "patching_rect" : [ 160.0, 435.0, 39.0, 32.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 195.0, 205.0, 55.0, 22.0 ], "style" : "", "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-24", "linecount" : 6, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 90.0, 128.0, 87.0 ], "style" : "", "text" : "Since we are sending a lot of messages to the lcd, send and receive objects keep the patch from getting too tangled" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 675.0, 195.0, 68.0, 22.0 ], "style" : "", "text" : "receive lcd" } } , { "box" : { "angle" : 0.0, "bgcolor" : [ 0.0, 0.396078, 0.686275, 1.0 ], "id" : "obj-20", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 195.0, 360.0, 128.0, 30.0 ], "proportion" : 0.39, "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-19", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 330.0, 82.0, 22.0 ], "style" : "", "text" : "prepend brgb" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-18", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 255.0, 87.0, 22.0 ], "style" : "", "text" : "compatibility 1" } } , { "box" : { "compatibility" : 1, "id" : "obj-16", "maxclass" : "swatch", "numinlets" : 3, "numoutlets" : 2, "outlettype" : [ "", "float" ], "parameter_enable" : 0, "patching_rect" : [ 195.0, 285.0, 128.0, 32.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 165.0, 153.0, 60.0 ], "style" : "", "text" : "The clear message erases the contents; reset returns all settings to default values" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 234.0, 165.0, 37.0, 22.0 ], "style" : "", "text" : "reset" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 165.0, 37.0, 22.0 ], "style" : "", "text" : "clear" } } , { "box" : { "id" : "obj-9", "maxclass" : "lcd", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "list", "list", "int", "" ], "patching_rect" : [ 675.0, 225.0, 128.0, 128.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 302.0, 60.0 ], "style" : "", "text" : "Some Max objects, like button or toggle, do one thing well. Other Max objects do a lot of different things. The lcd object is a good example. It is a complete graphics drawing system that you control by sending messages." } } , { "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-030. The Lcd Object\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, 75.0, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-25", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-25", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-26", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 204.5, 318.0, 189.0, 318.0, 189.0, 402.0, 189.5, 402.0 ], "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-26", 1 ] } } , { "patchline" : { "destination" : [ "obj-26", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-56", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-55", 0 ] } } , { "patchline" : { "destination" : [ "obj-56", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-58", 0 ] } } , { "patchline" : { "destination" : [ "obj-61", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-64", 0 ] } } , { "patchline" : { "destination" : [ "obj-61", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-67", 0 ] } } , { "patchline" : { "destination" : [ "obj-72", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-71", 0 ] } } , { "patchline" : { "destination" : [ "obj-72", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-74", 0 ] } } , { "patchline" : { "destination" : [ "obj-82", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-78", 0 ] } } , { "patchline" : { "destination" : [ "obj-82", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-80", 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 } }