{ "patcher": { "fileversion": 1, "appversion": { "major": 9, "minor": 1, "revision": 5, "architecture": "x64", "modernui": 1 }, "classnamespace": "box", "rect": [ 1633.0, 296.0, 951.0, 502.0 ], "boxes": [ { "box": { "fontsize": 18.0, "id": "obj-13", "linecount": 3, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 1076.9231796264648, 509.4999830722809, 275.0, 69.0 ], "text": "I want the LCD object to be the exact size as the red square\n190x45 pixels", "textcolor": [ 0.8862745098039215, 1.0, 0.0, 1.0 ] } }, { "box": { "id": "obj-11", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 984.615478515625, 699.5454359054565, 67.69231414794922, 20.0 ], "text": "45 pixels" } }, { "box": { "id": "obj-9", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 792.307767868042, 732.0, 67.69231414794922, 20.0 ], "text": "190 pixels" } }, { "box": { "bordercolor": [ 1.0, 0.0, 0.0, 1.0 ], "id": "obj-64", "maxclass": "dropfile", "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "" ], "patching_rect": [ 776.9231510162354, 684.6154499053955, 190.0, 45.0 ], "presentation": 1, "presentation_rect": [ 1334.168784, 256.692329, 190.0, 45.0 ], "types": "fold" } }, { "box": { "id": "obj-5", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 541.4545676708221, 34.307695388793945, 36.92308044433594, 20.0 ], "text": "Loop" } }, { "box": { "id": "obj-4", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 414.8566381931305, 26.115386962890625, 36.92308044433594, 20.0 ], "text": "Play" } }, { "box": { "id": "obj-6", "maxclass": "toggle", "numinlets": 1, "numoutlets": 1, "outlettype": [ "int" ], "parameter_enable": 0, "patching_rect": [ 491.9999969005585, 32.307695388793945, 24.0, 24.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 13.0, "id": "obj-2", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 491.9999969005585, 61.53846740722656, 54.0, 23.0 ], "text": "loop $1" } }, { "box": { "id": "obj-8", "maxclass": "toggle", "numinlets": 1, "numoutlets": 1, "outlettype": [ "int" ], "parameter_enable": 0, "patching_rect": [ 375.81817841529846, 24.115386962890625, 24.0, 24.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 13.0, "id": "obj-41", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 320.8181791305542, 24.615386962890625, 40.0, 23.0 ], "text": "open" } }, { "box": { "id": "obj-1", "maxclass": "newobj", "numinlets": 2, "numoutlets": 2, "outlettype": [ "signal", "bang" ], "patching_rect": [ 371.81817841529846, 70.76923751831055, 47.0, 22.0 ], "text": "sfplay~" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-345", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 838.4545676708221, 352.0, 168.0, 20.0 ], "text": "R G B A" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-346", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 978.4545676708221, 370.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-347", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 930.4545676708221, 369.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-348", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 882.4545676708221, 368.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-349", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 833.4545676708221, 367.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-328", "maxclass": "newobj", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 524.4545676708221, 352.0, 85.0, 22.0 ], "text": "s wavecolour3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-329", "maxclass": "newobj", "numinlets": 1, "numoutlets": 4, "outlettype": [ "int", "int", "int", "int" ], "patching_rect": [ 524.4545676708221, 246.0, 163.0, 22.0 ], "text": "unpack i i i i" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-330", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 549.4545676708221, 261.0, 138.0, 20.0 ], "text": "Colour of the waveform:" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-333", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 541.4545676708221, 275.0, 168.0, 20.0 ], "text": "R G B A" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-338", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 667.4545676708221, 295.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-340", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 620.4545676708221, 295.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-341", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 571.4545676708221, 295.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-342", "maxclass": "newobj", "numinlets": 4, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 524.4545676708221, 329.0, 163.0, 22.0 ], "text": "pak 0 0 0 255" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-343", "maxclass": "number", "maximum": 255, "minimum": 0, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 520.4545676708221, 295.0, 48.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-327", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 524.4545676708221, 197.0, 147.0, 22.0 ], "text": "loadmess 255 255 255 85" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-294", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 834.4545676708221, 291.0, 113.0, 22.0 ], "text": "loadmess 0 0 0 255" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-297", "maxclass": "newobj", "numinlets": 1, "numoutlets": 4, "outlettype": [ "int", "int", "int", "int" ], "patching_rect": [ 834.4545676708221, 329.0, 163.0, 22.0 ], "text": "unpack i i i i" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-304", "maxclass": "newobj", "numinlets": 4, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 834.4545676708221, 407.0, 163.0, 22.0 ], "text": "pak 0 0 0 255" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-317", "maxclass": "newobj", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 834.4545676708221, 457.0, 88.0, 22.0 ], "text": "s lcdDrawLeft3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-324", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 834.4545676708221, 433.0, 102.0, 22.0 ], "text": "brgb $1 $2 $3 $4" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "hidden": 1, "id": "obj-325", "maxclass": "newobj", "numinlets": 0, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 534.4545676708221, 433.0, 86.0, 22.0 ], "text": "r lcdDrawLeft3" } }, { "box": { "bgtransparent": 1, "border": 0, "id": "obj-326", "maxclass": "lcd", "numinlets": 1, "numoutlets": 4, "outlettype": [ "list", "list", "int", "" ], "patching_rect": [ 534.4545676708221, 482.0, 522.0, 163.0 ], "presentation": 1, "presentation_rect": [ 771.0, 262.0, 531.0, 156.0 ] } }, { "box": { "id": "obj-293", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 42.90909004211426, 0.0, 150.0, 20.0 ], "text": "Receive from player 3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-55", "linecount": 2, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 43.18181777000427, 179.09089541435242, 273.0, 34.0 ], "text": "A peak amplitude analysis is done on the positive AND the negative values in a given time period" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-56", "linecount": 5, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 324.9999969005585, 699.5454359054565, 358.0, 75.0 ], "text": "Order or drawing is (right to left out of the trigger object):\n1. set colour\n2. if amp is 0, then draw a single pixel (at height 80)\n3. draw line segments denoting positive and negative amplitudes\n4. scroll the LCD 1 pixel to the left " } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-57", "linecount": 3, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 249.9999976158142, 519.9999830722809, 210.0, 48.0 ], "text": "80 is 'math floor' half of the height of the LCD (0 to 160 = 161) that we are drawing to." } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-58", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 281.8181791305542, 642.7272546291351, 79.0, 20.0 ], "text": "< if amp. is 0" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-59", "maxclass": "newobj", "numinlets": 0, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 356.81817841529846, 588.1818006038666, 83.0, 22.0 ], "text": "r wavecolour3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-60", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "" ], "patcher": { "fileversion": 1, "appversion": { "major": 9, "minor": 1, "revision": 5, "architecture": "x64", "modernui": 1 }, "classnamespace": "box", "rect": [ 1419.0, 300.0, 640.0, 480.0 ], "boxes": [ { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-3", "linecount": 2, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 240.0, 130.0, 190.0, 34.0 ], "text": "send outs list of peak amps every 40ms/25fps when the dac is on" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-1", "maxclass": "newobj", "numinlets": 1, "numoutlets": 2, "outlettype": [ "int", "int" ], "patching_rect": [ 107.0, 182.0, 54.0, 22.0 ], "text": "unpack" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-34", "maxclass": "newobj", "numinlets": 1, "numoutlets": 4, "outlettype": [ "int", "float", "int", "int" ], "patching_rect": [ 178.5, 67.0, 63.0, 22.0 ], "text": "dspstate~" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-29", "maxclass": "newobj", "numinlets": 1, "numoutlets": 3, "outlettype": [ "int", "clear", "dump" ], "patching_rect": [ 178.5, 182.0, 87.0, 22.0 ], "text": "t 0 clear dump" } }, { "box": { "id": "obj-26", "maxclass": "toggle", "numinlets": 1, "numoutlets": 1, "outlettype": [ "int" ], "parameter_enable": 0, "patching_rect": [ 178.5, 100.0, 20.0, 20.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-24", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "bang" ], "patching_rect": [ 178.5, 136.0, 58.0, 22.0 ], "text": "metro 40" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-23", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "inc" ], "patching_rect": [ 71.5, 182.0, 33.0, 22.0 ], "text": "t inc" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-20", "maxclass": "newobj", "numinlets": 5, "numoutlets": 4, "outlettype": [ "int", "", "", "int" ], "patching_rect": [ 71.5, 235.0, 100.0, 22.0 ], "text": "counter" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-11", "maxclass": "newobj", "numinlets": 3, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 71.5, 278.0, 89.0, 22.0 ], "text": "pack i i i" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-8", "maxclass": "newobj", "numinlets": 1, "numoutlets": 4, "outlettype": [ "", "", "", "" ], "patching_rect": [ 71.5, 325.0, 59.5, 22.0 ], "saved_object_attributes": { "embed": 0, "precision": 6 }, "text": "coll" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-7", "maxclass": "newobj", "numinlets": 1, "numoutlets": 2, "outlettype": [ "bang", "" ], "patching_rect": [ 71.5, 136.0, 54.5, 22.0 ], "text": "t b l" } }, { "box": { "comment": "", "id": "obj-35", "index": 1, "maxclass": "inlet", "numinlets": 0, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 71.5, 40.0, 25.0, 25.0 ] } }, { "box": { "comment": "", "id": "obj-36", "index": 1, "maxclass": "outlet", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 71.5, 405.0, 25.0, 25.0 ] } } ], "lines": [ { "patchline": { "destination": [ "obj-11", 2 ], "midpoints": [ 151.5, 216.0, 57.0, 216.0, 57.0, 264.0, 151.0, 264.0 ], "source": [ "obj-1", 1 ] } }, { "patchline": { "destination": [ "obj-11", 1 ], "midpoints": [ 116.5, 216.0, 57.0, 216.0, 57.0, 264.0, 116.0, 264.0 ], "source": [ "obj-1", 0 ] } }, { "patchline": { "destination": [ "obj-8", 0 ], "source": [ "obj-11", 0 ] } }, { "patchline": { "destination": [ "obj-11", 0 ], "source": [ "obj-20", 0 ] } }, { "patchline": { "destination": [ "obj-20", 0 ], "source": [ "obj-23", 0 ] } }, { "patchline": { "destination": [ "obj-29", 0 ], "source": [ "obj-24", 0 ] } }, { "patchline": { "destination": [ "obj-24", 0 ], "source": [ "obj-26", 0 ] } }, { "patchline": { "destination": [ "obj-20", 2 ], "midpoints": [ 188.0, 224.0, 121.5, 224.0 ], "source": [ "obj-29", 0 ] } }, { "patchline": { "destination": [ "obj-8", 0 ], "midpoints": [ 256.0, 312.0, 81.0, 312.0 ], "source": [ "obj-29", 2 ] } }, { "patchline": { "destination": [ "obj-8", 0 ], "midpoints": [ 222.0, 312.0, 81.0, 312.0 ], "source": [ "obj-29", 1 ] } }, { "patchline": { "destination": [ "obj-26", 0 ], "source": [ "obj-34", 0 ] } }, { "patchline": { "destination": [ "obj-7", 0 ], "source": [ "obj-35", 0 ] } }, { "patchline": { "destination": [ "obj-1", 0 ], "source": [ "obj-7", 1 ] } }, { "patchline": { "destination": [ "obj-23", 0 ], "source": [ "obj-7", 0 ] } }, { "patchline": { "destination": [ "obj-36", 0 ], "source": [ "obj-8", 0 ] } } ] }, "patching_rect": [ 131.81818056106567, 533.636346578598, 83.0, 22.0 ], "text": "p peakpacker" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-61", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 159.09090757369995, 642.7272546291351, 123.0, 22.0 ], "text": "if $i1==$i2 then bang" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-65", "maxclass": "newobj", "numinlets": 2, "numoutlets": 2, "outlettype": [ "", "" ], "patching_rect": [ 356.81817841529846, 642.7272546291351, 62.0, 22.0 ], "text": "route frgb" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-66", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 159.09090757369995, 667.7272543907166, 218.0, 22.0 ], "text": "255 255 255 85" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-67", "linecount": 5, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 222.72727060317993, 419.9999840259552, 109.0, 75.0 ], "text": "Positive amplitude gets subtracted from half of the height of the LCD display" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-69", "linecount": 5, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 0.0, 419.9999840259552, 109.0, 75.0 ], "text": "Negative amplitude gets added to half of the height of the LCD display" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-70", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 159.09090757369995, 692.727254152298, 158.0, 22.0 ], "text": "setpixel 479 80 $1 $2 $3 $4" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-75", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 356.81817841529846, 617.7272548675537, 99.0, 22.0 ], "text": "frgb $1 $2 $3 $4" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-79", "maxclass": "newobj", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 131.81818056106567, 783.6363441944122, 88.0, 22.0 ], "text": "s lcdDrawLeft3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-87", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "int" ], "patching_rect": [ 90.90909004211426, 444.9999837875366, 34.0, 22.0 ], "text": "+ 80" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-86", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "int" ], "patching_rect": [ 181.81818008422852, 444.9999837875366, 35.0, 22.0 ], "text": "!- 80" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-80", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 131.81818056106567, 747.2727081775665, 149.0, 22.0 ], "text": "scrollrect 0 0 480 161 -1 0" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-81", "maxclass": "newobj", "numinlets": 1, "numoutlets": 4, "outlettype": [ "bang", "", "", "bang" ], "patching_rect": [ 131.81818056106567, 590.4545278549194, 59.5, 22.0 ], "text": "t b l l b" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-82", "maxclass": "message", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 145.4545440673828, 717.7272539138794, 156.0, 22.0 ], "text": "linesegment 479 $1 479 $2" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-89", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 131.81818056106567, 499.5454378128052, 36.0, 22.0 ], "text": "pack" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-92", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 90.90909004211426, 417.72725677490234, 41.0, 22.0 ], "text": "round" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-93", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "float" ], "patching_rect": [ 90.90909004211426, 390.45452976226807, 35.0, 22.0 ], "text": "* 80." } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-96", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "" ], "patching_rect": [ 181.81818008422852, 417.72725677490234, 41.0, 22.0 ], "text": "round" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-98", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "float" ], "patching_rect": [ 181.81818008422852, 390.45452976226807, 35.0, 22.0 ], "text": "* 80." } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-102", "linecount": 4, "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 297.7272698879242, 333.63634848594666, 142.0, 62.0 ], "text": "Analysis time:\nOutput peak amplitudes for every n milliseconds. 10 is a good value" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-106", "maxclass": "number", "minimum": 2, "numinlets": 1, "numoutlets": 2, "outlettype": [ "", "bang" ], "parameter_enable": 0, "patching_rect": [ 245.4545431137085, 333.63634848594666, 50.0, 22.0 ] } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-107", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "float" ], "patching_rect": [ 181.81818008422852, 363.1818027496338, 84.0, 22.0 ], "text": "peakamp~ 10" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-120", "maxclass": "comment", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 177.2727255821228, 335.9090757369995, 34.0, 34.0 ], "text": "+ve\n" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-125", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "signal" ], "patching_rect": [ 90.90909004211426, 229.09089493751526, 136.0, 22.0 ], "text": "receive~ posnegdistrib3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-130", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "signal" ], "patching_rect": [ 90.90909004211426, 290.4545307159424, 35.0, 22.0 ], "text": "+~ 1" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-135", "maxclass": "newobj", "numinlets": 2, "numoutlets": 2, "outlettype": [ "signal", "signal" ], "patching_rect": [ 90.90909004211426, 319.9999849796295, 108.0, 22.0 ], "text": "gate~ 2" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-140", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "signal" ], "patching_rect": [ 90.90909004211426, 265.45453095436096, 45.0, 22.0 ], "text": ">=~ 0." } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-145", "maxclass": "newobj", "numinlets": 2, "numoutlets": 1, "outlettype": [ "float" ], "patching_rect": [ 90.90909004211426, 363.1818027496338, 84.0, 22.0 ], "text": "peakamp~ 10" } }, { "box": { "id": "obj-53", "maxclass": "newobj", "numinlets": 1, "numoutlets": 1, "outlettype": [ "signal" ], "patching_rect": [ 371.81817841529846, 107.69231796264648, 61.0, 22.0 ], "text": "r~ sfplay3" } }, { "box": { "fontname": "Arial", "fontsize": 12.0, "id": "obj-10", "maxclass": "newobj", "numinlets": 1, "numoutlets": 0, "patching_rect": [ 371.81817841529846, 141.5384750366211, 123.0, 22.0 ], "text": "send~ posnegdistrib3" } } ], "lines": [ { "patchline": { "destination": [ "obj-53", 0 ], "source": [ "obj-1", 0 ] } }, { "patchline": { "destination": [ "obj-107", 1 ], "order": 0, "source": [ "obj-106", 0 ] } }, { "patchline": { "destination": [ "obj-145", 1 ], "order": 1, "source": [ "obj-106", 0 ] } }, { "patchline": { "destination": [ "obj-98", 0 ], "source": [ "obj-107", 0 ] } }, { "patchline": { "destination": [ "obj-135", 1 ], "midpoints": [ 100.40909004211426, 256.3636224269867, 189.40909004211426, 256.3636224269867 ], "order": 0, "source": [ "obj-125", 0 ] } }, { "patchline": { "destination": [ "obj-140", 0 ], "order": 1, "source": [ "obj-125", 0 ] } }, { "patchline": { "destination": [ "obj-135", 0 ], "source": [ "obj-130", 0 ] } }, { "patchline": { "destination": [ "obj-107", 0 ], "hidden": 1, "source": [ "obj-135", 1 ] } }, { "patchline": { "destination": [ "obj-145", 0 ], "hidden": 1, "source": [ "obj-135", 0 ] } }, { "patchline": { "destination": [ "obj-130", 0 ], "source": [ "obj-140", 0 ] } }, { "patchline": { "destination": [ "obj-93", 0 ], "source": [ "obj-145", 0 ] } }, { "patchline": { "destination": [ "obj-1", 0 ], "source": [ "obj-2", 0 ] } }, { "patchline": { "destination": [ "obj-297", 0 ], "hidden": 1, "source": [ "obj-294", 0 ] } }, { "patchline": { "destination": [ "obj-346", 0 ], "source": [ "obj-297", 3 ] } }, { "patchline": { "destination": [ "obj-347", 0 ], "source": [ "obj-297", 2 ] } }, { "patchline": { "destination": [ "obj-348", 0 ], "source": [ "obj-297", 1 ] } }, { "patchline": { "destination": [ "obj-349", 0 ], "source": [ "obj-297", 0 ] } }, { "patchline": { "destination": [ "obj-324", 0 ], "hidden": 1, "source": [ "obj-304", 0 ] } }, { "patchline": { "destination": [ "obj-317", 0 ], "hidden": 1, "source": [ "obj-324", 0 ] } }, { "patchline": { "destination": [ "obj-326", 0 ], "hidden": 1, "source": [ "obj-325", 0 ] } }, { "patchline": { "destination": [ "obj-329", 0 ], "source": [ "obj-327", 0 ] } }, { "patchline": { "destination": [ "obj-338", 0 ], "hidden": 1, "source": [ "obj-329", 3 ] } }, { "patchline": { "destination": [ "obj-340", 0 ], "hidden": 1, "source": [ "obj-329", 2 ] } }, { "patchline": { "destination": [ "obj-341", 0 ], "hidden": 1, "source": [ "obj-329", 1 ] } }, { "patchline": { "destination": [ "obj-343", 0 ], "hidden": 1, "source": [ "obj-329", 0 ] } }, { "patchline": { "destination": [ "obj-342", 3 ], "hidden": 1, "source": [ "obj-338", 0 ] } }, { "patchline": { "destination": [ "obj-342", 2 ], "hidden": 1, "source": [ "obj-340", 0 ] } }, { "patchline": { "destination": [ "obj-342", 1 ], "hidden": 1, "source": [ "obj-341", 0 ] } }, { "patchline": { "destination": [ "obj-328", 0 ], "hidden": 1, "source": [ "obj-342", 0 ] } }, { "patchline": { "destination": [ "obj-342", 0 ], "hidden": 1, "source": [ "obj-343", 0 ] } }, { "patchline": { "destination": [ "obj-304", 3 ], "midpoints": [ 987.9545676708221, 404.3339137377916 ], "source": [ "obj-346", 0 ] } }, { "patchline": { "destination": [ "obj-304", 2 ], "source": [ "obj-347", 0 ] } }, { "patchline": { "destination": [ "obj-304", 1 ], "source": [ "obj-348", 0 ] } }, { "patchline": { "destination": [ "obj-304", 0 ], "source": [ "obj-349", 0 ] } }, { "patchline": { "destination": [ "obj-1", 0 ], "source": [ "obj-41", 0 ] } }, { "patchline": { "destination": [ "obj-10", 0 ], "source": [ "obj-53", 0 ] } }, { "patchline": { "destination": [ "obj-75", 0 ], "source": [ "obj-59", 0 ] } }, { "patchline": { "destination": [ "obj-2", 0 ], "source": [ "obj-6", 0 ] } }, { "patchline": { "destination": [ "obj-81", 0 ], "source": [ "obj-60", 0 ] } }, { "patchline": { "destination": [ "obj-66", 0 ], "source": [ "obj-61", 0 ] } }, { "patchline": { "destination": [ "obj-66", 1 ], "source": [ "obj-65", 0 ] } }, { "patchline": { "destination": [ "obj-70", 0 ], "source": [ "obj-66", 0 ] } }, { "patchline": { "destination": [ "obj-79", 0 ], "midpoints": [ 168.59090757369995, 711.3636224269867, 115.78328156471252, 711.3636224269867, 115.78328156471252, 780.3636224269867, 141.31818056106567, 780.3636224269867 ], "source": [ "obj-70", 0 ] } }, { "patchline": { "destination": [ "obj-65", 0 ], "order": 0, "source": [ "obj-75", 0 ] } }, { "patchline": { "destination": [ "obj-79", 0 ], "midpoints": [ 366.31817841529846, 637.3636224269867, 115.78328156471252, 637.3636224269867, 115.78328156471252, 780.3636224269867, 141.31818056106567, 780.3636224269867 ], "order": 1, "source": [ "obj-75", 0 ] } }, { "patchline": { "destination": [ "obj-1", 0 ], "source": [ "obj-8", 0 ] } }, { "patchline": { "destination": [ "obj-79", 0 ], "source": [ "obj-80", 0 ] } }, { "patchline": { "destination": [ "obj-61", 0 ], "source": [ "obj-81", 2 ] } }, { "patchline": { "destination": [ "obj-75", 0 ], "midpoints": [ 181.81818056106567, 612.3636224269867, 366.31817841529846, 612.3636224269867 ], "source": [ "obj-81", 3 ] } }, { "patchline": { "destination": [ "obj-80", 0 ], "source": [ "obj-81", 0 ] } }, { "patchline": { "destination": [ "obj-82", 0 ], "source": [ "obj-81", 1 ] } }, { "patchline": { "destination": [ "obj-79", 0 ], "midpoints": [ 154.9545440673828, 740.3636224269867, 115.78328156471252, 740.3636224269867, 115.78328156471252, 780.3636224269867, 141.31818056106567, 780.3636224269867 ], "source": [ "obj-82", 0 ] } }, { "patchline": { "destination": [ "obj-89", 0 ], "source": [ "obj-86", 0 ] } }, { "patchline": { "destination": [ "obj-89", 1 ], "source": [ "obj-87", 0 ] } }, { "patchline": { "destination": [ "obj-60", 0 ], "source": [ "obj-89", 0 ] } }, { "patchline": { "destination": [ "obj-87", 0 ], "source": [ "obj-92", 0 ] } }, { "patchline": { "destination": [ "obj-92", 0 ], "source": [ "obj-93", 0 ] } }, { "patchline": { "destination": [ "obj-86", 0 ], "source": [ "obj-96", 0 ] } }, { "patchline": { "destination": [ "obj-96", 0 ], "source": [ "obj-98", 0 ] } } ], "autosave": 0 } }