{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 0, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 86.0, 78.0, 841.0, 587.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-7", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 510.0, 666.0, 47.0 ], "style" : "", "text" : "In this example, we have used trigger to force a left to right, top to bottom ordering. We also coloured the patch cords to make them a bit easier to follow. If you select a patch cord and right-click, you can change its colour and route it around other objects. On the Mac use Alt/Option-click drag to select more than one patch cord at a time" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 240.0, 105.0, 492.0, 47.0 ], "style" : "", "text" : "The trigger object sends outputs from right to left, formatted according to the argument given. Here 'b' stands for bang; later you will learn other uses for the trigger object. Check the Max console to confirm that the led objects are firing in the desired order." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 9, "outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang" ], "patching_rect" : [ 75.0, 135.0, 135.0, 22.0 ], "style" : "", "text" : "trigger b b b b b b b b b" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-40", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 465.0, 96.0, 22.0 ], "style" : "", "text" : "print lower_right" } } , { "box" : { "id" : "obj-41", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 645.0, 435.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-42", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 465.0, 108.0, 22.0 ], "style" : "", "text" : "print lower_middle" } } , { "box" : { "id" : "obj-43", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 435.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-44", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 465.0, 89.0, 22.0 ], "style" : "", "text" : "print lower_left" } } , { "box" : { "id" : "obj-45", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 75.0, 435.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 375.0, 87.0, 22.0 ], "style" : "", "text" : "print mid_right" } } , { "box" : { "id" : "obj-35", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 645.0, 345.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 375.0, 99.0, 22.0 ], "style" : "", "text" : "print mid_middle" } } , { "box" : { "id" : "obj-37", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 330.0, 345.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 375.0, 79.0, 22.0 ], "style" : "", "text" : "print mid_left" } } , { "box" : { "id" : "obj-39", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 75.0, 345.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-32", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 285.0, 98.0, 22.0 ], "style" : "", "text" : "print upper_right" } } , { "box" : { "id" : "obj-33", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 645.0, 255.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 285.0, 110.0, 22.0 ], "style" : "", "text" : "print upper_middle" } } , { "box" : { "id" : "obj-31", "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-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 285.0, 91.0, 22.0 ], "style" : "", "text" : "print upper_left" } } , { "box" : { "id" : "obj-28", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 75.0, 255.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-27", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 75.0, 90.0, 20.0, 20.0 ], "style" : "" } } , { "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, 335.0, 51.0 ], "style" : "", "text" : "Patch 7-006. Use Trigger to Specify the Order of Events\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, 76.0, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "color" : [ 0.0, 1.0, 1.0, 1.0 ], "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 200.5, 228.0, 84.5, 228.0 ], "source" : [ "obj-1", 8 ] } } , { "patchline" : { "color" : [ 1.0, 0.0, 1.0, 1.0 ], "destination" : [ "obj-31", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 186.0, 228.0, 339.5, 228.0 ], "source" : [ "obj-1", 7 ] } } , { "patchline" : { "color" : [ 0.6, 0.4, 0.2, 1.0 ], "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 171.5, 184.0, 654.5, 184.0 ], "source" : [ "obj-1", 6 ] } } , { "patchline" : { "color" : [ 1.0, 1.0, 0.0, 1.0 ], "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 128.0, 200.0, 630.0, 200.0, 630.0, 330.0, 654.5, 330.0 ], "source" : [ "obj-1", 3 ] } } , { "patchline" : { "color" : [ 1.0, 0.5, 0.0, 1.0 ], "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 142.5, 270.0, 315.0, 270.0, 315.0, 330.0, 339.5, 330.0 ], "source" : [ "obj-1", 4 ] } } , { "patchline" : { "color" : [ 1.0, 0.0, 0.0, 1.0 ], "destination" : [ "obj-39", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 157.0, 254.0, 196.0, 254.0, 196.0, 330.0, 84.5, 330.0 ], "source" : [ "obj-1", 5 ] } } , { "patchline" : { "color" : [ 0.5, 0.0, 0.5, 1.0 ], "destination" : [ "obj-41", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 84.5, 214.0, 602.0, 214.0, 602.0, 420.0, 654.5, 420.0 ], "source" : [ "obj-1", 0 ] } } , { "patchline" : { "color" : [ 0.0, 0.0, 1.0, 1.0 ], "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 99.0, 240.0, 242.0, 240.0, 242.0, 420.0, 339.5, 420.0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "color" : [ 0.0, 1.0, 0.0, 1.0 ], "destination" : [ "obj-45", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 113.5, 184.0, 60.0, 184.0, 60.0, 420.0, 84.5, 420.0 ], "source" : [ "obj-1", 2 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 84.5, 111.0, 84.5, 111.0 ], "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 84.5, 276.0, 84.5, 276.0 ], "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 339.5, 276.0, 339.5, 276.0 ], "source" : [ "obj-31", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.5, 276.0, 654.5, 276.0 ], "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-34", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.5, 366.0, 654.5, 366.0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-36", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 339.5, 366.0, 339.5, 366.0 ], "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-38", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 84.5, 366.0, 84.5, 366.0 ], "source" : [ "obj-39", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 654.5, 456.0, 654.5, 456.0 ], "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-42", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 339.5, 456.0, 339.5, 456.0 ], "source" : [ "obj-43", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 84.5, 456.0, 84.5, 456.0 ], "source" : [ "obj-45", 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 } }