{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 1022.0, 164.0, 838.0, 588.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-82", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 525.0, 55.0, 20.0 ], "presentation_rect" : [ 673.0, 527.0, 0.0, 0.0 ], "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-81", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 712.0, 468.0, 72.0, 18.0 ], "presentation_rect" : [ 709.0, 464.0, 0.0, 0.0 ], "text" : "pensize 1 2" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-80", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 731.0, 486.0, 72.0, 18.0 ], "presentation_rect" : [ 726.0, 496.0, 0.0, 0.0 ], "text" : "pensize 2 2" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-79", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 693.5, 450.0, 72.0, 18.0 ], "presentation_rect" : [ 700.0, 461.0, 0.0, 0.0 ], "text" : "pensize 2 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-78", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 675.0, 432.0, 72.0, 18.0 ], "text" : "pensize 1 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-76", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 375.0, 128.0, 47.0 ], "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, 18.0 ], "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, 20.0 ], "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, 18.0 ], "text" : "linesegment 25 55 80 55" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-69", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 420.0, 315.0, 47.0 ], "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, 18.0 ], "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, 18.0 ], "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, 20.0 ], "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-60", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 420.0, 285.0, 240.0, 33.0 ], "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, 18.0 ], "presentation_rect" : [ 484.0, 243.0, 0.0, 0.0 ], "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, 20.0 ], "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, 18.0 ], "text" : "framerect 25 20 50 45" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-48", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 165.0, 315.0, 60.0 ], "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, "frgb" : 0.0, "id" : "obj-46", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 90.0, 315.0, 60.0 ], "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, "frgb" : 0.0, "id" : "obj-41", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 210.0, 403.5, 113.0, 47.0 ], "text" : "When you get the colour you like, click clear" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-37", "linecount" : 7, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 258.0, 148.0, 100.0 ], "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, "frgb" : 0.0, "id" : "obj-35", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 50.5, 410.0, 109.0, 20.0 ], "presentation_rect" : [ 47.5, 415.0, 0.0, 0.0 ], "text" : "Foreground colour" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-34", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 50.5, 390.0, 109.0, 20.0 ], "text" : "Background colour" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-32", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 450.0, 120.0, 60.0 ], "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, 20.0 ], "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, 20.0 ], "presentation_rect" : [ 248.0, 484.0, 0.0, 0.0 ], "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, 20.0 ], "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, "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 195.0, 205.0, 55.0, 20.0 ], "text" : "send lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-24", "linecount" : 6, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 90.0, 128.0, 87.0 ], "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, 20.0 ], "text" : "receive lcd" } } , { "box" : { "bgcolor" : [ 0.094118, 0.0, 0.435294, 1.0 ], "id" : "obj-20", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 195.0, 360.0, 128.0, 30.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-19", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 195.0, 330.0, 82.0, 20.0 ], "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, 18.0 ], "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, "frgb" : 0.0, "id" : "obj-15", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 165.0, 150.0, 60.0 ], "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, 18.0 ], "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, 18.0 ], "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, "frgb" : 0.0, "id" : "obj-5", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 300.0, 60.0 ], "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, "frgb" : 0.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "text" : "Patch 031. The Lcd Object\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 75.0, 810.0, 495.0 ], "rounded" : 20 } } ], "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-79", 0 ] } } , { "patchline" : { "destination" : [ "obj-82", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-80", 0 ] } } , { "patchline" : { "destination" : [ "obj-82", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-81", 0 ] } } ], "dependency_cache" : [ ] } }