{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 1248.0, 497.0, 839.0, 627.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" : { "bgcolor" : [ 0.5, 0.5, 0.5, 1.0 ], "id" : "obj-79", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.08, 0.44, 0.01, 1.0 ], "oncolor" : [ 0.21, 0.92, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 615.0, 540.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-78", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 615.0, 495.0, 101.0, 22.0 ], "style" : "", "text" : "receive led_state" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-77", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 495.0, 540.0, 89.0, 22.0 ], "style" : "", "text" : "send led_state" } } , { "box" : { "id" : "obj-76", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 495.0, 495.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-74", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 495.0, 150.0, 60.0 ], "style" : "", "text" : "You can make a connection without patch cords by using a send / receive pair" } } , { "box" : { "bgcolor" : [ 0.5, 0.5, 0.5, 1.0 ], "id" : "obj-72", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.08, 0.44, 0.01, 1.0 ], "oncolor" : [ 0.21, 0.92, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 287.5, 537.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-73", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 287.5, 495.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-71", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 495.0, 108.0, 60.0 ], "style" : "", "text" : "A patch cord sends information from one object to the next" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-70", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 495.0, 105.0, 33.0 ], "style" : "", "text" : "Patch cords and\nsend / recieve" } } , { "box" : { "id" : "obj-68", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 525.0, 405.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-66", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 525.0, 375.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-63", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 525.0, 315.0, 105.0, 47.0 ], "style" : "", "text" : "One toggle can send its state directly to another" } } , { "box" : { "id" : "obj-62", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 435.0, 435.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-60", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 435.0, 405.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-58", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 405.0, 405.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-56", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 435.0, 375.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-54", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 405.0, 375.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-52", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 405.0, 315.0, 105.0, 47.0 ], "style" : "", "text" : "Switching a toggle sends a single bang" } } , { "box" : { "id" : "obj-50", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 287.5, 405.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-48", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 287.5, 375.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-46", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 285.0, 315.0, 105.0, 47.0 ], "style" : "", "text" : "When a toggle receives a bang, it changes state" } } , { "box" : { "id" : "obj-44", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 165.0, 405.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-42", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 165.0, 375.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-40", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 315.0, 105.0, 33.0 ], "style" : "", "text" : "Pressing a button sends a bang" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 315.0, 105.0, 33.0 ], "style" : "", "text" : "Bang, button and toggle" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-36", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 390.0, 255.0, 270.0, 20.0 ], "style" : "", "text" : "The led reflects the on/off state of the toggle" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 390.0, 210.0, 270.0, 33.0 ], "style" : "", "text" : "A toggle is either on or off. It continually outputs its state. Clicking it causes it to change state." } } , { "box" : { "bgcolor" : [ 0.5, 0.5, 0.5, 1.0 ], "id" : "obj-31", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.08, 0.44, 0.01, 1.0 ], "oncolor" : [ 0.21, 0.92, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 360.0, 255.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-32", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 255.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 255.0, 150.0, 20.0 ], "style" : "", "text" : "These are led objects" } } , { "box" : { "id" : "obj-29", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 360.0, 210.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-28", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 210.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 210.0, 150.0, 20.0 ], "style" : "", "text" : "These are toggle objects" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 210.0, 105.0, 20.0 ], "style" : "", "text" : "Toggle and led" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 390.0, 150.0, 195.0, 20.0 ], "style" : "", "text" : "The bang causes the led to flash" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 390.0, 90.0, 270.0, 33.0 ], "style" : "", "text" : "A button is normally off. When you press it, it sends a message called a 'bang'" } } , { "box" : { "bgcolor" : [ 0.5, 0.5, 0.5, 1.0 ], "id" : "obj-18", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.08, 0.44, 0.01, 1.0 ], "oncolor" : [ 0.21, 0.92, 0.0, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 360.0, 150.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-15", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 150.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 150.0, 150.0, 20.0 ], "style" : "", "text" : "These are led objects" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 120.0, 150.0, 20.0 ], "style" : "", "text" : "These are patch cords" } } , { "box" : { "id" : "obj-10", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 360.0, 90.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-8", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 330.0, 90.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-6", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 90.0, 150.0, 20.0 ], "style" : "", "text" : "These are button objects" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 90.0, 105.0, 20.0 ], "style" : "", "text" : "Button and led" } } , { "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, 205.0, 51.0 ], "style" : "", "text" : "Some basic interactions in Max 7\nWilliam J Turkel\nhttp://williamjturkel.net/code" } } , { "box" : { "angle" : 0.0, "background" : 1, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "border" : 1, "id" : "obj-69", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 33.5, 480.0, 701.5, 90.0 ], "proportion" : 0.39, "rounded" : 30, "style" : "" } } , { "box" : { "angle" : 0.0, "background" : 1, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "border" : 1, "id" : "obj-37", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 33.5, 300.0, 701.5, 165.0 ], "proportion" : 0.39, "rounded" : 30, "style" : "" } } , { "box" : { "angle" : 0.0, "background" : 1, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "border" : 1, "id" : "obj-24", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 33.5, 195.0, 701.5, 90.0 ], "proportion" : 0.39, "rounded" : 30, "style" : "" } } , { "box" : { "angle" : 0.0, "background" : 1, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "border" : 1, "id" : "obj-23", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 33.5, 75.0, 701.5, 105.0 ], "proportion" : 0.39, "rounded" : 30, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-31", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-50", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-58", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-54", 0 ] } } , { "patchline" : { "destination" : [ "obj-60", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-56", 0 ] } } , { "patchline" : { "destination" : [ "obj-62", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-60", 0 ] } } , { "patchline" : { "destination" : [ "obj-68", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-66", 0 ] } } , { "patchline" : { "destination" : [ "obj-72", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-73", 0 ] } } , { "patchline" : { "destination" : [ "obj-77", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-76", 0 ] } } , { "patchline" : { "destination" : [ "obj-79", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-78", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 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 } }