{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 633.0, 338.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, "frgb" : 0.0, "id" : "obj-7", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 510.0, 666.0, 47.0 ], "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, "frgb" : 0.0, "id" : "obj-5", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 240.0, 105.0, 492.0, 47.0 ], "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 window 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, 20.0 ], "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, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-42", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 465.0, 108.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-44", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 465.0, 89.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 375.0, 87.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 375.0, 99.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 375.0, 79.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-32", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 645.0, 285.0, 98.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 330.0, 285.0, 110.0, 20.0 ], "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 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 285.0, 91.0, 20.0 ], "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 ] } } , { "box" : { "id" : "obj-27", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 75.0, 90.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, 315.0, 51.0 ], "text" : "Patch 007. Use Trigger to Specify the Order of Events\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" : { "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, 229.0, 339.5, 229.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" : [ ] } }