{ "patcher" : { "fileversion" : 1, "rect" : [ 72.0, 45.0, 1370.0, 803.0 ], "bglocked" : 0, "defrect" : [ 72.0, 45.0, 1370.0, 803.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "p arduino_code", "patching_rect" : [ 244.0, 87.0, 77.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 0, "id" : "obj-1", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ 10.0, 59.0, 721.0, 517.0 ], "bglocked" : 0, "defrect" : [ 10.0, 59.0, 721.0, 517.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "serial port } } } void sendValue (int x){ // function to send the pin value followed by a \"space\". Serial.print(x);\rSerial.print(32, BYTE);\r}", "linecount" : 3, "patching_rect" : [ 86.0, -310.0, 490.0, 38.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-1", "fontname" : "Arial" } } ], "lines" : [ ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "comment", "text" : "nudge", "linecount" : 2, "patching_rect" : [ 464.0, 144.0, 33.0, 27.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 464.0, 172.0, 16.0, 16.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-3", "fgcolor" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "5", "patching_rect" : [ 1022.0, 584.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-4", "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "4", "patching_rect" : [ 1022.0, 490.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-5", "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "3", "patching_rect" : [ 1022.0, 391.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-6", "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "2", "patching_rect" : [ 1022.0, 278.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-7", "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "1", "patching_rect" : [ 1022.0, 179.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-8", "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 101.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-9", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 179.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-10", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 278.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-11", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 390.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-12", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 489.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-13", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "multislider", "outlettype" : [ "", "" ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "patching_rect" : [ 843.0, 583.0, 175.0, 64.0 ], "compatibility" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "setminmax" : [ 0.0, 1027.0 ], "numinlets" : 1, "settype" : 0, "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "setstyle" : 2, "numoutlets" : 2, "id" : "obj-14", "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "v1.0b003 Revised R Hoadley December 2008", "patching_rect" : [ 36.0, 92.0, 201.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 712.0, 517.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-16", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 548.0, 377.0, 15.0, 15.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-17" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 667.0, 322.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-18", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "if $i1 > $i2 then out1 bang", "outlettype" : [ "" ], "patching_rect" : [ 548.0, 346.0, 129.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-19", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Feb 2007", "patching_rect" : [ 36.0, 77.0, 72.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-20", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "ArduinoToMax", "patching_rect" : [ 36.0, 49.0, 156.0, 27.0 ], "fontsize" : 18.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-21", "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 21.0, 35.0, 559.0, 75.0 ], "rounded" : 0, "bgcolor" : [ 0.905882, 0.905882, 0.905882, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-22" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 312.0, 170.0, 16.0, 16.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-23", "fgcolor" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "help", "patching_rect" : [ 310.0, 144.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-24", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "To use the Arduino's digital pins as input, make a recieve object as shown at right.", "linecount" : 4, "patching_rect" : [ 34.0, 466.0, 121.0, 48.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-25", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "To use the Arduino's analog pins as inputs, make a receive object as shown at right.", "linecount" : 4, "patching_rect" : [ 36.0, 317.0, 123.0, 48.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-26", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Copy the block at right into your patch. (it does the work of reading the Arduino's pins) Connect the programmed Arduino, and then click \"start\". Click on help for more info.", "linecount" : 8, "patching_rect" : [ 37.0, 136.0, 113.0, 89.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-27", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a4", "outlettype" : [ "" ], "patching_rect" : [ 409.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-28", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a5", "outlettype" : [ "" ], "patching_rect" : [ 454.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-29", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a3", "outlettype" : [ "" ], "patching_rect" : [ 366.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-30", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a2", "outlettype" : [ "" ], "patching_rect" : [ 322.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-31", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a1", "outlettype" : [ "" ], "patching_rect" : [ 278.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-32", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a0", "outlettype" : [ "" ], "patching_rect" : [ 233.0, 299.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-33", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d12", "outlettype" : [ "" ], "patching_rect" : [ 603.0, 454.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-34", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d13", "outlettype" : [ "" ], "patching_rect" : [ 646.0, 454.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-35", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d11", "outlettype" : [ "" ], "patching_rect" : [ 560.0, 454.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-36", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d10", "outlettype" : [ "" ], "patching_rect" : [ 518.0, 454.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-37", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d9", "outlettype" : [ "" ], "patching_rect" : [ 481.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-38", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d8", "outlettype" : [ "" ], "patching_rect" : [ 445.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-39", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d6", "outlettype" : [ "" ], "patching_rect" : [ 374.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-40", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d7", "outlettype" : [ "" ], "patching_rect" : [ 409.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-41", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d5", "outlettype" : [ "" ], "patching_rect" : [ 338.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-42", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d4", "outlettype" : [ "" ], "patching_rect" : [ 303.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-43", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d3", "outlettype" : [ "" ], "patching_rect" : [ 269.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-44", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d2", "outlettype" : [ "" ], "patching_rect" : [ 236.0, 454.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-45", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Reading the Arduino's digital pins", "patching_rect" : [ 256.0, 539.0, 223.0, 21.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-46", "fontname" : "Verdana" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 389.0, 172.0, 16.0, 16.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-47", "fgcolor" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 236.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-48" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 646.0, 514.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-49" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 603.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-50" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 560.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-51" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 518.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-52" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 481.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-53" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 445.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-54" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 409.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-55" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 374.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-56" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 338.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-57" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 303.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-58" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 269.0, 513.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-59" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 233.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-60", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 278.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-61", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 322.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-62", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 366.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-63", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 409.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-64", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 454.0, 360.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-65", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "toggle", "outlettype" : [ "int" ], "patching_rect" : [ 236.0, 170.0, 16.0, 16.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-66" } } , { "box" : { "maxclass" : "comment", "text" : "start", "patching_rect" : [ 229.0, 144.0, 40.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-67", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "serial port settings", "linecount" : 2, "patching_rect" : [ 379.0, 144.0, 55.0, 27.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-68", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Reading the Arduino's analog pins", "patching_rect" : [ 251.0, 387.0, 225.0, 21.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-69", "fontname" : "Verdana" } } , { "box" : { "maxclass" : "newobj", "text" : "p arduinoSerialreader", "patching_rect" : [ 236.0, 207.0, 247.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 4, "numoutlets" : 0, "id" : "obj-70", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ 93.0, 46.0, 1370.0, 856.0 ], "bglocked" : 0, "defrect" : [ 93.0, 46.0, 1370.0, 856.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "inlet", "outlettype" : [ "bang" ], "patching_rect" : [ 1169.0, 109.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-1", "comment" : "inlet for patcher control" } } , { "box" : { "maxclass" : "message", "text" : "baud 115200", "outlettype" : [ "" ], "patching_rect" : [ 123.0, 304.0, 69.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 330.0, 204.0, 27.0, 27.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-3" } } , { "box" : { "maxclass" : "comment", "text" : "Set the sample rate: between every 15ms and every 100ms.", "patching_rect" : [ 527.0, 95.0, 284.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-4", "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 330.0, 137.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-5", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "slider", "outlettype" : [ "" ], "min" : 15.0, "patching_rect" : [ 330.0, 80.0, 169.0, 38.0 ], "orientation" : 1, "numinlets" : 1, "size" : 86.0, "numoutlets" : 1, "id" : "obj-6" } } , { "box" : { "maxclass" : "newobj", "text" : "loadbang", "outlettype" : [ "bang" ], "patching_rect" : [ 255.0, 204.0, 48.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-7", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "delay 4", "outlettype" : [ "bang" ], "patching_rect" : [ 188.0, 227.0, 43.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-8", "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 1214.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-9", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 1149.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-10", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 1084.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-11", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 1019.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-12", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 954.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-13", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 889.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-14", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 824.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-15", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 759.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-16", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 694.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-17", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 629.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-18", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 564.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-19", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 499.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-20", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 434.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-21", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 369.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-22", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 304.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-23", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 239.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-24", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 174.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-25", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 109.0, 542.0, 35.0, 17.0 ], "fontsize" : 9.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-26", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Serial Port Settings", "patching_rect" : [ 570.0, 44.0, 237.0, 27.0 ], "fontsize" : 18.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-27", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "thispatcher", "outlettype" : [ "", "" ], "patching_rect" : [ 1023.0, 202.0, 61.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-28", "fontname" : "Arial", "save" : [ "#N", "thispatcher", ";", "#Q", "end", ";" ] } } , { "box" : { "maxclass" : "message", "text" : "front", "outlettype" : [ "" ], "patching_rect" : [ 1023.0, 181.0, 33.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-29", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "outlettype" : [ "" ], "patching_rect" : [ 877.0, 202.0, 47.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-30", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "open", "outlettype" : [ "" ], "patching_rect" : [ 877.0, 181.0, 30.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-31", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "p arduino2max_help", "patching_rect" : [ 877.0, 224.0, 100.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-32", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ 483.0, 171.0, 717.0, 593.0 ], "bglocked" : 0, "defrect" : [ 483.0, 171.0, 717.0, 593.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "start", "patching_rect" : [ 254.0, 165.0, 48.0, 18.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-1", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "settings", "patching_rect" : [ 412.0, 162.0, 56.0, 18.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 339.0, 190.0, 23.0, 23.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-3", "fgcolor" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "help", "patching_rect" : [ 335.0, 163.0, 35.0, 18.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-4", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Arduino2Max uses an Arduino board programmed with the Arduino code that watches the Arduino's input pins and makes the pin data available through receive objects anywere in your patch.", "linecount" : 2, "patching_rect" : [ 33.0, 79.0, 493.0, 29.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-5", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "digital pins", "patching_rect" : [ 549.0, 309.0, 61.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-6", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "analog pins", "patching_rect" : [ 80.0, 309.0, 71.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-7", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 425.0, 190.0, 23.0, 23.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-8", "fgcolor" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "toggle", "outlettype" : [ "int" ], "patching_rect" : [ 253.0, 192.0, 21.0, 21.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-9" } } , { "box" : { "maxclass" : "newobj", "text" : "p arduinoreader", "patching_rect" : [ 253.0, 254.0, 183.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 3, "numoutlets" : 0, "id" : "obj-10", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ -8.0, 44.0, 1295.0, 686.0 ], "bglocked" : 0, "defrect" : [ -8.0, 44.0, 1295.0, 686.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "inlet", "outlettype" : [ "bang" ], "patching_rect" : [ 666.0, 67.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-1", "comment" : "inlet to open help patch" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "bang" ], "patching_rect" : [ 1136.0, 64.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-2", "comment" : "inlet for patcher control" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "int" ], "patching_rect" : [ 73.0, 39.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-3", "comment" : "1 or 0 to start/stop serial reads" } } ], "lines" : [ ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "comment", "text" : "A few notes: - Unused inputs will fluctuate between values. This is normal, as unconected pins do this on their own.", "patching_rect" : [ 35.0, 417.0, 585.0, 18.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-11", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Once you have the above patch, you can get Arduino's analog and digital values anywere in your own patcher by making a \"receive a#\" or \"receive d#\" object, where # is the input pin you want to read.", "linecount" : 3, "patching_rect" : [ 189.0, 343.0, 319.0, 38.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-12", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d3", "outlettype" : [ "" ], "patching_rect" : [ 600.0, 336.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-13", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r d2", "outlettype" : [ "" ], "patching_rect" : [ 544.0, 336.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-14", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a1", "outlettype" : [ "" ], "patching_rect" : [ 124.0, 336.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "r a0", "outlettype" : [ "" ], "patching_rect" : [ 67.0, 336.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-16", "fontname" : "Arial" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "patching_rect" : [ 544.0, 364.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-17" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "offcolor" : [ 1.0, 0.666667, 0.0, 1.0 ], "patching_rect" : [ 600.0, 364.0, 17.0, 17.0 ], "bgcolor" : [ 0.35294, 0.35294, 0.35294, 1.0 ], "oncolor" : [ 1.0, 1.0, 0.0, 1.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-18" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 67.0, 364.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 1.0, 0.741176, 0.611765, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-19", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "patching_rect" : [ 124.0, 364.0, 40.0, 18.0 ], "fontsize" : 10.0, "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "triscale" : 0.9, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-20", "fontname" : "Arial", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "- Arduino2Max runs flawlessly on a 1.83 GHz Macbook Pro;\ryour mileage may vary.", "linecount" : 2, "patching_rect" : [ 35.0, 462.0, 655.0, 29.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-21", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "- Patch adapted from Thomas Ouellet Fredericks' \"Simple Message Sytem\" example. Serial writes are possible, but not implemented here: see the S.M.S. code.", "linecount" : 2, "patching_rect" : [ 36.0, 491.0, 636.0, 29.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-22", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "- You may have to change your serial port to suit the port in use. Click on the yellow button to see the guts of the serial read and to make changes to how the patch talks to the serial port.", "linecount" : 2, "patching_rect" : [ 35.0, 433.0, 643.0, 29.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-23", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "At minimum, you need the \"arduinoreader\" patcher at the right, which does the work of reading the pins. The toggle turns serial reads from the Arduino on and off.", "linecount" : 7, "patching_rect" : [ 97.0, 175.0, 122.0, 79.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-24", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "The right-hand yellow button opens the patch so that you can adjust settings, like how often to read from the Arduino and which port to use.", "linecount" : 7, "patching_rect" : [ 495.0, 179.0, 105.0, 79.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-25", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Arduino2Max", "frgb" : [ 0.082353, 0.219608, 0.035294, 1.0 ], "patching_rect" : [ 33.0, 33.0, 163.0, 27.0 ], "fontsize" : 18.0, "textcolor" : [ 0.082353, 0.219608, 0.035294, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-26", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Read the 6 analog and 12 digital input pins of the Arduino into MAX.", "patching_rect" : [ 218.0, 39.0, 334.0, 18.0 ], "fontsize" : 10.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-27", "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 18.0, 29.0, 670.0, 101.0 ], "rounded" : 0, "bgcolor" : [ 1.0, 0.968627, 0.811765, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-28" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "" ], "hidden" : 1, "patching_rect" : [ 594.0, 21.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-29", "comment" : "" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 18.0, 412.0, 671.0, 114.0 ], "rounded" : 0, "bgcolor" : [ 1.0, 0.968627, 0.811765, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-30" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 43.0, 332.0, 128.0, 57.0 ], "rounded" : 0, "bgcolor" : [ 0.509804, 0.854902, 0.909804, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-31" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 245.0, 154.0, 227.0, 129.0 ], "rounded" : 0, "bgcolor" : [ 0.509804, 0.854902, 0.909804, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-32" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 515.0, 329.0, 139.0, 57.0 ], "rounded" : 0, "bgcolor" : [ 0.509804, 0.854902, 0.909804, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-33" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-10", 2 ], "hidden" : 0, "midpoints" : [ 434.5, 226.0, 426.5, 226.0 ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ 262.5, 224.0, 262.5, 224.0 ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "bang" ], "patching_rect" : [ 877.0, 108.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-33", "comment" : "inlet to open help patch" } } , { "box" : { "maxclass" : "newobj", "text" : "r onoff", "outlettype" : [ "" ], "patching_rect" : [ 41.0, 97.0, 41.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 0, "numoutlets" : 1, "id" : "obj-34", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "To change the port in use, click print above and then enter the letter into the serial object at left that corresponds to the serial port you want to use, e.g. serial a, serial b, and so on.", "linecount" : 3, "patching_rect" : [ 333.0, 319.0, 292.0, 38.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-35", "fontname" : "Arial" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "bang" ], "patching_rect" : [ 1024.0, 108.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-36", "comment" : "inlet for patcher control" } } , { "box" : { "maxclass" : "comment", "text" : "help and patcher control stuff.", "patching_rect" : [ 877.0, 259.0, 168.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-37", "fontname" : "Arial" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "int" ], "patching_rect" : [ 109.0, 80.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-38", "comment" : "1 or 0 to start/stop serial reads" } } , { "box" : { "maxclass" : "comment", "text" : "Print a list of serial ports to the max window", "patching_rect" : [ 370.0, 211.0, 243.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-39", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "outlettype" : [ "bang" ], "patching_rect" : [ 188.0, 259.0, 15.0, 15.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-40" } } , { "box" : { "maxclass" : "newobj", "text" : "p convert", "outlettype" : [ "" ], "patching_rect" : [ 109.0, 250.0, 53.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-41", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ 289.0, 44.0, 838.0, 659.0 ], "bglocked" : 0, "defrect" : [ 289.0, 44.0, 838.0, 659.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "outlet", "patching_rect" : [ 99.0, 316.0, 15.0, 15.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-1", "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "spell", "outlettype" : [ "int" ], "patching_rect" : [ 107.0, 210.0, 31.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "13", "outlettype" : [ "" ], "patching_rect" : [ 90.0, 241.0, 20.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-3", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "outlettype" : [ "bang", "" ], "patching_rect" : [ 90.0, 127.0, 27.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-4", "fontname" : "Arial" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "" ], "patching_rect" : [ 90.0, 70.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-5", "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ 99.5, 286.0, 108.0, 286.0 ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ 116.5, 286.0, 108.0, 286.0 ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 99.5, 235.0, 98.0, 235.0 ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "newobj", "text" : "s d12", "patching_rect" : [ 1149.0, 657.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-42", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d13", "patching_rect" : [ 1214.0, 657.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-43", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d11", "patching_rect" : [ 1084.0, 657.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-44", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d10", "patching_rect" : [ 1019.0, 657.0, 35.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-45", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d9", "patching_rect" : [ 954.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-46", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d8", "patching_rect" : [ 889.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-47", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d6", "patching_rect" : [ 759.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-48", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d7", "patching_rect" : [ 824.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-49", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d5", "patching_rect" : [ 694.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-50", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d4", "patching_rect" : [ 629.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-51", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d3", "patching_rect" : [ 564.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-52", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s d2", "patching_rect" : [ 499.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-53", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a4", "patching_rect" : [ 369.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-54", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a5", "patching_rect" : [ 434.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-55", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a3", "patching_rect" : [ 304.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-56", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a2", "patching_rect" : [ 239.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-57", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a1", "patching_rect" : [ 174.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-58", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "s a0", "patching_rect" : [ 109.0, 657.0, 29.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 0, "id" : "obj-59", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "p convertback", "outlettype" : [ "" ], "patching_rect" : [ 109.0, 372.0, 73.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-60", "fontname" : "Arial", "patcher" : { "fileversion" : 1, "rect" : [ 582.0, 197.0, 281.0, 423.0 ], "bglocked" : 0, "defrect" : [ 582.0, 197.0, 281.0, 423.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "fromsymbol", "outlettype" : [ "" ], "patching_rect" : [ 137.0, 226.0, 64.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 1, "id" : "obj-1", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "itoa", "outlettype" : [ "int" ], "patching_rect" : [ 137.0, 182.0, 40.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 3, "numoutlets" : 1, "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "zl group 78", "outlettype" : [ "", "" ], "patching_rect" : [ 137.0, 148.0, 61.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 2, "id" : "obj-3", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "sel 10 13", "outlettype" : [ "bang", "bang", "" ], "patching_rect" : [ 137.0, 84.0, 53.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 3, "id" : "obj-4", "fontname" : "Arial" } } , { "box" : { "maxclass" : "outlet", "patching_rect" : [ 137.0, 298.0, 26.0, 26.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-5", "comment" : "out" } } , { "box" : { "maxclass" : "inlet", "outlettype" : [ "int" ], "patching_rect" : [ 137.0, 37.0, 15.0, 15.0 ], "numinlets" : 0, "numoutlets" : 1, "id" : "obj-6", "comment" : "in" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 2 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 180.5, 124.0, 146.5, 124.0 ] } } , { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 163.5, 124.0, 146.5, 124.0 ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "newobj", "text" : "route list", "outlettype" : [ "", "" ], "patching_rect" : [ 109.0, 430.0, 52.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-61", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 1214.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-62", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 1149.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-63", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 1084.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-64", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 1019.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-65", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 954.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-66", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 889.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-67", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 824.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-68", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 759.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-69", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 694.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-70", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 629.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-71", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 564.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-72", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 499.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 0.156863, 0.8, 0.54902, 1.0 ], "numoutlets" : 3, "id" : "obj-73", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 434.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-74", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 369.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-75", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 304.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-76", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 239.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-77", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 174.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-78", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "change 0", "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 109.0, 571.0, 49.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "color" : [ 1.0, 0.360784, 0.682353, 1.0 ], "numoutlets" : 3, "id" : "obj-79", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "unpack i i i i i i i i i i i i i i i i i i", "outlettype" : [ "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int" ], "patching_rect" : [ 109.0, 488.0, 1131.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 18, "id" : "obj-80", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "r", "outlettype" : [ "" ], "patching_rect" : [ 109.0, 200.0, 16.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-81", "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "outlettype" : [ "int" ], "patching_rect" : [ 109.0, 117.0, 15.0, 15.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-82" } } , { "box" : { "maxclass" : "newobj", "text" : "metro 15", "outlettype" : [ "bang" ], "patching_rect" : [ 109.0, 164.0, 52.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-83", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "serial a 115200 8 1 0", "outlettype" : [ "int", "" ], "patching_rect" : [ 109.0, 325.0, 110.0, 17.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 2, "id" : "obj-84", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "print", "outlettype" : [ "" ], "patching_rect" : [ 330.0, 261.0, 32.0, 15.0 ], "fontsize" : 9.0, "numinlets" : 2, "numoutlets" : 1, "id" : "obj-85", "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 307.0, 36.0, 537.0, 364.0 ], "rounded" : 0, "bgcolor" : [ 0.807843, 0.807843, 0.807843, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-86" } } , { "box" : { "maxclass" : "comment", "text" : "RH: you seem to need to edit the serial object to get the port to work. I'll try and find a solution...", "linecount" : 5, "patching_rect" : [ 1.0, 305.0, 101.0, 58.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-87", "fontname" : "Arial" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-62", 0 ], "destination" : [ "obj-43", 0 ], "hidden" : 0, "midpoints" : [ 1223.5, 640.0, 1223.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-62", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 17 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-63", 0 ], "destination" : [ "obj-42", 0 ], "hidden" : 0, "midpoints" : [ 1158.5, 640.0, 1158.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-63", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 16 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 0 ], "destination" : [ "obj-44", 0 ], "hidden" : 0, "midpoints" : [ 1093.5, 640.0, 1093.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-64", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 15 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-65", 0 ], "destination" : [ "obj-45", 0 ], "hidden" : 0, "midpoints" : [ 1028.5, 640.0, 1028.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-65", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 14 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-66", 0 ], "destination" : [ "obj-46", 0 ], "hidden" : 0, "midpoints" : [ 963.5, 640.0, 963.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-66", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 13 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-67", 0 ], "destination" : [ "obj-47", 0 ], "hidden" : 0, "midpoints" : [ 898.5, 640.0, 898.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-67", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 12 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-32", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-68", 0 ], "destination" : [ "obj-49", 0 ], "hidden" : 0, "midpoints" : [ 833.5, 640.0, 833.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-68", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 11 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-69", 0 ], "destination" : [ "obj-48", 0 ], "hidden" : 0, "midpoints" : [ 768.5, 640.0, 768.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-69", 0 ], "hidden" : 0, "midpoints" : [ 768.5, 564.0, 768.5, 564.0 ] } } , { "patchline" : { "source" : [ "obj-80", 10 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ 772.617676, 530.0, 768.5, 530.0 ] } } , { "patchline" : { "source" : [ "obj-70", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ 703.5, 640.0, 703.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-70", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 9 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-71", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 0, "midpoints" : [ 638.5, 640.0, 638.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-71", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 8 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-72", 0 ], "destination" : [ "obj-52", 0 ], "hidden" : 0, "midpoints" : [ 573.5, 640.0, 573.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-72", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 7 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-73", 0 ], "destination" : [ "obj-53", 0 ], "hidden" : 0, "midpoints" : [ 508.5, 640.0, 508.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-73", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 6 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-74", 0 ], "destination" : [ "obj-55", 0 ], "hidden" : 0, "midpoints" : [ 443.5, 640.0, 443.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-74", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 5 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-75", 0 ], "destination" : [ "obj-54", 0 ], "hidden" : 0, "midpoints" : [ 378.5, 640.0, 378.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-75", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 4 ], "destination" : [ "obj-22", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-85", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-85", 0 ], "hidden" : 0, "midpoints" : [ 264.5, 241.0, 339.5, 241.0 ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ 339.5, 127.0, 339.5, 127.0 ] } } , { "patchline" : { "source" : [ "obj-76", 0 ], "destination" : [ "obj-56", 0 ], "hidden" : 0, "midpoints" : [ 313.5, 640.0, 313.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-76", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 3 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-77", 0 ], "destination" : [ "obj-57", 0 ], "hidden" : 0, "midpoints" : [ 248.5, 640.0, 248.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-77", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 2 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-83", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ 118.5, 192.0, 197.5, 192.0 ] } } , { "patchline" : { "source" : [ "obj-78", 0 ], "destination" : [ "obj-58", 0 ], "hidden" : 0, "midpoints" : [ 183.5, 640.0, 183.5, 640.0 ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-78", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 1 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-83", 1 ], "hidden" : 0, "midpoints" : [ 339.5, 159.0, 151.5, 159.0 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ 1178.0, 296.0, 132.5, 296.0 ] } } , { "patchline" : { "source" : [ "obj-79", 0 ], "destination" : [ "obj-59", 0 ], "hidden" : 0, "midpoints" : [ 118.5, 638.0, 118.5, 638.0 ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-79", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-61", 0 ], "destination" : [ "obj-80", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-60", 0 ], "destination" : [ "obj-61", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-84", 0 ], "destination" : [ "obj-60", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-41", 0 ], "destination" : [ "obj-84", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-84", 0 ], "hidden" : 0, "midpoints" : [ 197.0, 293.0, 118.5, 293.0 ] } } , { "patchline" : { "source" : [ "obj-85", 0 ], "destination" : [ "obj-84", 0 ], "hidden" : 0, "midpoints" : [ 339.5, 301.0, 118.5, 301.0 ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-84", 0 ], "hidden" : 0, "midpoints" : [ 132.5, 322.0, 118.5, 322.0 ] } } , { "patchline" : { "source" : [ "obj-81", 0 ], "destination" : [ "obj-41", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-83", 0 ], "destination" : [ "obj-81", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-82", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-38", 0 ], "destination" : [ "obj-82", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-82", 0 ], "hidden" : 0, "midpoints" : [ 50.5, 115.0, 118.0, 115.0 ] } } ] } , "saved_object_attributes" : { "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial" } } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 217.0, 441.0, 484.0, 127.0 ], "rounded" : 0, "bgcolor" : [ 0.709804, 0.709804, 0.709804, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-71" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 216.0, 287.0, 300.0, 128.0 ], "rounded" : 0, "bgcolor" : [ 0.709804, 0.713726, 0.713726, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-72" } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 214.0, 131.0, 309.0, 110.0 ], "rounded" : 0, "bgcolor" : [ 0.709804, 0.709804, 0.709804, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "id" : "obj-73" } } , { "box" : { "maxclass" : "comment", "text" : "connect sensors to analogue pins to test for thresholds...", "linecount" : 3, "patching_rect" : [ 569.0, 365.0, 100.0, 38.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-74", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "coonnect a piezo to digital ins (black to ground) to make a series of 'buttons'", "linecount" : 4, "patching_rect" : [ 714.0, 433.0, 100.0, 48.0 ], "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-75", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "0", "patching_rect" : [ 1022.0, 102.0, 22.0, 23.0 ], "fontsize" : 14.0, "numinlets" : 1, "numoutlets" : 0, "id" : "obj-76", "fontname" : "American Typewriter" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 1, "midpoints" : [ 463.5, 325.0, 852.5, 325.0 ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 1, "midpoints" : [ 418.5, 325.0, 852.5, 325.0 ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 1, "midpoints" : [ 375.5, 271.0, 852.5, 271.0 ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 1, "midpoints" : [ 331.5, 421.0, 852.5, 421.0 ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 1, "midpoints" : [ 287.5, 432.0, 852.5, 432.0 ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 1, "midpoints" : [ 242.5, 610.0, 852.5, 610.0 ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ 655.5, 495.0, 721.5, 495.0 ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-19", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-49", 0 ], "hidden" : 0, "midpoints" : [ 655.5, 487.0, 655.5, 487.0 ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ 463.5, 331.0, 557.5, 331.0 ] } } , { "patchline" : { "source" : [ "obj-37", 0 ], "destination" : [ "obj-52", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-38", 0 ], "destination" : [ "obj-53", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-70", 3 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-65", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-39", 0 ], "destination" : [ "obj-54", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-41", 0 ], "destination" : [ "obj-55", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-64", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-47", 0 ], "destination" : [ "obj-70", 2 ], "hidden" : 0, "midpoints" : [ 398.5, 185.0, 397.5, 185.0 ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-56", 0 ], "hidden" : 0, "midpoints" : [ 383.5, 483.0, 383.5, 483.0 ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-63", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-42", 0 ], "destination" : [ "obj-57", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-62", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-70", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-43", 0 ], "destination" : [ "obj-58", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-61", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-44", 0 ], "destination" : [ "obj-59", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-45", 0 ], "destination" : [ "obj-48", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-66", 0 ], "destination" : [ "obj-70", 0 ], "hidden" : 0, "midpoints" : [ 245.5, 184.0, 245.5, 184.0 ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-60", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } }