{ "patcher" : { "fileversion" : 1, "rect" : [ 565.0, 287.0, 574.0, 640.0 ], "bglocked" : 0, "defrect" : [ 565.0, 287.0, 574.0, 640.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "Convert ASCII data to their alphanumeric equivalents", "id" : "obj-13", "fontname" : "Helvetica", "numinlets" : 1, "presentation_rect" : [ 213.0, 326.0, 0.0, 0.0 ], "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 168.0, 347.0, 311.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "stop", "id" : "obj-6", "fontname" : "Arial", "numinlets" : 1, "presentation_rect" : [ 604.0, 71.0, 0.0, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 171.0, 58.0, 35.0, 20.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "start", "id" : "obj-5", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 116.0, 58.0, 35.0, 20.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "itoa", "id" : "obj-4", "fontname" : "Arial", "numinlets" : 3, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 115.0, 345.0, 46.0, 20.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "message", "text" : "Bx123y123z123d36", "id" : "obj-2", "fontname" : "Arial", "numinlets" : 2, "presentation_rect" : [ 647.0, 460.0, 0.0, 0.0 ], "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 229.0, 478.0, 123.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "Test messages", "id" : "obj-1", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 341.0, 430.0, 91.0, 20.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "print backref", "id" : "obj-10", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 172.0, 565.0, 77.0, 20.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "print unmatched", "id" : "obj-27", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 320.0, 565.0, 97.0, 20.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "print subs", "id" : "obj-26", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 253.0, 565.0, 63.0, 20.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "print subs", "id" : "obj-23", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 100.0, 565.0, 63.0, 20.0 ] } } , { "box" : { "maxclass" : "message", "text" : "Ax200y123z123d123", "id" : "obj-71", "fontname" : "Arial", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 210.0, 448.0, 123.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "Bx450y123z123d12", "id" : "obj-59", "fontname" : "Arial", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 195.0, 418.0, 117.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "Ax360y400z500d123", "id" : "obj-35", "fontname" : "Arial", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 180.0, 388.0, 127.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "regexp ([AB])x(\\\\d{3})y(\\\\d{3})z(\\\\d{3})d(\\\\d{1\\,3})", "id" : "obj-17", "fontname" : "Arial", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 5, "patching_rect" : [ 115.0, 522.0, 272.0, 20.0 ], "outlettype" : [ "", "", "", "", "" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "id" : "obj-8", "fontname" : "Arial", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 171.0, 83.0, 33.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "1", "id" : "obj-7", "fontname" : "Arial", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 115.0, 83.0, 33.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "The serial object must be continually \"banged\" in order to extract data from it. Hence the metronome object. ", "linecount" : 3, "id" : "obj-18", "fontname" : "Helvetica", "numinlets" : 1, "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 182.0, 115.0, 285.0, 42.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Print the available serial ports in the Max window.", "id" : "obj-21", "fontname" : "Helvetica", "numinlets" : 1, "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 202.0, 221.0, 273.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Connect to the USB port named usbserial-A40014bc", "linecount" : 3, "id" : "obj-22", "fontname" : "Helvetica", "numinlets" : 1, "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 304.0, 245.0, 147.0, 42.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Monitor the metronome bangs", "id" : "obj-24", "fontname" : "Helvetica", "numinlets" : 1, "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 188.0, 174.0, 281.0, 18.0 ] } } , { "box" : { "maxclass" : "message", "text" : "port usbserial-A40014bc", "id" : "obj-25", "fontname" : "Helvetica", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 159.0, 254.0, 141.0, 16.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "metro 5", "id" : "obj-29", "fontname" : "Helvetica", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "patching_rect" : [ 115.0, 119.0, 55.0, 18.0 ], "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "button", "id" : "obj-31", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 164.0, 173.0, 20.0, 20.0 ], "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "print", "id" : "obj-33", "fontname" : "Helvetica", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "patching_rect" : [ 149.0, 221.0, 48.0, 16.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "serial a 115200", "id" : "obj-34", "fontname" : "Helvetica", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 2, "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "patching_rect" : [ 115.0, 308.0, 95.0, 18.0 ], "outlettype" : [ "int", "" ] } } , { "box" : { "maxclass" : "comment", "text" : "Connects to a--the first available item in the available ports list--at a baud rate of 115200.", "linecount" : 2, "id" : "obj-44", "fontname" : "Helvetica", "numinlets" : 1, "bgcolor" : [ 0.67451, 0.270588, 0.270588, 0.0 ], "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 219.0, 303.0, 262.0, 30.0 ] } } , { "box" : { "maxclass" : "panel", "id" : "obj-3", "numinlets" : 1, "bgcolor" : [ 0.858824, 0.847059, 0.847059, 1.0 ], "grad1" : [ 0.058824, 0.117647, 0.32549, 1.0 ], "bordercolor" : [ 0.94902, 0.207843, 0.207843, 1.0 ], "numoutlets" : 0, "grad2" : [ 0.388235, 0.388235, 0.4, 1.0 ], "patching_rect" : [ 168.0, 375.0, 273.0, 132.0 ] } } ], "lines" : [ { "patchline" : { "source" : [ "obj-17", 3 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 2 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 1 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-71", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ 124.5, 137.0, 124.5, 137.0 ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-59", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } }