{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 5 } , "rect" : [ 50.0, 94.0, 693.0, 652.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-23", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 561.0, 378.0, 50.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-20", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 519.0, 429.0, 44.0, 20.0 ], "text" : "+ 500." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 418.0, 414.0, 42.0, 20.0 ], "text" : "* 100." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-32", "linecount" : 10, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 479.0, 6.0, 344.0, 145.0 ], "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" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "patching_rect" : [ 327.0, 80.0, 62.0, 20.0 ], "text" : "select 0 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 412.0, 231.0, 206.0, 20.0 ], "text" : "click here to close the serial port" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 412.0, 205.0, 206.0, 20.0 ], "text" : "click here to open the serial port" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-21", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 327.0, 231.0, 39.0, 18.0 ], "text" : "close" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-19", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 349.0, 205.0, 41.0, 18.0 ], "text" : "port a" } } , { "box" : { "bgcolor" : [ 0.231373, 0.713726, 1.0, 1.0 ], "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ], "candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ], "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ], "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ], "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ], "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ], "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ], "contdata" : 1, "id" : "obj-1", "maxclass" : "multislider", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, "patching_rect" : [ 302.0, 450.0, 246.0, 167.0 ], "peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ], "setminmax" : [ 0.0, 1023.0 ], "setstyle" : 3, "settype" : 0, "slidercolor" : [ 0.066667, 0.058824, 0.776471, 1.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 412.0, 179.0, 207.0, 20.0 ], "text" : "Click here to get a list of serial ports" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-3", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 153.0, 409.0, 138.0, 34.0 ], "text" : "Here's the number from Arduino's analog input" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 379.0, 378.0, 147.0, 20.0 ], "text" : "Convert ASCII to symbol" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 379.0, 355.0, 147.0, 20.0 ], "text" : "Convert integer to ASCII" } } , { "box" : { "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "fontname" : "Arial", "fontsize" : 12.0, "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "id" : "obj-6", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 302.0, 414.0, 37.0, 20.0 ], "triscale" : 0.9 } } , { "box" : { "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 302.0, 378.0, 74.0, 20.0 ], "text" : "fromsymbol" } } , { "box" : { "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-8", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 302.0, 355.0, 46.0, 20.0 ], "text" : "itoa" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-9", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 302.0, 332.0, 64.0, 20.0 ], "text" : "zl group 4" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "patching_rect" : [ 244.0, 281.0, 77.0, 20.0 ], "text" : "select 10 13" } } , { "box" : { "id" : "obj-11", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 244.0, 43.0, 15.0, 15.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-12", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 244.0, 80.0, 65.0, 20.0 ], "text" : "qmetro 10" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 369.0, 179.0, 36.0, 18.0 ], "text" : "print" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "" ], "patching_rect" : [ 244.0, 255.0, 84.0, 20.0 ], "text" : "serial a 9600" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 53.0, 72.0, 185.0, 34.0 ], "text" : "Read serial input buffer every 10 milliseconds" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-16", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 332.0, 269.0, 320.0, 48.0 ], "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" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 271.0, 32.0, 199.0, 34.0 ], "text" : "Click to open/close serial port and start/stop patch" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 311.5, 320.0, 311.5, 320.0 ], "source" : [ "obj-10", 2 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 253.5, 308.0, 311.5, 308.0 ], "source" : [ "obj-10", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 253.0, 71.0, 336.5, 71.0 ], "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 378.5, 200.5, 253.5, 200.5 ], "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 358.5, 228.5, 253.5, 228.5 ], "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 336.5, 251.5, 253.5, 251.5 ], "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 1 ] } } , { "patchline" : { "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ ] } }