{ "patcher" : { "fileversion" : 1, "rect" : [ 25.0, 69.0, 640.0, 480.0 ], "bglocked" : 0, "defrect" : [ 25.0, 69.0, 640.0, 480.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "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" : "unpack 0 0 0", "patching_rect" : [ 58.0, 213.0, 79.0, 20.0 ], "id" : "obj-8", "fontname" : "Arial", "outlettype" : [ "int", "int", "int" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 3 } } , { "box" : { "maxclass" : "dial", "patching_rect" : [ 446.0, 60.0, 40.0, 40.0 ], "id" : "obj-6", "outlettype" : [ "float" ], "size" : 256.0, "clip" : 0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "hsl $1 255 127", "patching_rect" : [ 446.0, 129.0, 87.0, 18.0 ], "id" : "obj-7", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 11.595187, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "loadbang", "patching_rect" : [ 371.0, 105.0, 60.0, 20.0 ], "id" : "obj-5", "fontname" : "Arial", "outlettype" : [ "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "0", "patching_rect" : [ 319.0, 162.0, 32.5, 18.0 ], "id" : "obj-3", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "vexpr $f1*255", "patching_rect" : [ 60.0, 186.0, 85.0, 20.0 ], "id" : "obj-4", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend port", "patching_rect" : [ 272.0, 289.0, 67.0, 17.0 ], "id" : "obj-13", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "umenu", "patching_rect" : [ 261.0, 216.0, 133.0, 17.0 ], "id" : "obj-2", "fontname" : "Arial", "outlettype" : [ "int", "", "" ], "labelclick" : 1, "fontsize" : 9.0, "items" : [ "usbserial-A600eogi", ",", "Bluetooth-PDA-Sync", ",", "Bluetooth-Modem", ",", "Bluetooth-PDA-Sync" ], "numinlets" : 1, "numoutlets" : 3, "types" : [ ] } } , { "box" : { "maxclass" : "newobj", "text" : "loadmess print", "patching_rect" : [ 446.0, 289.0, 76.0, 17.0 ], "id" : "obj-15", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "p portinfo", "patching_rect" : [ 473.0, 340.0, 54.0, 17.0 ], "id" : "obj-16", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 1, "patcher" : { "fileversion" : 1, "rect" : [ 76.0, 74.0, 600.0, 426.0 ], "bglocked" : 0, "defrect" : [ 76.0, 74.0, 600.0, 426.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" : "outlet", "patching_rect" : [ 31.0, 253.0, 20.0, 20.0 ], "id" : "obj-1", "numinlets" : 1, "numoutlets" : 0, "comment" : "" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 31.0, 39.0, 20.0, 20.0 ], "id" : "obj-2", "outlettype" : [ "" ], "numinlets" : 0, "numoutlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 7", "patching_rect" : [ 311.0, 203.0, 127.0, 20.0 ], "id" : "obj-3", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 6", "patching_rect" : [ 271.0, 177.0, 127.0, 20.0 ], "id" : "obj-4", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 5", "patching_rect" : [ 231.0, 152.0, 127.0, 20.0 ], "id" : "obj-5", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 4", "patching_rect" : [ 191.0, 126.0, 127.0, 20.0 ], "id" : "obj-6", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 3", "patching_rect" : [ 150.0, 204.0, 121.0, 20.0 ], "id" : "obj-7", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 2", "patching_rect" : [ 111.0, 178.0, 121.0, 20.0 ], "id" : "obj-8", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 1", "patching_rect" : [ 71.0, 153.0, 121.0, 20.0 ], "id" : "obj-9", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend setitem 0", "patching_rect" : [ 31.0, 127.0, 121.0, 20.0 ], "id" : "obj-10", "fontname" : "Arial", "outlettype" : [ "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "unpack s s s s s s s s", "patching_rect" : [ 31.0, 96.0, 293.0, 20.0 ], "id" : "obj-11", "fontname" : "Arial", "outlettype" : [ "", "", "", "", "", "", "", "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 8 } } , { "box" : { "maxclass" : "newobj", "text" : "route port", "patching_rect" : [ 31.0, 66.0, 93.0, 20.0 ], "id" : "obj-12", "fontname" : "Arial", "outlettype" : [ "", "" ], "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "comment", "text" : "Manages serial name data. Each port name (up to 8, in this case) replaces an item in the drop-down menu of the parent patch (items in drop-down are numbered 0 - 7).", "linecount" : 5, "patching_rect" : [ 174.0, 242.0, 240.0, 75.0 ], "id" : "obj-13", "fontname" : "Arial", "textcolor" : [ 0.8, 0.611765, 0.380392, 1.0 ], "fontsize" : 12.0, "frgb" : [ 0.8, 0.611765, 0.380392, 1.0 ], "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "This code yoinked from Arduino2Max, found at http://www.arduino.cc/playground/Interfacing/MaxMSP", "patching_rect" : [ 72.0, 30.0, 491.0, 17.0 ], "id" : "obj-14", "fontname" : "Arial", "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 70.0, 27.0, 497.0, 19.0 ], "id" : "obj-15", "rounded" : 0, "bgcolor" : [ 1.0, 0.419608, 0.490196, 1.0 ], "numinlets" : 1, "border" : 1, "bordercolor" : [ 1.0, 0.419608, 0.490196, 1.0 ], "numoutlets" : 0 } } ], "lines" : [ { "patchline" : { "source" : [ "obj-11", 7 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 6 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 5 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 4 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 3 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 2 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 1 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "color" : [ 0.8, 0.611765, 0.380392, 1.0 ], "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial" } } } , { "box" : { "maxclass" : "newobj", "text" : "prepend 1 0 4 0 99", "patching_rect" : [ 345.0, 288.0, 96.0, 17.0 ], "id" : "obj-17", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "serial b 19200", "patching_rect" : [ 345.0, 313.0, 77.0, 17.0 ], "id" : "obj-19", "fontname" : "Arial", "outlettype" : [ "int", "" ], "fontsize" : 9.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "comment", "text" : "<-- Select the serial port that your arduino is connected to here.", "linecount" : 3, "patching_rect" : [ 400.0, 215.0, 118.0, 38.0 ], "id" : "obj-29", "fontname" : "Arial", "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "Now watch in amazement as you move the color selectors around and your BlinkM changes! Wow!", "linecount" : 2, "patching_rect" : [ 252.0, 257.0, 267.0, 27.0 ], "id" : "obj-32", "fontname" : "Arial", "fontsize" : 9.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 255.0, 210.0, 264.0, 45.0 ], "id" : "obj-33", "rounded" : 0, "bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "numinlets" : 1, "border" : 2, "bordercolor" : [ 1.0, 0.815686, 0.615686, 1.0 ], "numoutlets" : 0 } } , { "box" : { "maxclass" : "newobj", "text" : "loadmess 3", "patching_rect" : [ 223.0, 95.0, 72.0, 20.0 ], "id" : "obj-28", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "hidden" : 1, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "responsiveness", "patching_rect" : [ 139.0, 121.0, 94.0, 20.0 ], "id" : "obj-27", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "number", "patching_rect" : [ 89.0, 121.0, 50.0, 20.0 ], "id" : "obj-40", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "minimum" : 1, "numinlets" : 1, "maximum" : 20, "numoutlets" : 2 } } , { "box" : { "maxclass" : "multislider", "patching_rect" : [ 59.0, 250.0, 128.0, 154.0 ], "id" : "obj-26", "outlettype" : [ "", "" ], "candicane3" : [ 0.0, 0.0, 1.0, 1.0 ], "size" : 3, "spacing" : 1, "candicane2" : [ 0.0, 1.0, 0.0, 1.0 ], "slidercolor" : [ 1.0, 0.0, 0.0, 1.0 ], "setminmax" : [ 0.0, 1.0 ], "numinlets" : 1, "setstyle" : 1, "numoutlets" : 2, "candycane" : 3 } } , { "box" : { "maxclass" : "comment", "text" : "reset", "patching_rect" : [ 155.0, 153.0, 37.0, 20.0 ], "id" : "obj-18", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "button", "patching_rect" : [ 137.0, 153.0, 20.0, 20.0 ], "id" : "obj-14", "outlettype" : [ "bang" ], "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "swatch", "patching_rect" : [ 440.0, 169.0, 128.0, 32.0 ], "id" : "obj-12", "outlettype" : [ "", "float" ], "compatibility" : 1, "numinlets" : 3, "numoutlets" : 2 } } , { "box" : { "maxclass" : "ezadc~", "patching_rect" : [ 60.0, 17.0, 45.0, 45.0 ], "id" : "obj-11", "outlettype" : [ "signal", "signal" ], "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "p peaks2rgb", "patching_rect" : [ 60.0, 153.0, 77.0, 20.0 ], "id" : "obj-10", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 3, "numoutlets" : 1, "patcher" : { "fileversion" : 1, "rect" : [ 299.0, 107.0, 741.0, 451.0 ], "bglocked" : 0, "defrect" : [ 299.0, 107.0, 741.0, 451.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, 10.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "number", "patching_rect" : [ 490.0, 333.0, 50.0, 20.0 ], "id" : "obj-18", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "number", "patching_rect" : [ 350.0, 336.0, 50.0, 20.0 ], "id" : "obj-15", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "number", "patching_rect" : [ 226.0, 335.0, 50.0, 20.0 ], "id" : "obj-14", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "comment", "text" : "control responsiveness", "patching_rect" : [ 6.0, 340.0, 133.0, 20.0 ], "id" : "obj-84", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "convert to perceptually equal steps", "linecount" : 2, "patching_rect" : [ 16.0, 197.0, 133.0, 34.0 ], "id" : "obj-83", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "wheigh w. amplitude", "patching_rect" : [ 27.0, 106.0, 119.0, 20.0 ], "id" : "obj-82", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "newobj", "text" : "* 1.", "patching_rect" : [ 414.0, 107.0, 46.5, 20.0 ], "id" : "obj-81", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "* 1.", "patching_rect" : [ 278.0, 107.0, 46.5, 20.0 ], "id" : "obj-80", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "* 1.", "patching_rect" : [ 142.0, 107.0, 46.5, 20.0 ], "id" : "obj-75", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 578.0, 58.0, 25.0, 25.0 ], "id" : "obj-74", "outlettype" : [ "int" ], "numinlets" : 0, "numoutlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "comment", "text" : "get three spectral peaks (rgb)", "linecount" : 2, "patching_rect" : [ 38.0, 63.0, 105.0, 34.0 ], "id" : "obj-73", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "automatically locate full input range", "linecount" : 3, "patching_rect" : [ 70.0, 252.0, 82.0, 48.0 ], "id" : "obj-71", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "comment", "text" : "avoid random peaks", "patching_rect" : [ 30.0, 152.0, 119.0, 20.0 ], "id" : "obj-70", "fontname" : "Arial", "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 0 } } , { "box" : { "maxclass" : "newobj", "text" : "trough 0.", "patching_rect" : [ 429.0, 234.0, 58.0, 20.0 ], "id" : "obj-65", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "trough 0.", "patching_rect" : [ 293.0, 234.0, 58.0, 20.0 ], "id" : "obj-66", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "trough 0.", "patching_rect" : [ 157.0, 234.0, 58.0, 20.0 ], "id" : "obj-67", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "number", "patching_rect" : [ 590.0, 140.0, 50.0, 20.0 ], "id" : "obj-40", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "slide 5 5", "patching_rect" : [ 142.0, 341.0, 55.0, 20.0 ], "id" : "obj-39", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 3, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "slide 5 5", "patching_rect" : [ 278.0, 341.0, 55.0, 20.0 ], "id" : "obj-38", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 3, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "slide 5 5", "patching_rect" : [ 414.0, 341.0, 55.0, 20.0 ], "id" : "obj-37", "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 12.0, "numinlets" : 3, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "zl median", "patching_rect" : [ 142.0, 171.0, 62.0, 20.0 ], "id" : "obj-32", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl median", "patching_rect" : [ 278.0, 171.0, 62.0, 20.0 ], "id" : "obj-33", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl median", "patching_rect" : [ 414.0, 169.0, 62.0, 20.0 ], "id" : "obj-34", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "number", "patching_rect" : [ 523.0, 121.0, 50.0, 20.0 ], "id" : "obj-31", "fontname" : "Arial", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl stream 15", "patching_rect" : [ 142.0, 140.0, 76.0, 20.0 ], "id" : "obj-29", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl stream 15", "patching_rect" : [ 278.0, 140.0, 76.0, 20.0 ], "id" : "obj-28", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl stream 15", "patching_rect" : [ 414.0, 140.0, 76.0, 20.0 ], "id" : "obj-27", "fontname" : "Arial", "outlettype" : [ "", "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "ftom", "patching_rect" : [ 414.0, 204.0, 34.0, 20.0 ], "id" : "obj-26", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "ftom", "patching_rect" : [ 278.0, 204.0, 34.0, 20.0 ], "id" : "obj-25", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "ftom", "patching_rect" : [ 142.0, 204.0, 34.0, 20.0 ], "id" : "obj-24", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 1 } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 674.0, 58.0, 25.0, 25.0 ], "id" : "obj-17", "outlettype" : [ "bang" ], "numinlets" : 0, "numoutlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "message", "text" : "0.", "patching_rect" : [ 674.0, 171.0, 32.5, 18.0 ], "id" : "obj-16", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "pack 0. 0. 0.", "patching_rect" : [ 142.0, 369.0, 291.0, 20.0 ], "id" : "obj-13", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 3, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0. 0. 0. 0.", "patching_rect" : [ 414.0, 73.0, 103.0, 20.0 ], "id" : "obj-10", "fontname" : "Arial", "outlettype" : [ "float", "float", "float", "float" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 4 } } , { "box" : { "maxclass" : "newobj", "text" : "peak 0.", "patching_rect" : [ 443.0, 272.0, 50.0, 20.0 ], "id" : "obj-11", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "scale 0. 1. 0. 1.", "patching_rect" : [ 414.0, 309.0, 92.0, 20.0 ], "id" : "obj-12", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0. 0. 0. 0.", "patching_rect" : [ 278.0, 73.0, 103.0, 20.0 ], "id" : "obj-1", "fontname" : "Arial", "outlettype" : [ "float", "float", "float", "float" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 4 } } , { "box" : { "maxclass" : "newobj", "text" : "peak 0.", "patching_rect" : [ 307.0, 272.0, 50.0, 20.0 ], "id" : "obj-6", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "scale 0. 1. 0. 1.", "patching_rect" : [ 278.0, 309.0, 92.0, 20.0 ], "id" : "obj-7", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0. 0. 0. 0.", "patching_rect" : [ 142.0, 73.0, 103.0, 20.0 ], "id" : "obj-5", "fontname" : "Arial", "outlettype" : [ "float", "float", "float", "float" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 4 } } , { "box" : { "maxclass" : "newobj", "text" : "peak 0.", "patching_rect" : [ 171.0, 272.0, 50.0, 20.0 ], "id" : "obj-4", "fontname" : "Arial", "outlettype" : [ "float", "int", "int" ], "fontsize" : 12.0, "numinlets" : 2, "numoutlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "scale 0. 1. 0. 1.", "patching_rect" : [ 142.0, 309.0, 92.0, 20.0 ], "id" : "obj-3", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6, "numoutlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "route 0 1 2", "patching_rect" : [ 142.0, 46.0, 427.0, 20.0 ], "id" : "obj-2", "fontname" : "Arial", "outlettype" : [ "", "", "", "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 4 } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 142.0, 8.0, 25.0, 25.0 ], "id" : "obj-8", "outlettype" : [ "list" ], "numinlets" : 0, "numoutlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "outlet", "patching_rect" : [ 142.0, 403.0, 25.0, 25.0 ], "id" : "obj-9", "numinlets" : 1, "numoutlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-10", 1 ], "destination" : [ "obj-81", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-81", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-81", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 1 ], "destination" : [ "obj-80", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-80", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-80", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-75", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-75", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-75", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-74", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-27", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-28", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-29", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-32", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-65", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-66", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-67", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-65", 0 ], "destination" : [ "obj-12", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-65", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-66", 0 ], "destination" : [ "obj-7", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-66", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-67", 0 ], "destination" : [ "obj-3", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-67", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-39", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-39", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-38", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-38", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-37", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-37", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-39", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-39", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-38", 0 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-38", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-37", 0 ], "destination" : [ "obj-13", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-37", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 2 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-12", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-3", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-4", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-6", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-11", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-39", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-39", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-38", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-38", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-37", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-37", 2 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "fontname" : "Arial", "default_fontsize" : 12.0, "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial" } } } , { "box" : { "maxclass" : "newobj", "text" : "sigmund~ @npeak 3 peaks", "patching_rect" : [ 60.0, 81.0, 156.0, 20.0 ], "id" : "obj-1", "fontname" : "Arial", "outlettype" : [ "list", "" ], "fontsize" : 12.0, "numinlets" : 1, "numoutlets" : 2 } } ], "lines" : [ { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 1, "midpoints" : [ 482.5, 363.0, 252.0, 363.0, 252.0, 211.0, 270.5, 211.0 ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-13", 0 ], "hidden" : 1, "midpoints" : [ 327.5, 248.0, 281.5, 248.0 ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 1, "midpoints" : [ 281.5, 309.0, 354.5, 309.0 ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 1, "midpoints" : [ 455.5, 309.0, 354.5, 309.0 ] } } , { "patchline" : { "source" : [ "obj-19", 1 ], "destination" : [ "obj-16", 0 ], "hidden" : 1, "midpoints" : [ 412.5, 335.0, 482.5, 335.0 ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-10", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ 449.5, 248.0, 354.5, 248.0 ] } } ] } }