{

                "boxes" : [                           {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "* 256",

                                                                "id" : "obj-49",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 203.0, 499.0, 39.0, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "+",

                                                                "id" : "obj-48",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 203.0, 522.0, 32.5, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "unpack 0 0 0 0 0 0 0 0 0 0 0 0 0",

                                                                "id" : "obj-47",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 68.0, 475.0, 181.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 13,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "print",

                                                                "id" : "obj-40",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 176.0, 411.0, 34.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "t l 0",

                                                                "id" : "obj-39",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 176.0, 380.0, 32.5, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "", "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "zl group 13",

                                                                "id" : "obj-38",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 176.0, 357.0, 70.0, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "", "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "1",

                                                                "id" : "obj-37",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 108.0, 380.0, 32.5, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "toggle",

                                                                "id" : "obj-35",

                                                                "patching_rect" : [ 104.0, 270.0, 20.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 1,

                                                                "outlettype" : [ "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "route 126",

                                                                "id" : "obj-33",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 108.0, 356.0, 61.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "", "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "+ 1",

                                                                "id" : "obj-31",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 108.0, 294.0, 32.5, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "Left out if scanning,\nRight out if grouping 13",

                                                                "linecount" : 2,

                                                                "id" : "obj-29",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 79.0, 436.0, 150.0, 34.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "gate 2 1",

                                                                "id" : "obj-25",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 108.0, 317.0, 54.0, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "", "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "65 84 13",

                                                                "id" : "obj-24",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 79.0, 209.0, 57.0, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "43 43 43",

                                                                "id" : "obj-22",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 82.0, 170.0, 57.0, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "select 0 1",

                                                                "id" : "obj-30",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 226.0, 57.0, 62.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 3,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "bang", "bang", "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "click here to close the serial port",

                                                                "id" : "obj-26",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 311.0, 208.0, 206.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "click here to open the serial port",

                                                                "id" : "obj-27",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 311.0, 182.0, 206.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "close",

                                                                "id" : "obj-21",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 226.0, 208.0, 39.0, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "port h",

                                                                "id" : "obj-19",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 248.0, 182.0, 41.0, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "multislider",

                                                                "setstyle" : 3,

                                                                "id" : "obj-1",

                                                                "candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ],

                                                                "settype" : 0,

                                                                "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 ],

                                                                "candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ],

                                                                "slidercolor" : [ 0.066667, 0.058824, 0.776471, 1.0 ],

                                                                "patching_rect" : [ 314.0, 307.0, 246.0, 167.0 ],

                                                                "candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ],

                                                                "numinlets" : 1,

                                                                "candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ],

                                                                "contdata" : 1,

                                                                "numoutlets" : 2,

                                                                "candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ],

                                                                "setminmax" : [ 0.0, 1024.0 ],

                                                                "outlettype" : [ "", "" ],

                                                                "candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "Click here to get a list of serial ports",

                                                                "id" : "obj-2",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 311.0, 156.0, 207.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "number",

                                                                "id" : "obj-6",

                                                                "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 314.0, 281.0, 47.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],

                                                                "triscale" : 0.9,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int", "bang" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "toggle",

                                                                "id" : "obj-11",

                                                                "patching_rect" : [ 143.0, 20.0, 15.0, 15.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 1,

                                                                "outlettype" : [ "int" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "qmetro 10",

                                                                "id" : "obj-12",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 143.0, 57.0, 65.0, 20.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "bang" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "message",

                                                                "text" : "print",

                                                                "id" : "obj-13",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 268.0, 156.0, 36.0, 18.0 ],

                                                                "numinlets" : 2,

                                                                "numoutlets" : 1,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "newobj",

                                                                "text" : "serial h 19200",

                                                                "id" : "obj-14",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 143.0, 232.0, 86.0, 20.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 2,

                                                                "fontname" : "Arial",

                                                                "outlettype" : [ "int", "" ]

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "Read serial input buffer every 10 milliseconds",

                                                                "linecount" : 3,

                                                                "id" : "obj-15",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 13.0, 45.0, 123.0, 48.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

,                               {

                                                "box" :                                  {

                                                                "maxclass" : "comment",

                                                                "text" : "Click to open/close serial port and start/stop patch",

                                                                "linecount" : 2,

                                                                "id" : "obj-17",

                                                                "fontsize" : 12.0,

                                                                "patching_rect" : [ 170.0, 9.0, 199.0, 34.0 ],

                                                                "numinlets" : 1,

                                                                "numoutlets" : 0,

                                                                "fontname" : "Arial"

                                                }

 

                                }

 ],

                "lines" : [                              {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-6", 0 ],

                                                                "destination" : [ "obj-1", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-11", 0 ],

                                                                "destination" : [ "obj-30", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 152.0, 48.0, 235.5, 48.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-30", 1 ],

                                                                "destination" : [ "obj-19", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-30", 0 ],

                                                                "destination" : [ "obj-21", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-11", 0 ],

                                                                "destination" : [ "obj-12", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-22", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 91.5, 205.0, 152.5, 205.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-12", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-13", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 277.5, 177.5, 152.5, 177.5 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-19", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 257.5, 205.5, 152.5, 205.5 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-21", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 235.5, 228.5, 152.5, 228.5 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-24", 0 ],

                                                                "destination" : [ "obj-14", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 88.5, 238.0, 139.0, 238.0, 139.0, 229.0, 152.5, 229.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-25", 0 ],

                                                                "destination" : [ "obj-33", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-33", 0 ],

                                                                "destination" : [ "obj-37", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-37", 0 ],

                                                                "destination" : [ "obj-35", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 117.5, 399.0, 93.0, 399.0, 93.0, 267.0, 113.5, 267.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-25", 1 ],

                                                                "destination" : [ "obj-38", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 152.5, 339.0, 185.5, 339.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-38", 0 ],

                                                                "destination" : [ "obj-39", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-39", 1 ],

                                                                "destination" : [ "obj-35", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 199.0, 408.0, 150.0, 408.0, 150.0, 408.0, 93.0, 408.0, 93.0, 267.0, 113.5, 267.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-35", 0 ],

                                                                "destination" : [ "obj-31", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-31", 0 ],

                                                                "destination" : [ "obj-25", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-47", 11 ],

                                                                "destination" : [ "obj-48", 1 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-49", 0 ],

                                                                "destination" : [ "obj-48", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-47", 10 ],

                                                                "destination" : [ "obj-49", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-48", 0 ],

                                                                "destination" : [ "obj-6", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 212.5, 553.0, 301.0, 553.0, 301.0, 277.0, 323.5, 277.0 ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-14", 0 ],

                                                                "destination" : [ "obj-25", 1 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [  ]

                                                }

 

                                }

,                               {

                                                "patchline" :                                       {

                                                                "source" : [ "obj-39", 0 ],

                                                                "destination" : [ "obj-47", 0 ],

                                                                "hidden" : 0,

                                                                "midpoints" : [ 185.5, 402.0, 150.0, 402.0, 150.0, 423.0, 77.5, 423.0 ]

                                                }

 

                                }

 ]

}