{ "patcher" : { "fileversion" : 1, "rect" : [ 364.0, 44.0, 906.0, 761.0 ], "bglocked" : 0, "defrect" : [ 364.0, 44.0, 906.0, 761.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, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "loadbang", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 58.0, 362.0, 58.0, 20.0 ], "id" : "obj-63", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setminmax", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 58.0, 644.0, 112.0, 20.0 ], "id" : "obj-57", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "pak 0. 0.", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 58.0, 613.0, 94.0, 20.0 ], "id" : "obj-18", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "0", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 201.0, 523.0, 32.5, 18.0 ], "id" : "obj-20", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "1000", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 151.0, 474.0, 36.0, 18.0 ], "id" : "obj-22", "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 58.0, 398.0, 20.0, 20.0 ], "id" : "obj-23" } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "patching_rect" : [ 133.0, 576.0, 50.0, 20.0 ], "id" : "obj-24", "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "patching_rect" : [ 58.0, 576.0, 50.0, 20.0 ], "id" : "obj-25", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "trough 0", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 3, "outlettype" : [ "int", "int", "int" ], "patching_rect" : [ 58.0, 540.0, 53.0, 20.0 ], "id" : "obj-28", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "peak 1023", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 3, "outlettype" : [ "int", "int", "int" ], "patching_rect" : [ 133.0, 540.0, 65.0, 20.0 ], "id" : "obj-29", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "dump", "numinlets" : 2, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 58.0, 441.0, 42.0, 18.0 ], "id" : "obj-31", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "iter", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 58.0, 505.0, 27.0, 20.0 ], "id" : "obj-33", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "coll weather.txt", "numinlets" : 1, "fontsize" : 11.595187, "numoutlets" : 4, "outlettype" : [ "", "", "", "" ], "color" : [ 0.815686, 0.270588, 0.270588, 1.0 ], "patching_rect" : [ 58.0, 474.0, 88.0, 20.0 ], "id" : "obj-34", "fontname" : "Arial", "saved_object_attributes" : { "embed" : 0 } } } , { "box" : { "maxclass" : "comment", "text" : "Graph\n\nThis patch takes a string, containing ASCII formatted number from 0 to 1023, with a carriage return and linefeed at the end. It converts the string to an integer and graphs it.\n\ncreated 2006\nby David A. Mellis\nmodified 14 Apr 2009\nby Scott Fitzgerald and Tom Igoe", "linecount" : 10, "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 511.0, 244.0, 344.0, 144.0 ], "id" : "obj-32", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "select 0 1", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "patching_rect" : [ 359.0, 318.0, 62.0, 20.0 ], "id" : "obj-30", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "click here to close the serial port", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 444.0, 469.0, 206.0, 20.0 ], "id" : "obj-26", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "click here to open the serial port", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 444.0, 443.0, 206.0, 20.0 ], "id" : "obj-27", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "close", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 359.0, 469.0, 39.0, 18.0 ], "id" : "obj-21", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "port a", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 381.0, 443.0, 41.0, 18.0 ], "id" : "obj-19", "fontname" : "Arial" } } , { "box" : { "maxclass" : "multislider", "slidercolor" : [ 0.066667, 0.058824, 0.776471, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "numinlets" : 1, "settype" : 0, "setminmax" : [ 0.0, 1023.0 ], "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "numoutlets" : 2, "contdata" : 1, "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "outlettype" : [ "", "" ], "bgcolor" : [ 0.231373, 0.713726, 1.0, 1.0 ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "setstyle" : 3, "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ], "patching_rect" : [ 334.0, 688.0, 246.0, 167.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "id" : "obj-1", "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Click here to get a list of serial ports", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 444.0, 417.0, 207.0, 20.0 ], "id" : "obj-2", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Here's the number from Arduino's analog input", "linecount" : 2, "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 189.0, 725.0, 138.0, 34.0 ], "id" : "obj-3", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Convert ASCII to symbol", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 411.0, 616.0, 147.0, 20.0 ], "id" : "obj-4", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Convert integer to ASCII", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 411.0, 593.0, 147.0, 20.0 ], "id" : "obj-5", "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 2, "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "outlettype" : [ "int", "bang" ], "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "patching_rect" : [ 334.0, 652.0, 37.0, 20.0 ], "id" : "obj-6", "fontname" : "Arial", "triscale" : 0.9 } } , { "box" : { "maxclass" : "newobj", "text" : "fromsymbol", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "" ], "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "patching_rect" : [ 334.0, 616.0, 74.0, 20.0 ], "id" : "obj-7", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "itoa", "numinlets" : 3, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "int" ], "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "patching_rect" : [ 334.0, 593.0, 46.0, 20.0 ], "id" : "obj-8", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "zl group 4", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 334.0, 570.0, 64.0, 20.0 ], "id" : "obj-9", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "select 10 13", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "patching_rect" : [ 276.0, 519.0, 77.0, 20.0 ], "id" : "obj-10", "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 276.0, 281.0, 15.0, 15.0 ], "id" : "obj-11" } } , { "box" : { "maxclass" : "newobj", "text" : "qmetro 20", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 276.0, 318.0, 65.0, 20.0 ], "id" : "obj-12", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "print", "numinlets" : 2, "fontsize" : 12.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 401.0, 417.0, 36.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "serial a 115200", "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 2, "outlettype" : [ "int", "" ], "patching_rect" : [ 276.0, 493.0, 92.0, 20.0 ], "id" : "obj-14", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Read serial input buffer every 10 milliseconds", "linecount" : 2, "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 85.0, 310.0, 185.0, 34.0 ], "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "If you get newline (ASCII 10), send the list. If you get return (ASCII 13) do nothing. Any other value, add to the list", "linecount" : 3, "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 364.0, 507.0, 320.0, 48.0 ], "id" : "obj-16", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Click to open/close serial port and start/stop patch", "linecount" : 2, "numinlets" : 1, "fontsize" : 12.0, "numoutlets" : 0, "patching_rect" : [ 303.0, 270.0, 199.0, 34.0 ], "id" : "obj-17", "fontname" : "Arial" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-29", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ 67.5, 534.0, 142.5, 534.0 ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-28", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-22", 0 ], "hidden" : 0, "midpoints" : [ 67.5, 421.0, 160.5, 421.0 ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ 67.5, 417.0, 210.5, 417.0 ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-18", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-57", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ 285.5, 546.0, 343.5, 546.0 ] } } , { "patchline" : { "source" : [ "obj-10", 2 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ 343.5, 558.0, 343.5, 558.0 ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 1 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ 285.0, 309.0, 368.5, 309.0 ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ 368.5, 489.5, 285.5, 489.5 ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ 390.5, 466.5, 285.5, 466.5 ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ 410.5, 438.5, 285.5, 438.5 ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } }