{ "patcher" : { "fileversion" : 1, "rect" : [ 26.0, 44.0, 422.0, 395.0 ], "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "bglocked" : 0, "defrect" : [ 26.0, 44.0, 422.0, 395.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 24.0, "default_fontface" : 0, "default_fontname" : "Helvetica Neue Bold", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 1, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "<-- check in here for the byte unpacking stuff", "id" : "obj-29", "fontname" : "Arial Italic", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 9.0, "presentation_rect" : [ 115.0, 111.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 116.0, 120.0, 195.0, 17.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "< magic number to start/stop", "linecount" : 2, "id" : "obj-19", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 11.595187, "presentation_rect" : [ 82.0, 32.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 128.0, 37.0, 99.0, 33.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "message", "text" : "close", "id" : "obj-22", "fontname" : "Helvetica Neue Bold", "bgcolor" : [ 0.867, 0.867, 0.867, 1.0 ], "background" : 0, "fontface" : 0, "fontsize" : 11.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "gradient" : 0, "numinlets" : 2, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 242.0, 53.0, 39.0, 18.0 ], "presentation" : 0, "outlettype" : [ "" ], "bgcolor2" : [ 0.867, 0.867, 0.867, 1.0 ] } } , { "box" : { "maxclass" : "message", "text" : "99", "id" : "obj-8", "fontname" : "Helvetica Neue Bold", "bgcolor" : [ 0.867, 0.867, 0.867, 1.0 ], "background" : 0, "fontface" : 0, "fontsize" : 24.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "gradient" : 0, "numinlets" : 2, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 89.0, 36.0, 37.0, 34.0 ], "presentation" : 0, "outlettype" : [ "" ], "bgcolor2" : [ 0.867, 0.867, 0.867, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "andrew benson", "id" : "obj-15", "fontname" : "Helvetica Neue Bold", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 309.0, 212.0, 86.0, 19.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "SensorBox", "id" : "obj-11", "fontname" : "Helvetica Neue Bold", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 48.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 133.0, 168.0, 266.0, 65.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "This patch gets the pin readings from an Arduino running the SensorBoxAB firmware, which provides the bare minimum functionality to use an Arduino as an efficient sensor interface for Max. If you require output to the Arduino, use Firmata instead or rewrite the code. Note that internal pullup resistors are turned on for the digital pins in the firmware, so all you need to do is wire switches to ground.", "linecount" : 5, "id" : "obj-9", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 7.0, 324.0, 413.0, 64.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "digital Pins", "id" : "obj-7", "fontname" : "Helvetica", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 12.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 204.0, 289.0, 72.0, 18.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "analog Pins", "id" : "obj-4", "fontname" : "Helvetica", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 12.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 23.0, 291.0, 71.0, 18.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "newobj", "text" : "p parse-messages", "id" : "obj-55", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.7, 0.7, 0.7, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 2, "patching_rect" : [ 10.0, 120.0, 105.0, 18.0 ], "presentation" : 0, "outlettype" : [ "list", "" ], "patcher" : { "fileversion" : 1, "rect" : [ 25.0, 69.0, 407.0, 525.0 ], "bglocked" : 0, "defrect" : [ 25.0, 69.0, 407.0, 525.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Helvetica", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "digital inputs output as list\n", "id" : "obj-9", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 193.0, 380.0, 152.0, 18.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "p digitalParse", "id" : "obj-10", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 165.0, 348.0, 71.0, 18.0 ], "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, "rect" : [ 377.0, 44.0, 439.0, 223.0 ], "bglocked" : 0, "defrect" : [ 377.0, 44.0, 439.0, 223.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Helvetica", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "unpacks the digital input bytes to get individual pins", "linecount" : 2, "id" : "obj-10", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 81.0, 18.0, 159.0, 30.0 ] } } , { "box" : { "maxclass" : "button", "id" : "obj-11", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 40.0, 10.0, 20.0, 20.0 ], "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0 0 0 0 0 0 0 0 0 0 0", "id" : "obj-9", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "hidden" : 1, "numoutlets" : 11, "patching_rect" : [ 434.0, 19.0, 159.0, 18.0 ], "outlettype" : [ "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int" ] } } , { "box" : { "maxclass" : "message", "text" : "1 2 4 8 16 32 64 128 256 512 1024", "id" : "obj-8", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "hidden" : 1, "numoutlets" : 1, "patching_rect" : [ 434.0, 2.0, 197.0, 16.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-4", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 378.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 1024", "id" : "obj-5", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 378.0, 65.0, 49.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-14", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 11.0, 88.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "outlet", "id" : "obj-42", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 11.0, 193.0, 25.0, 25.0 ], "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "pack 0 0 0 0 0 0 0 0 0 0 0", "id" : "obj-41", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 11, "numoutlets" : 1, "patching_rect" : [ 11.0, 166.0, 379.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-33", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 335.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 512", "id" : "obj-34", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 335.0, 66.0, 42.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-30", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 299.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 256", "id" : "obj-31", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 299.0, 66.0, 42.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-27", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 263.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 128", "id" : "obj-28", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 263.0, 66.0, 42.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-24", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 227.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 64", "id" : "obj-25", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 227.0, 66.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-21", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 191.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 32", "id" : "obj-22", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 191.0, 66.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-18", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 155.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 16", "id" : "obj-19", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 155.0, 66.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-15", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 119.0, 87.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 8", "id" : "obj-16", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 119.0, 66.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-12", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 83.0, 88.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 4", "id" : "obj-13", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 83.0, 67.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "== 0", "id" : "obj-6", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 88.0, 35.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 1", "id" : "obj-3", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 11.0, 66.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "& 2", "id" : "obj-2", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 66.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numinlets" : 0, "numoutlets" : 1, "patching_rect" : [ 11.0, 9.0, 25.0, 25.0 ], "outlettype" : [ "int" ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-3", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 1 ], "destination" : [ "obj-2", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 2 ], "destination" : [ "obj-13", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 3 ], "destination" : [ "obj-16", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 4 ], "destination" : [ "obj-19", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 5 ], "destination" : [ "obj-22", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 6 ], "destination" : [ "obj-25", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 7 ], "destination" : [ "obj-28", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 8 ], "destination" : [ "obj-31", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 9 ], "destination" : [ "obj-34", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 10 ], "destination" : [ "obj-5", 1 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-41", 10 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-41", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-41", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-41", 9 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-41", 8 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-41", 7 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-41", 6 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-41", 5 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-41", 4 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-41", 3 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-41", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-41", 0 ], "destination" : [ "obj-42", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.0, 387.5, 49.0 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 56.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 92.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 128.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 164.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-22", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 200.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 236.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 272.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 308.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 344.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 20.5, 49.5, 20.5, 49.5 ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "fontname" : "Helvetica", "globalpatchername" : "", "fontface" : 0, "default_fontface" : 0, "fontsize" : 12.0, "default_fontname" : "Helvetica", "default_fontsize" : 12.0 } } } , { "box" : { "maxclass" : "newobj", "text" : "listfunnel", "id" : "obj-8", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 47.0, 348.0, 58.0, 18.0 ], "outlettype" : [ "list" ] } } , { "box" : { "maxclass" : "newobj", "text" : "vexpr $i1+($i2<<7)", "id" : "obj-7", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 307.0, 111.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace 1", "id" : "obj-1", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2, "patching_rect" : [ 47.0, 284.0, 111.0, 18.0 ], "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "comment", "text" : "analog inputs output as list\n", "id" : "obj-5", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 75.0, 471.0, 159.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "pack high/low bytes together", "linecount" : 2, "id" : "obj-4", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 253.0, 284.0, 85.0, 30.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "everything over 127 is a control index", "linecount" : 2, "id" : "obj-3", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 122.0, 132.0, 119.0, 30.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "255 signals the end of a message\n", "id" : "obj-2", "fontname" : "Helvetica", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 153.0, 76.0, 189.0, 18.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 1 2", "id" : "obj-51", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 3, "patching_rect" : [ 47.0, 262.0, 50.0, 18.0 ], "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "<< 7", "id" : "obj-49", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 205.0, 307.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "+", "id" : "obj-38", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 165.0, 327.0, 58.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0 0", "id" : "obj-36", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 2, "patching_rect" : [ 165.0, 284.0, 59.0, 18.0 ], "outlettype" : [ "int", "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "- 128", "id" : "obj-35", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 201.0, 33.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t i i", "id" : "obj-29", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 2, "patching_rect" : [ 83.0, 100.0, 32.5, 18.0 ], "outlettype" : [ "int", "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "sel 255", "id" : "obj-26", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 2, "patching_rect" : [ 109.0, 76.0, 43.0, 18.0 ], "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "zl group 100", "id" : "obj-20", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 2, "patching_rect" : [ 47.0, 240.0, 66.0, 18.0 ], "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "+ 1", "id" : "obj-16", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 155.0, 32.5, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "< 128", "id" : "obj-15", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 47.0, 130.0, 36.0, 18.0 ], "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate 2", "id" : "obj-14", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 2, "patching_rect" : [ 47.0, 177.0, 55.0, 18.0 ], "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "inlet", "id" : "obj-52", "numinlets" : 0, "numoutlets" : 1, "patching_rect" : [ 109.0, 16.0, 25.0, 25.0 ], "outlettype" : [ "int" ], "comment" : "" } } , { "box" : { "maxclass" : "outlet", "id" : "obj-53", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 47.0, 465.0, 25.0, 25.0 ], "comment" : "" } } , { "box" : { "maxclass" : "outlet", "id" : "obj-54", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 375.0, 25.0, 25.0 ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 1 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-14", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 1 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ 106.0, 123.5, 56.5, 123.5 ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-49", 0 ], "destination" : [ "obj-38", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 1 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ 92.5, 232.5, 56.5, 232.5 ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ 118.5, 235.0, 56.5, 235.0 ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 1 ], "destination" : [ "obj-7", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-51", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-38", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 1 ], "destination" : [ "obj-49", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-51", 1 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 72.0, 282.0, 174.5, 282.0 ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-53", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-38", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-54", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "fontname" : "Helvetica", "globalpatchername" : "", "fontface" : 0, "default_fontface" : 0, "fontsize" : 12.0, "default_fontname" : "Helvetica", "default_fontsize" : 12.0 } } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-13", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 327.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "prepend port", "id" : "obj-97", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.7, 0.7, 0.7, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 334.0, 53.0, 67.0, 18.0 ], "presentation" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "p ports", "id" : "obj-96", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.7, 0.7, 0.7, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 288.0, 10.0, 41.0, 18.0 ], "presentation" : 0, "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, "rect" : [ 25.0, 69.0, 640.0, 480.0 ], "bglocked" : 0, "defrect" : [ 25.0, 69.0, 640.0, 480.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Helvetica", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "zl iter 1", "id" : "obj-93", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 2, "numoutlets" : 2, "patching_rect" : [ 50.0, 141.0, 43.0, 18.0 ], "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t l clear", "id" : "obj-92", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 2, "patching_rect" : [ 50.0, 120.0, 43.0, 18.0 ], "outlettype" : [ "", "clear" ] } } , { "box" : { "maxclass" : "newobj", "text" : "prepend append", "id" : "obj-89", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 50.0, 165.0, 83.0, 18.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route port", "id" : "obj-85", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 2, "patching_rect" : [ 50.0, 100.0, 53.0, 18.0 ], "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "inlet", "id" : "obj-94", "numinlets" : 0, "numoutlets" : 1, "patching_rect" : [ 50.0, 40.0, 25.0, 25.0 ], "outlettype" : [ "" ], "comment" : "" } } , { "box" : { "maxclass" : "outlet", "id" : "obj-95", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 243.0, 25.0, 25.0 ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-85", 0 ], "destination" : [ "obj-92", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-93", 0 ], "destination" : [ "obj-89", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-92", 0 ], "destination" : [ "obj-93", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-94", 0 ], "destination" : [ "obj-85", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-89", 0 ], "destination" : [ "obj-95", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-92", 1 ], "destination" : [ "obj-95", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "fontname" : "Helvetica", "globalpatchername" : "", "fontface" : 0, "default_fontface" : 0, "fontsize" : 12.0, "default_fontname" : "Helvetica", "default_fontsize" : 12.0 } } } , { "box" : { "maxclass" : "umenu", "arrowcolor" : [ 0.22, 0.22, 0.22, 1.0 ], "id" : "obj-88", "fontname" : "Arial", "hltcolor" : [ 0.92, 0.92, 0.92, 1.0 ], "showdotfiles" : 0, "prefix" : "", "depth" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "arrowbgcolor" : [ 0.86, 0.86, 0.86, 1.0 ], "types" : [ ], "pattrmode" : 0, "labelclick" : 0, "framecolor" : [ 0.5, 0.5, 0.5, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "arrow" : 1, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "truncate" : 1, "prefix_mode" : 0, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.15, 0.15, 0.15, 1.0 ], "discolor" : [ 0.43, 0.43, 0.43, 1.0 ], "items" : [ "usbserial-A4001tFI", ",", "Bluetooth-Modem", ",", "Bluetooth-PDA-Sync" ], "togcolor" : [ 0.55, 0.55, 0.55, 1.0 ], "hidden" : 0, "align" : 0, "autopopulate" : 0, "numoutlets" : 3, "arrowlink" : 1, "patching_rect" : [ 288.0, 32.0, 111.0, 18.0 ], "arrowframe" : 1, "presentation" : 0, "menumode" : 0, "textcolor2" : [ 0.15, 0.15, 0.15, 1.0 ], "outlettype" : [ "int", "", "" ], "rounded" : 8, "bgcolor2" : [ 0.933333, 0.956863, 0.835294, 1.0 ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-48", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 306.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-47", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 285.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-46", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 264.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-45", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 243.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-44", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 222.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-43", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 201.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-42", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 180.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-41", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 159.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-40", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 138.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-39", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 117.0, 264.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0 0 0 0 0 0 0 0 0 0 0", "id" : "obj-37", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.7, 0.7, 0.7, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 11, "patching_rect" : [ 117.0, 238.0, 229.0, 18.0 ], "presentation" : 0, "outlettype" : [ "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-34", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 90.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-28", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 74.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-27", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 58.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-25", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 42.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-24", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 26.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "slider", "id" : "obj-23", "orientation" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "relative" : 0, "size" : 1024.0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "knobcolor" : [ 0.2, 0.2, 0.2, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "mult" : 1.0, "min" : 0.0, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 10.0, 162.0, 15.0, 124.0 ], "presentation" : 0, "floatoutput" : 0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "spray 6", "id" : "obj-12", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.7, 0.7, 0.7, 1.0 ], "fontface" : 0, "fontsize" : 10.0, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 6, "patching_rect" : [ 10.0, 141.0, 98.5, 18.0 ], "presentation" : 0, "outlettype" : [ "", "", "", "", "", "" ] } } , { "box" : { "maxclass" : "comment", "text" : "< start polling the serial port", "id" : "obj-18", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "background" : 0, "fontface" : 0, "fontsize" : 11.595187, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 1, "underline" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 0, "frgb" : [ 0.0, 0.0, 0.0, 1.0 ], "patching_rect" : [ 39.0, 10.0, 153.0, 20.0 ], "presentation" : 0 } } , { "box" : { "maxclass" : "toggle", "checkedcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "id" : "obj-6", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "bordercolor" : [ 0.5, 0.5, 0.5, 1.0 ], "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 11.0, 9.0, 20.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "qmetro 1", "id" : "obj-5", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.8, 0.84, 0.71, 1.0 ], "fontface" : 0, "fontsize" : 11.595187, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 2, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 11.0, 37.0, 56.0, 20.0 ], "presentation" : 0, "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "print", "id" : "obj-2", "fontname" : "Arial", "bgcolor" : [ 0.867, 0.867, 0.867, 1.0 ], "background" : 0, "fontface" : 0, "fontsize" : 11.595187, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "gradient" : 0, "numinlets" : 2, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 1, "patching_rect" : [ 31.0, 61.0, 33.0, 18.0 ], "presentation" : 0, "outlettype" : [ "" ], "bgcolor2" : [ 0.867, 0.867, 0.867, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "serial a 57600", "id" : "obj-1", "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "background" : 0, "color" : [ 0.356863, 0.768627, 0.0, 1.0 ], "fontface" : 0, "fontsize" : 11.595187, "presentation_rect" : [ 0.0, 0.0, 0.0, 0.0 ], "ignoreclick" : 0, "numinlets" : 1, "textcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "hidden" : 0, "numoutlets" : 2, "patching_rect" : [ 10.0, 95.0, 83.0, 20.0 ], "presentation" : 0, "outlettype" : [ "int", "" ] } } ], "lines" : [ { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 1 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 2 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 3 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 4 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 5 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-55", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ 251.5, 82.5, 19.5, 82.5 ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ 98.5, 82.0, 19.5, 82.0 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-55", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 1 ], "destination" : [ "obj-96", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ 83.5, 117.0, 229.0, 117.0, 229.0, 7.0, 297.5, 7.0 ] } } , { "patchline" : { "source" : [ "obj-97", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ 343.5, 82.0, 19.5, 82.0 ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-88", 1 ], "destination" : [ "obj-97", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-96", 0 ], "destination" : [ "obj-88", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 9 ], "destination" : [ "obj-48", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 8 ], "destination" : [ "obj-47", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 7 ], "destination" : [ "obj-46", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 6 ], "destination" : [ "obj-45", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 5 ], "destination" : [ "obj-44", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 4 ], "destination" : [ "obj-43", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 3 ], "destination" : [ "obj-42", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 2 ], "destination" : [ "obj-41", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 1 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 0 ], "destination" : [ "obj-39", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 10 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-55", 1 ], "destination" : [ "obj-37", 0 ], "hidden" : 0, "color" : [ 0.0, 0.0, 0.0, 1.0 ], "midpoints" : [ 105.5, 139.0, 126.5, 139.0 ] } } ] } }