{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 718.0, 330.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" : { "id" : "obj-32", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 690.0, 313.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-30", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 690.0, 375.0, 20.0, 20.0 ], "presentation_rect" : [ 701.0, 372.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-29", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 630.0, 375.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-22", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 690.0, 237.0, 20.0, 20.0 ], "presentation_rect" : [ 637.0, 313.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-18", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 630.0, 313.0, 20.0, 20.0 ], "presentation_rect" : [ 637.0, 310.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-20", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 630.0, 237.0, 20.0, 20.0 ], "presentation_rect" : [ 637.0, 234.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-16", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 313.0, 20.0, 20.0 ], "presentation_rect" : [ 317.0, 314.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-14", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 435.0, 313.0, 20.0, 20.0 ], "presentation_rect" : [ 391.0, 311.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-9", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 385.0, 313.0, 20.0, 20.0 ], "presentation_rect" : [ 361.0, 313.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-12", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 385.0, 237.0, 20.0, 20.0 ], "presentation_rect" : [ 361.0, 237.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-5", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 285.0, 313.0, 20.0, 20.0 ], "presentation_rect" : [ 291.0, 288.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-7", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 285.0, 237.0, 20.0, 20.0 ], "presentation_rect" : [ 291.0, 232.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-49", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 433.0, 483.0, 150.0, 33.0 ], "text" : "Now look at it in presentation mode" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-44", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 433.0, 400.0, 150.0, 33.0 ], "text" : "Make one of these. Can you explain how it works?" } } , { "box" : { "id" : "obj-41", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 394.0, 400.0, 20.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 374.0, 190.0, 45.0, 45.0 ] } } , { "box" : { "id" : "obj-42", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 325.0, 400.0, 20.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 305.0, 190.0, 45.0, 45.0 ] } } , { "box" : { "id" : "obj-39", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.0, 0.534957, 0.0, 1.0 ], "oncolor" : [ 0.0, 1.0, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 394.0, 483.0, 20.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 374.0, 273.0, 45.0, 45.0 ] } } , { "box" : { "id" : "obj-40", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 325.0, 483.0, 20.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 305.0, 273.0, 45.0, 45.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-38", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 483.0, 157.0, 33.0 ], "text" : "How did I make this Led green?" } } , { "box" : { "id" : "obj-36", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.0, 0.534957, 0.0, 1.0 ], "oncolor" : [ 0.0, 1.0, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 29.0, 483.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-35", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 400.0, 157.0, 47.0 ], "text" : "Leds look like buttons but they are not. They are little lights" } } , { "box" : { "id" : "obj-33", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 29.0, 400.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-27", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 628.0, 102.0, 150.0, 47.0 ], "text" : "You can create copies of objects with Option-drag on Macs" } } , { "box" : { "id" : "obj-25", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 555.0, 313.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-24", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 555.0, 237.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-23", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 490.0, 313.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-21", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 490.0, 237.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-19", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 313.0, 150.0, 33.0 ], "text" : "Button blinks when it is banged" } } , { "box" : { "id" : "obj-17", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 29.0, 313.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-15", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 237.0, 150.0, 33.0 ], "text" : "Button sends a bang when you click on it" } } , { "box" : { "id" : "obj-13", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 29.0, 237.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-11", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 29.0, 158.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-10", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 285.0, 102.0, 150.0, 60.0 ], "text" : "Create a patch cord by clicking on outlet of one object, dragging to inlet of another, and releasing" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-8", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 158.0, 150.0, 33.0 ], "text" : "Objects have inlets and outlets" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-6", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 59.0, 102.0, 150.0, 20.0 ], "text" : "Toggle is an on/off switch" } } , { "box" : { "id" : "obj-1", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 29.0, 102.0, 20.0, 20.0 ] } } , { "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, 270.0, 51.0 ], "text" : "Patch 002. Toggles, Buttons and Leds\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.5, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-25", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-32", 0 ] } } , { "patchline" : { "destination" : [ "obj-39", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-39", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } ], "dependency_cache" : [ ] } }