From 987292199f49094a9bc603a36413913199a30435 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Mon, 28 Aug 2023 14:06:58 +0100 Subject: [PATCH 1/3] where is my data max file --- .../where-is-my-data/whereismydata.maxpat | 2270 +++++++++++++++++ 1 file changed, 2270 insertions(+) create mode 100644 static/examples/where-is-my-data/whereismydata.maxpat diff --git a/static/examples/where-is-my-data/whereismydata.maxpat b/static/examples/where-is-my-data/whereismydata.maxpat new file mode 100644 index 00000000..917ab791 --- /dev/null +++ b/static/examples/where-is-my-data/whereismydata.maxpat @@ -0,0 +1,2270 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 5, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 45.0, 87.0, 1226.0, 724.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "fontsize" : 10.0, + "id" : "obj-88", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 463.527978420257568, 52.352762667337856, 116.0, 62.0 ], + "text" : "You should notice that the output is symettrical whenver the hopsize is an equal division of the window size", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "fontface" : 1, + "id" : "obj-87", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 423.836681544780731, 88.03666099972213, 38.0, 33.0 ], + "text" : "Hop Size" + } + + } +, { + "box" : { + "fontface" : 1, + "id" : "obj-83", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 303.570276916027069, 88.03666099972213, 58.0, 33.0 ], + "text" : "Window Size" + } + + } +, { + "box" : { + "id" : "obj-58", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 371.836681544780731, 67.293220729298127, 83.0, 22.0 ], + "text" : "loadmess 512" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 5, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 640.0, 480.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-57", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 12.0, 100.0, 36.0, 22.0 ], + "text" : "s win" + } + + } +, { + "box" : { + "id" : "obj-56", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 142.336475372314453, 99.940378395716152, 38.0, 22.0 ], + "text" : "s hop" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 50.0, 130.0, 54.0, 22.0 ], + "text" : "t b l" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 85.0, 167.042885631984973, 107.0, 22.0 ], + "text" : "fftsettings $1 $2 -1" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 100.0, 84.5, 22.0 ], + "text" : "pak i i" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-32", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 49.999986240013129, 40.000000236268818, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-35", + "index" : 2, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 115.5, 40.000000236268818, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-38", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 49.999986240013129, 201.042891236268815, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-44", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 84.999986240013129, 201.042891236268815, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-44", 0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "order" : 0, + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-57", 0 ], + "midpoints" : [ 59.499986240013129, 84.500000118134409, 21.5, 84.500000118134409 ], + "order" : 1, + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 1 ], + "order" : 1, + "source" : [ "obj-35", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-56", 0 ], + "midpoints" : [ 125.0, 84.470189315992485, 151.836475372314453, 84.470189315992485 ], + "order" : 0, + "source" : [ "obj-35", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-4", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-38", 0 ], + "source" : [ "obj-4", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 251.570276916027069, 131.940378395716152, 139.266404628753662, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p fftsettings" + } + + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "number", + "maximum" : 1024, + "minimum" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 371.836681544780731, 93.53666099972213, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "number", + "maximum" : 1024, + "minimum" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 251.570276916027069, 93.53666099972213, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 251.570276916027069, 67.352762667337856, 90.0, 22.0 ], + "text" : "loadmess 1024" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 743.545415878295898, 307.418157487445455, 69.0, 20.0 ], + "text" : "Confidence" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 743.545415878295898, 499.570317983627206, 69.0, 20.0 ], + "text" : "Confidence" + } + + } +, { + "box" : { + "id" : "obj-144", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "bang" ], + "patching_rect" : [ 80.667334318161011, 185.940378395716152, 32.0, 22.0 ], + "text" : "t b b" + } + + } +, { + "box" : { + "id" : "obj-143", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 481.667334318161011, 213.455378026432641, 54.0, 22.0 ], + "text" : "samps 1" + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-141", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.667334318161011, 424.685687303542863, 122.0, 78.0 ], + "text" : "The red line shows the pitch confidence in relation to the sine waves" + } + + } +, { + "box" : { + "id" : "obj-140", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 481.667334318161011, 240.992459146181545, 107.0, 22.0 ], + "text" : "buffer~ confidence" + } + + } +, { + "box" : { + "id" : "obj-137", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 80.667334318161011, 213.455378026432641, 396.0, 22.0 ], + "text" : "fluid.bufcompose~ @source pitch @destination confidence @startchan 1" + } + + } +, { + "box" : { + "fontsize" : 9.0, + "id" : "obj-134", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1031.045415878295898, 665.276001453399545, 124.0, 47.0 ], + "text" : "In the default patch this will look the same as default padding, it will change when you play with the hop size", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-132", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 152.282123443815522, 37.0, 22.0 ], + "text" : "r calc" + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 3, + "id" : "obj-128", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 775.674664378166199, 548.31100516270908, 77.0, 37.0 ], + "text" : "Change the frame" + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 3, + "id" : "obj-127", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 775.674664378166199, 362.934283939997272, 77.0, 37.0 ], + "text" : "Change the frame" + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 3, + "id" : "obj-126", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 775.674664378166199, 170.782123443815522, 77.0, 37.0 ], + "text" : "Change the frame" + } + + } +, { + "box" : { + "id" : "obj-124", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 533.814442960421161, 37.0, 22.0 ], + "text" : "r calc" + } + + } +, { + "box" : { + "id" : "obj-123", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 342.814442960421161, 37.0, 22.0 ], + "text" : "r calc" + } + + } +, { + "box" : { + "id" : "obj-121", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 47.66734766960144, 131.940378395716152, 39.0, 22.0 ], + "text" : "s calc" + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-116", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 199.83726179599762, 25.940378395716152, 354.690716624259949, 39.0 ], + "text" : "Play with the window and hop sizes to see how the patch reacts" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 20.0, + "id" : "obj-115", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 0.858837366104126, 3.440378395716152, 174.0, 29.0 ], + "text" : "Where is My Data" + } + + } +, { + "box" : { + "id" : "obj-109", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 47.66734766960144, 676.350648880004883, 600.0, 47.0 ], + "text" : "In the default state of the patch, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1000 samples of sine wave. This is true as long as the window size is 1000 and the hopsize is a division of 1000.", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 20.0, + "id" : "obj-102", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 904.045415878295898, 121.171287862459849, 99.0, 29.0 ], + "text" : "Formulas" + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-45", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1045.387346386909485, 583.490359981371398, 95.316138982772827, 78.0 ], + "text" : "The first frame starts at negative window size - hopsize." + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-18", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1045.387346386909485, 408.131143747435431, 95.316138982772827, 78.0 ], + "text" : "The first frame starts at negative half of the window size." + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-46", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1045.387346386909485, 215.978983251253794, 95.316138982772827, 64.0 ], + "text" : "The first frame starts at zeroth sample." + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 14.0, + "id" : "obj-48", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1062.681211709976196, 560.139967409769611, 92.0, 22.0 ], + "text" : "Full Padding" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 14.0, + "id" : "obj-49", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1021.881967544555664, 370.434283939997272, 115.0, 22.0 ], + "text" : "Default Padding" + } + + } +, { + "box" : { + "id" : "obj-50", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 964.045415878295898, 689.276001453399545, 72.0, 20.0 ], + "text" : "End sample" + } + + } +, { + "box" : { + "id" : "obj-51", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 841.162168860435486, 689.276001453399545, 76.0, 20.0 ], + "text" : "Start sample" + } + + } +, { + "box" : { + "id" : "obj-52", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 743.545415878295898, 689.276001453399545, 69.0, 20.0 ], + "text" : "Confidence" + } + + } +, { + "box" : { + "id" : "obj-53", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 964.045415878295898, 499.570317983627206, 72.0, 20.0 ], + "text" : "End sample" + } + + } +, { + "box" : { + "id" : "obj-54", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 841.162168860435486, 499.570317983627206, 76.0, 20.0 ], + "text" : "Start sample" + } + + } +, { + "box" : { + "id" : "obj-59", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 967.162168860435486, 307.418157487445455, 72.0, 20.0 ], + "text" : "End sample" + } + + } +, { + "box" : { + "id" : "obj-60", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 841.162168860435486, 307.418157487445455, 76.0, 20.0 ], + "text" : "Start sample" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 14.0, + "id" : "obj-19", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1036.381967544555664, 178.282123443815522, 86.0, 22.0 ], + "text" : "No Padding" + } + + } +, { + "box" : { + "id" : "obj-63", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1007.045415878295898, 597.83682721720777, 34.0, 22.0 ], + "text" : "r win" + } + + } +, { + "box" : { + "id" : "obj-64", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 986.045415878295898, 560.139967409769611, 34.0, 22.0 ], + "text" : "r win" + } + + } +, { + "box" : { + "id" : "obj-65", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 920.045415878295898, 560.139967409769611, 36.0, 22.0 ], + "text" : "r hop" + } + + } +, { + "box" : { + "format" : 6, + "id" : "obj-66", + "ignoreclick" : 1, + "maxclass" : "flonum", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 743.545415878295898, 665.276001453399545, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-67", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "float" ], + "patching_rect" : [ 743.545415878295898, 597.83682721720777, 103.0, 22.0 ], + "text" : "peek~ confidence" + } + + } +, { + "box" : { + "id" : "obj-68", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 972.407485246658325, 665.276001453399545, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-69", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 665.276001453399545, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-70", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "patching_rect" : [ 972.407485246658325, 634.83682721720777, 53.637930631637573, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-71", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 597.83682721720777, 151.0, 22.0 ], + "text" : "expr ($f1 * $f2) - ($f3 - $f2)" + } + + } +, { + "box" : { + "id" : "obj-72", + "maxclass" : "number", + "minimum" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 560.139967409769611, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-62", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 995.045415878295898, 408.131143747435431, 34.0, 22.0 ], + "text" : "r win" + } + + } +, { + "box" : { + "id" : "obj-61", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 975.045415878295898, 370.434283939997272, 34.0, 22.0 ], + "text" : "r win" + } + + } +, { + "box" : { + "id" : "obj-73", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 914.545415878295898, 370.434283939997272, 36.0, 22.0 ], + "text" : "r hop" + } + + } +, { + "box" : { + "id" : "obj-75", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 998.295415878295898, 215.978983251253794, 34.0, 22.0 ], + "text" : "r win" + } + + } +, { + "box" : { + "id" : "obj-76", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 915.045415878295898, 178.282123443815522, 36.0, 22.0 ], + "text" : "r hop" + } + + } +, { + "box" : { + "format" : 6, + "id" : "obj-77", + "ignoreclick" : 1, + "maxclass" : "flonum", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 743.545415878295898, 475.570317983627206, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-78", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "float" ], + "patching_rect" : [ 743.545415878295898, 408.131143747435431, 103.0, 22.0 ], + "text" : "peek~ confidence" + } + + } +, { + "box" : { + "id" : "obj-79", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 975.045415878295898, 475.570317983627206, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-80", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 475.570317983627206, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "patching_rect" : [ 975.045415878295898, 445.828003554873817, 39.0, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-82", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 408.131143747435431, 140.0, 22.0 ], + "text" : "expr ($f1 * $f2) - ($f3 / 2)" + } + + } +, { + "box" : { + "id" : "obj-84", + "maxclass" : "number", + "minimum" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 370.434283939997272, 50.0, 22.0 ] + } + + } +, { + "box" : { + "format" : 6, + "id" : "obj-86", + "ignoreclick" : 1, + "maxclass" : "flonum", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 743.545415878295898, 283.418157487445455, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-91", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 1, + "outlettype" : [ "float" ], + "patching_rect" : [ 743.545415878295898, 215.978983251253794, 103.0, 22.0 ], + "text" : "peek~ confidence" + } + + } +, { + "box" : { + "id" : "obj-95", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 975.045415878295898, 283.418157487445455, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-43", + "ignoreclick" : 1, + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 283.418157487445455, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "patching_rect" : [ 975.045415878295898, 253.675843058692067, 42.25, 22.0 ], + "text" : "+" + } + + } +, { + "box" : { + "id" : "obj-40", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 854.045415878295898, 215.978983251253794, 80.0, 22.0 ], + "text" : "expr $f1 * $f2" + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "number", + "maximum" : 9, + "minimum" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 854.045415878295898, 178.282123443815522, 50.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 553.667334318161011, 526.9405330101647, 35.0, 20.0 ], + "text" : "3000", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 405.167335987091064, 526.9405330101647, 35.0, 20.0 ], + "text" : "2000", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 229.527801394462585, 526.9405330101647, 35.0, 20.0 ], + "text" : "1000", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 80.667334318161011, 526.9405330101647, 19.0, 20.0 ], + "text" : "0", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-112", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 49.661149263381958, 647.314453363418352, 539.006185054779053, 22.0 ], + "text" : "19" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 13.0, + "id" : "obj-105", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 647.667334318161011, 37.940378395716152, 124.0, 21.0 ], + "text" : "Why use padding?", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-103", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 647.667334318161011, 52.352762667337856, 501.0, 60.0 ], + "text" : "Assuming the audio starts at the zeroth sample, without padding the first half window of samples will be attenuated and not be equally weighted against the later samples.\nIf we use padding, the windowing will begin before the zeroth sample (and end after the final sample). This uses more windows but allows the first samples to be treated equally.", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-101", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "list", "list" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 5, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 640.0, 480.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-3", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 257.0, 157.247796177864075, 155.0, 20.0 ], + "text" : "outputs confidence channel" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 525.5, 157.247796177864075, 122.0, 20.0 ], + "text" : "outputs pitch channel" + } + + } +, { + "box" : { + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "bang" ], + "patching_rect" : [ 185.0, 97.0, 64.5, 22.0 ], + "text" : "t b b" + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "list" ], + "patching_rect" : [ 420.5, 133.247796177864075, 227.0, 22.0 ], + "text" : "fluid.buf2list @source pitch @startchan 0" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 146.0, 160.534312361839284, 37.0, 22.0 ], + "text" : "zl.len" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "list" ], + "patching_rect" : [ 185.0, 133.247796177864075, 227.0, 22.0 ], + "text" : "fluid.buf2list @source pitch @startchan 1" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-97", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 185.000011222976696, 36.999970889221231, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-98", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 185.0, 196.534332889221218, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-99", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 146.0, 196.534332889221218, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-100", + "index" : 3, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 420.5, 196.534332889221218, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "midpoints" : [ 194.5, 157.391054269851679, 155.5, 157.391054269851679 ], + "order" : 1, + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-98", 0 ], + "order" : 0, + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-100", 0 ], + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "midpoints" : [ 240.0, 125.623898088932037, 430.0, 125.623898088932037 ], + "source" : [ "obj-25", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-97", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 14.667361021041884, 526.9405330101647, 61.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p Outputs" + } + + } +, { + "box" : { + "id" : "obj-90", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 14.667361021041884, 34.440378395716152, 70.0, 22.0 ], + "text" : "loadmess 0" + } + + } +, { + "box" : { + "fontface" : 1, + "id" : "obj-85", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.667334318161011, 646.314453363418352, 61.0, 20.0 ], + "text" : "Windows" + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-74", + "linecount" : 8, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.667334318161011, 292.940510598818264, 124.0, 118.0 ], + "text" : "fluid.waveform displays 1000 samples of silence, 1000 samples of a sine waves, then 10000 samples of silence." + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-47", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 113.667320966720581, 52.352762667337856, 102.0, 37.0 ], + "text" : "Select the padding mode" + } + + } +, { + "box" : { + "fontface" : 1, + "id" : "obj-42", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.667334318161011, 566.60572930128717, 38.0, 20.0 ], + "text" : "Pitch" + } + + } +, { + "box" : { + "fontface" : 1, + "id" : "obj-37", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 593.667334318161011, 609.374370171503529, 74.0, 20.0 ], + "text" : "Confidence" + } + + } +, { + "box" : { + "id" : "obj-34", + "linecount" : 2, + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 49.661149263381958, 561.10572930128717, 539.006185054779053, 35.0 ], + "text" : "0. 0. 0. 0. 849.737366 873.516663 867.012634 864.058289 863.1 863.076904 863.076965 863.594727 865.943359 870.961731 888.320251 0. 0. 0. 0." + } + + } +, { + "box" : { + "id" : "obj-26", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 5, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 640.0, 480.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-10", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 50.0, 239.232577514637995, 304.0, 20.0 ], + "text" : "add to new 3000 sample buffer with 1000 sample offset" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 234.188680648803711, 177.339546508782803, 136.0, 20.0 ], + "text" : "1000 sample sine buffer" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "bang" ], + "patching_rect" : [ 50.0, 113.446515502927596, 49.188680648803711, 22.0 ], + "text" : "t b b" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 50.0, 82.0, 58.0, 22.0 ], + "text" : "loadbang" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 50.0, 176.339546508782803, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 50.0, 207.786062011710385, 491.0, 22.0 ], + "text" : "fluid.bufcompose~ @source sine @destination testsignal @deststartframe 1024 @gain 0.1" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 359.0, 239.232577514637995, 181.0, 22.0 ], + "text" : "buffer~ testsignal @samps 3072" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 80.188680648803711, 176.339546508782803, 152.0, 22.0 ], + "text" : "buffer~ sine @samps 1024" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 80.188680648803711, 144.893031005855192, 55.0, 22.0 ], + "text" : "fill sin 20" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-9", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 200.667335987091064, 240.992459146181545, 72.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p MakeSine" + } + + } +, { + "box" : { + "id" : "obj-20", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 113.667320966720581, 131.940378395716152, 68.0, 22.0 ], + "text" : "padding $1" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 4, + "outlettype" : [ "bang", "bang", "bang", "int" ], + "patching_rect" : [ 14.667361021041884, 93.53666099972213, 117.999959945678697, 22.0 ], + "text" : "t b b b i" + } + + } +, { + "box" : { + "id" : "obj-12", + "items" : [ "0:None", ",", "1:Default", ",", "2:Full" ], + "maxclass" : "umenu", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "int", "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 14.667361021041884, 59.852762667337856, 100.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-33", + "linecount" : 2, + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 49.661149263381958, 603.874370171503529, 539.006185054779053, 35.0 ], + "text" : "0. 0. 0. 0. 0. 0.57247 0.802215 0.927525 0.974079 0.975932 0.975759 0.949081 0.845751 0.655901 0.201464 0. 0. 0. 0." + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 80.667334318161011, 266.940510598818264, 455.0, 22.0 ], + "text" : "clear, addlayer audiobuffer testsignal source, addlayer featuresbuffer confidence red" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 80.667334318161011, 161.940378395716152, 373.0, 22.0 ], + "text" : "fluid.bufpitch~ @source testsignal @features pitch @fftsettings 1024" + } + + } +, { + "box" : { + "filename" : "fluid.waveform~", + "id" : "obj-8", + "maxclass" : "jsui", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "parameter_enable" : 0, + "patching_rect" : [ 80.667334318161011, 292.940510598818264, 508.0, 254.000022411346436 ] + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "float", "bang" ], + "patching_rect" : [ 274.667334318161011, 240.992459146181545, 75.0, 22.0 ], + "text" : "buffer~ pitch" + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 3, + "bordercolor" : [ 0.333333333333333, 0.333333333333333, 0.333333333333333, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-98", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 733.174664378166199, 146.709749547640513, 421.207303166389465, 188.115391731262093 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 3, + "bordercolor" : [ 0.333333333333333, 0.333333333333333, 0.333333333333333, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-99", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 733.174664378166199, 336.825141278902606, 421.207303166389465, 188.115391731262093 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 3, + "bordercolor" : [ 0.333333333333333, 0.333333333333333, 0.333333333333333, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-100", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 733.174664378166199, 526.9405330101647, 421.207303166389465, 188.115391731262093 ], + "proportion" : 0.5 + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-112", 1 ], + "midpoints" : [ 24.167361021041884, 642.767784797903573, 579.167334318161011, 642.767784797903573 ], + "source" : [ "obj-101", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 1 ], + "midpoints" : [ 45.167361021041884, 599.810855469046032, 579.167334318161011, 599.810855469046032 ], + "source" : [ "obj-101", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 1 ], + "midpoints" : [ 66.167361021041884, 554.523131155725991, 579.167334318161011, 554.523131155725991 ], + "source" : [ "obj-101", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-144", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-16", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-84", 0 ], + "source" : [ "obj-123", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-72", 0 ], + "source" : [ "obj-124", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-13", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-132", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-137", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-140", 0 ], + "source" : [ "obj-143", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-137", 0 ], + "source" : [ "obj-144", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-143", 0 ], + "midpoints" : [ 103.167334318161011, 210.197878211074396, 491.167334318161011, 210.197878211074396 ], + "source" : [ "obj-144", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-101", 0 ], + "midpoints" : [ 24.167361021041884, 447.238530903392359, 24.167361021041884, 447.238530903392359 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-16", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-121", 0 ], + "source" : [ "obj-16", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-20", 0 ], + "source" : [ "obj-16", 3 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "midpoints" : [ 123.167320966720581, 157.440378395716152, 90.167334318161011, 157.440378395716152 ], + "source" : [ "obj-20", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 0 ], + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 1 ], + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-40", 0 ], + "order" : 0, + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-91", 0 ], + "midpoints" : [ 863.545415878295898, 210.869683606094782, 753.045415878295898, 210.869683606094782 ], + "order" : 1, + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-41", 0 ], + "midpoints" : [ 863.545415878295898, 249.252231958839729, 984.545415878295898, 249.252231958839729 ], + "order" : 0, + "source" : [ "obj-40", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "order" : 1, + "source" : [ "obj-40", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-95", 0 ], + "source" : [ "obj-41", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "midpoints" : [ 381.336681544780731, 157.440378395716152, 90.167334318161011, 157.440378395716152 ], + "source" : [ "obj-55", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 261.070276916027069, 160.240969777107239, 7.228915929794312, 160.240969777107239, 7.228915929794312, 57.831327438354492, 24.167361021041884, 57.831327438354492 ], + "source" : [ "obj-55", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-58", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-82", 2 ], + "source" : [ "obj-61", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 1 ], + "source" : [ "obj-62", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-70", 1 ], + "source" : [ "obj-63", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-71", 2 ], + "source" : [ "obj-64", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-71", 1 ], + "source" : [ "obj-65", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-66", 0 ], + "source" : [ "obj-67", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-68", 0 ], + "source" : [ "obj-70", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-69", 0 ], + "order" : 1, + "source" : [ "obj-71", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-70", 0 ], + "midpoints" : [ 863.545415878295898, 626.83682721720777, 981.907485246658325, 626.83682721720777 ], + "order" : 0, + "source" : [ "obj-71", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-67", 0 ], + "midpoints" : [ 863.545415878295898, 589.48839731348869, 753.045415878295898, 589.48839731348869 ], + "order" : 1, + "source" : [ "obj-72", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-71", 0 ], + "order" : 0, + "source" : [ "obj-72", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-82", 1 ], + "source" : [ "obj-73", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-41", 1 ], + "source" : [ "obj-75", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-40", 1 ], + "source" : [ "obj-76", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-77", 0 ], + "source" : [ "obj-78", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-79", 0 ], + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-80", 0 ], + "order" : 1, + "source" : [ "obj-82", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 0 ], + "midpoints" : [ 863.545415878295898, 435.434283939997272, 984.545415878295898, 435.434283939997272 ], + "order" : 0, + "source" : [ "obj-82", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-78", 0 ], + "midpoints" : [ 863.545415878295898, 403.782713843716351, 753.045415878295898, 403.782713843716351 ], + "order" : 1, + "source" : [ "obj-84", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-82", 0 ], + "order" : 0, + "source" : [ "obj-84", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-90", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-86", 0 ], + "source" : [ "obj-91", 0 ] + } + + } + ], + "autosave" : 0 + } + +} From 2da2f53e3fe48cc2cb5c9d358bef00b810591122 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Mon, 28 Aug 2023 14:07:13 +0100 Subject: [PATCH 2/3] where is my data pd file --- .../where-is-my-data/whereismydata.pd | 242 ++++++++++++++++++ 1 file changed, 242 insertions(+) create mode 100644 static/examples/where-is-my-data/whereismydata.pd diff --git a/static/examples/where-is-my-data/whereismydata.pd b/static/examples/where-is-my-data/whereismydata.pd new file mode 100644 index 00000000..9fe1c496 --- /dev/null +++ b/static/examples/where-is-my-data/whereismydata.pd @@ -0,0 +1,242 @@ +#N canvas -1664 289 1325 669 12; +#N canvas -1102 113 1102 625 makesine 0; +#X obj 271 169 until; +#X obj 271 243 / 20; +#X obj 271 267 * 3.1415; +#X obj 271 291 sin; +#X obj 271 315 tabwrite sinebuf, f 17; +#X obj 271 339 array define sinebuf 1024; +#X obj 271 195 f; +#X obj 302 195 + 1; +#X obj 271 96 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; +#X obj 271 120 t b b, f 7; +#X msg 271 144 1024; +#X msg 317 169 0; +#X obj 271 219 t f f, f 17; +#X obj 176 21 loadbang; +#X obj 176 72 t b b, f 14; +#X obj 176 363 fluid.bufcompose -source sinebuf -destination testsignal -deststartframe 1024 -gain 0.1; +#X obj 176 401 array define testsignal 3072; +#X obj 176 45 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; +#X connect 0 0 6 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 6 0 7 0; +#X connect 6 0 12 0; +#X connect 7 0 6 1; +#X connect 8 0 9 0; +#X connect 9 0 10 0; +#X connect 9 1 11 0; +#X connect 10 0 0 0; +#X connect 11 0 6 1; +#X connect 12 0 1 0; +#X connect 12 1 4 1; +#X connect 13 0 17 0; +#X connect 14 0 15 0; +#X connect 14 1 8 0; +#X connect 17 0 14 0; +#X restore 417 290 pd makesine; +#X obj 151 223 fluid.bufpitch -source testsignal -features pitch -fftsettings 1024, f 68; +#X obj 417 267 array define pitch; +#X obj 151 245 t b b; +#X obj 151 314 fluid.bufcompose -source pitch -destination confidence -startchan 1, f 67; +#X obj 151 198 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000; +#X obj 417 245 clone 2 fluid.multiarray pitch; +#X obj 151 361 fluid.waveform 500 180 1 empty empty 0; +#X msg 151 338 waveform testsignal source \, features confidence red; +#X msg 183 267 0; +#X obj 196 245 array define confidence; +#X obj 183 291 array size confidence; +#X obj 60 109 vradio 19 1 0 3 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0; +#X text 82 110 0:None; +#X text 81 128 1:Default; +#X text 81 147 2: Full; +#X obj 60 171 t b b b f, f 20; +#X msg 197 198 padding \$1; +#N canvas -1273 587 450 300 fftsettings 0; +#X obj 59 24 inlet; +#X obj 59 81 pack f f, f 13; +#X obj 59 105 t b l, f 13; +#X obj 115 25 inlet; +#X obj 115 48 t b f; +#X msg 147 129 fftsettings \$1 \$2 -1; +#X obj 147 153 outlet; +#X obj 59 129 s rpad; +#X obj 159 48 s hop; +#X obj 17 48 s win; +#X connect 0 0 1 0; +#X connect 0 0 9 0; +#X connect 1 0 2 0; +#X connect 2 0 7 0; +#X connect 2 1 5 0; +#X connect 3 0 4 0; +#X connect 3 0 8 0; +#X connect 4 0 1 0; +#X connect 4 1 1 1; +#X connect 5 0 6 0; +#X restore 288 198 pd fftsettings; +#X obj 60 84 r rpad; +#X floatatom 288 173 5 0 0 0 - - - 0; +#X floatatom 383 173 5 0 0 0 - - - 0; +#X msg 26 84 0; +#X obj 26 58 loadbang; +#X obj 288 123 loadbang; +#X msg 288 149 1024; +#X obj 383 123 loadbang; +#X msg 383 149 512; +#X obj 100 198 s calc; +#N canvas 411 436 764 300 outputs 0; +#X obj 43 16 inlet; +#X obj 265 64 array get confidence; +#X obj 488 65 array get pitch; +#X obj 265 88 outlet; +#X obj 488 89 outlet; +#X obj 43 88 outlet; +#X obj 43 64 array size confidence; +#X obj 43 40 t b b b, f 64; +#X connect 0 0 7 0; +#X connect 1 0 3 0; +#X connect 2 0 4 0; +#X connect 6 0 5 0; +#X connect 7 0 6 0; +#X connect 7 1 1 0; +#X connect 7 2 2 0; +#X restore 60 523 pd outputs; +#X listbox 127 589 75 0 0 0 - - - 0; +#X listbox 127 568 75 0 0 0 - - - 0; +#X listbox 127 547 75 0 0 0 - - - 0; +#X text 656 547 Pitch; +#X text 655 567 Confidence; +#X text 656 589 Windows; +#X obj 981 139 r calc; +#X floatatom 981 162 5 0 0 0 - - - 0; +#X obj 981 186 expr $f1 * $f2; +#X listbox 981 234 7 0 0 0 - - - 0; +#X obj 1086 210 +; +#X obj 1104 186 r win; +#X listbox 1086 234 7 0 0 0 - - - 0; +#X text 1084 251 End sample; +#X text 978 251 Start sample; +#X obj 1076 162 r hop; +#X text 1045 138 NO PADDING; +#X obj 982 311 r calc; +#X floatatom 982 334 5 0 0 0 - - - 0; +#X listbox 982 406 7 0 0 0 - - - 0; +#X obj 1127 382 +; +#X obj 1145 358 r win; +#X listbox 1127 406 7 0 0 0 - - - 0; +#X text 1125 423 End sample; +#X text 979 423 Start sample; +#X obj 1057 334 r hop; +#X obj 982 358 expr ($f1*$f2)-($f3/2); +#X obj 1133 334 r win; +#X text 1046 310 DEFAULT PADDING; +#X obj 982 503 r calc; +#X floatatom 982 526 5 0 0 0 - - - 0; +#X listbox 982 598 7 0 0 0 - - - 0; +#X obj 1140 575 +; +#X obj 1158 550 r win; +#X listbox 1140 599 7 0 0 0 - - - 0; +#X text 1138 616 End sample; +#X text 979 615 Start sample; +#X obj 1064 526 r hop; +#X obj 1147 526 r win; +#X text 1046 502 FULL PADDING; +#X obj 982 550 expr ($f1*$f2)-($f3-$f2); +#X obj 848 186 tabread confidence; +#X listbox 848 234 9 0 0 0 - - - 0; +#X obj 848 358 tabread confidence; +#X listbox 848 406 9 0 0 0 - - - 0; +#X obj 848 551 tabread confidence; +#X listbox 848 599 9 0 0 0 - - - 0; +#X text 846 251 Confidence; +#X text 845 423 Confidence; +#X text 845 619 Confidence; +#X text 997 106 FORMULAS; +#X obj 141 93 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 140 91 .. select a padding mode, f 12; +#X obj 284 91 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 283 89 .. Play with the window and hop sizes to see how the patch reacts, f 33; +#X text 150 524 0; +#X text 297 524 1000; +#X text 465 525 2000; +#X text 619 526 3000; +#X obj 655 331 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 654 329 .. fluid.waveform displays 1000 samples of silence \, 1000 samples of a sine waves \, then 10000 samples of silence., f 17; +#X obj 655 461 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 654 459 .. The red line shows the pitch confidence in relation to the sine waves, f 17; +#X obj 845 164 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 844 162 .. Change the frame; +#X obj 846 336 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 845 334 .. Change the frame; +#X obj 846 527 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 845 525 .. Change the frame; +#X obj 1188 157 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 1187 155 .. The first frame stats at zeroth sample, f 14; +#X obj 1196 335 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 1195 333 .. The first frame stats negative half the window size, f 14; +#X obj 1212 532 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; +#X text 1211 530 .. The first frame stats negative window size-hopsize, f 14; +#X text 486 135 You should notice that the output is symettrical whenver the hopsize is an equal division of the window size, f 25; +#X text 326 161 WINDOW SIZE, f 6; +#X text 421 162 HOP SIZE; +#X text 51 608 In the default state of the patch \, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1000 samples of sine wave. This is true as long as the window size is 1000 and the hopsize is a division of 1000, f 109; +#X text 678 36 Assuming the audio starts at the zeroth sample \, without padding the first half window of samples will be attenuated and not be equally weighted against the later samples. If we use padding \, the windowing will begin before the zeroth sample (and end after the final sample). This uses more windows but allows the first samples to be treated equally., f 87; +#X text 667 22 WHY USE PADDING?; +#X obj 113 19 cnv 19 220 30 empty empty Where\ is\ My\ Data 15 15 0 20 #00faff #ffffff 0; +#X connect 1 0 3 0; +#X connect 3 0 4 0; +#X connect 3 1 9 0; +#X connect 4 0 8 0; +#X connect 5 0 1 0; +#X connect 8 0 7 0; +#X connect 9 0 11 0; +#X connect 12 0 16 0; +#X connect 16 0 29 0; +#X connect 16 1 28 0; +#X connect 16 2 5 0; +#X connect 16 3 17 0; +#X connect 17 0 1 0; +#X connect 18 0 1 0; +#X connect 19 0 12 0; +#X connect 20 0 18 0; +#X connect 21 0 18 1; +#X connect 22 0 12 0; +#X connect 23 0 22 0; +#X connect 24 0 25 0; +#X connect 25 0 20 0; +#X connect 26 0 27 0; +#X connect 27 0 21 0; +#X connect 29 0 30 0; +#X connect 29 1 31 0; +#X connect 29 2 32 0; +#X connect 36 0 37 0; +#X connect 37 0 38 0; +#X connect 37 0 71 0; +#X connect 38 0 39 0; +#X connect 38 0 40 0; +#X connect 40 0 42 0; +#X connect 41 0 40 1; +#X connect 45 0 38 1; +#X connect 47 0 48 0; +#X connect 48 0 56 0; +#X connect 48 0 73 0; +#X connect 50 0 52 0; +#X connect 51 0 50 1; +#X connect 55 0 56 1; +#X connect 56 0 49 0; +#X connect 56 0 50 0; +#X connect 57 0 56 2; +#X connect 59 0 60 0; +#X connect 60 0 70 0; +#X connect 60 0 75 0; +#X connect 62 0 64 0; +#X connect 63 0 62 1; +#X connect 67 0 70 1; +#X connect 68 0 70 2; +#X connect 70 0 61 0; +#X connect 70 0 62 0; +#X connect 71 0 72 0; +#X connect 73 0 74 0; +#X connect 75 0 76 0; From c96382d4f15ee6c281cdf7b84836603e1905dadd Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 13 Aug 2024 11:22:01 +0100 Subject: [PATCH 3/3] fixed typos in whereismydata examples --- .../where-is-my-data/whereismydata.maxpat | 67 +++++++------------ .../where-is-my-data/whereismydata.pd | 17 +++-- 2 files changed, 33 insertions(+), 51 deletions(-) diff --git a/static/examples/where-is-my-data/whereismydata.maxpat b/static/examples/where-is-my-data/whereismydata.maxpat index 917ab791..43f671a0 100644 --- a/static/examples/where-is-my-data/whereismydata.maxpat +++ b/static/examples/where-is-my-data/whereismydata.maxpat @@ -3,14 +3,14 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 5, - "revision" : 5, + "minor" : 6, + "revision" : 1, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 45.0, 87.0, 1226.0, 724.0 ], + "rect" : [ 134.0, 172.0, 1226.0, 724.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,20 +39,6 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { - "box" : { - "fontsize" : 10.0, - "id" : "obj-88", - "linecount" : 5, - "maxclass" : "comment", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 463.527978420257568, 52.352762667337856, 116.0, 62.0 ], - "text" : "You should notice that the output is symettrical whenver the hopsize is an equal division of the window size", - "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] - } - - } -, { "box" : { "fontface" : 1, "id" : "obj-87", @@ -101,8 +87,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 5, - "revision" : 5, + "minor" : 6, + "revision" : 1, "architecture" : "x64", "modernui" : 1 } @@ -417,7 +403,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 593.667334318161011, 424.685687303542863, 122.0, 78.0 ], - "text" : "The red line shows the pitch confidence in relation to the sine waves" + "text" : "The red line shows the pitch confidence in relation to the sine wave" } } @@ -454,7 +440,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 1031.045415878295898, 665.276001453399545, 124.0, 47.0 ], - "text" : "In the default patch this will look the same as default padding, it will change when you play with the hop size", + "text" : "In the default patch this will look the same as default padding, it will change when you change the hop size", "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] } @@ -582,7 +568,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 47.66734766960144, 676.350648880004883, 600.0, 47.0 ], - "text" : "In the default state of the patch, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1000 samples of sine wave. This is true as long as the window size is 1000 and the hopsize is a division of 1000.", + "text" : "In the default state of the patch, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1024 samples of sine wave. This is true as long as the window size is 1024 and the hopsize is an int division of 1024.", "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] } @@ -1109,7 +1095,6 @@ "box" : { "id" : "obj-31", "maxclass" : "number", - "maximum" : 9, "minimum" : 0, "numinlets" : 1, "numoutlets" : 2, @@ -1126,7 +1111,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 553.667334318161011, 526.9405330101647, 35.0, 20.0 ], - "text" : "3000", + "text" : "3072", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -1138,7 +1123,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 405.167335987091064, 526.9405330101647, 35.0, 20.0 ], - "text" : "2000", + "text" : "2048", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -1150,7 +1135,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 229.527801394462585, 526.9405330101647, 35.0, 20.0 ], - "text" : "1000", + "text" : "1024", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -1175,7 +1160,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 49.661149263381958, 647.314453363418352, 539.006185054779053, 22.0 ], - "text" : "19" + "text" : "5" } } @@ -1189,7 +1174,7 @@ "numoutlets" : 0, "patching_rect" : [ 647.667334318161011, 37.940378395716152, 124.0, 21.0 ], "text" : "Why use padding?", - "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + "textcolor" : [ 0.129411764705882, 0.129411764705882, 0.129411764705882, 1.0 ] } } @@ -1217,8 +1202,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 5, - "revision" : 5, + "minor" : 6, + "revision" : 1, "architecture" : "x64", "modernui" : 1 } @@ -1473,7 +1458,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 593.667334318161011, 292.940510598818264, 124.0, 118.0 ], - "text" : "fluid.waveform displays 1000 samples of silence, 1000 samples of a sine waves, then 10000 samples of silence." + "text" : "fluid.waveform displays 1024 samples of silence, 1024 samples of a sine wave, 1024 samples of silence." } } @@ -1517,13 +1502,12 @@ , { "box" : { "id" : "obj-34", - "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 49.661149263381958, 561.10572930128717, 539.006185054779053, 35.0 ], - "text" : "0. 0. 0. 0. 849.737366 873.516663 867.012634 864.058289 863.1 863.076904 863.076965 863.594727 865.943359 870.961731 888.320251 0. 0. 0. 0." + "patching_rect" : [ 49.661149263381958, 561.10572930128717, 539.006185054779053, 22.0 ], + "text" : "0. 942.016846 938.835938 942.016846 0." } } @@ -1537,8 +1521,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 5, - "revision" : 5, + "minor" : 6, + "revision" : 1, "architecture" : "x64", "modernui" : 1 } @@ -1579,7 +1563,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 50.0, 239.232577514637995, 304.0, 20.0 ], - "text" : "add to new 3000 sample buffer with 1000 sample offset" + "text" : "add to new 3072 sample buffer with 1024 sample offset" } } @@ -1590,7 +1574,7 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 234.188680648803711, 177.339546508782803, 136.0, 20.0 ], - "text" : "1000 sample sine buffer" + "text" : "1024 sample sine buffer" } } @@ -1769,13 +1753,12 @@ , { "box" : { "id" : "obj-33", - "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 49.661149263381958, 603.874370171503529, 539.006185054779053, 35.0 ], - "text" : "0. 0. 0. 0. 0. 0.57247 0.802215 0.927525 0.974079 0.975932 0.975759 0.949081 0.845751 0.655901 0.201464 0. 0. 0. 0." + "patching_rect" : [ 49.661149263381958, 603.874370171503529, 539.006185054779053, 22.0 ], + "text" : "0. 0.852533 0.983713 0.852533 0." } } @@ -2085,7 +2068,7 @@ , { "patchline" : { "destination" : [ "obj-12", 0 ], - "midpoints" : [ 261.070276916027069, 160.240969777107239, 7.228915929794312, 160.240969777107239, 7.228915929794312, 57.831327438354492, 24.167361021041884, 57.831327438354492 ], + "midpoints" : [ 261.070276916027069, 158.940378395716152, 4.61881896853447, 158.940378395716152, 4.61881896853447, 55.852762667337856, 24.167361021041884, 55.852762667337856 ], "source" : [ "obj-55", 0 ] } diff --git a/static/examples/where-is-my-data/whereismydata.pd b/static/examples/where-is-my-data/whereismydata.pd index 9fe1c496..f12faaf7 100644 --- a/static/examples/where-is-my-data/whereismydata.pd +++ b/static/examples/where-is-my-data/whereismydata.pd @@ -1,5 +1,5 @@ -#N canvas -1664 289 1325 669 12; -#N canvas -1102 113 1102 625 makesine 0; +#N canvas 66 51 1325 669 12; +#N canvas 0 113 1102 625 makesine 0; #X obj 271 169 until; #X obj 271 243 / 20; #X obj 271 267 * 3.1415; @@ -54,7 +54,7 @@ #X text 81 147 2: Full; #X obj 60 171 t b b b f, f 20; #X msg 197 198 padding \$1; -#N canvas -1273 587 450 300 fftsettings 0; +#N canvas 245 545 450 300 fftsettings 0; #X obj 59 24 inlet; #X obj 59 81 pack f f, f 13; #X obj 59 105 t b l, f 13; @@ -159,11 +159,7 @@ #X obj 284 91 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; #X text 283 89 .. Play with the window and hop sizes to see how the patch reacts, f 33; #X text 150 524 0; -#X text 297 524 1000; -#X text 465 525 2000; -#X text 619 526 3000; #X obj 655 331 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; -#X text 654 329 .. fluid.waveform displays 1000 samples of silence \, 1000 samples of a sine waves \, then 10000 samples of silence., f 17; #X obj 655 461 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; #X text 654 459 .. The red line shows the pitch confidence in relation to the sine waves, f 17; #X obj 845 164 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; @@ -178,13 +174,16 @@ #X text 1195 333 .. The first frame stats negative half the window size, f 14; #X obj 1212 532 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0; #X text 1211 530 .. The first frame stats negative window size-hopsize, f 14; -#X text 486 135 You should notice that the output is symettrical whenver the hopsize is an equal division of the window size, f 25; #X text 326 161 WINDOW SIZE, f 6; #X text 421 162 HOP SIZE; -#X text 51 608 In the default state of the patch \, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1000 samples of sine wave. This is true as long as the window size is 1000 and the hopsize is a division of 1000, f 109; #X text 678 36 Assuming the audio starts at the zeroth sample \, without padding the first half window of samples will be attenuated and not be equally weighted against the later samples. If we use padding \, the windowing will begin before the zeroth sample (and end after the final sample). This uses more windows but allows the first samples to be treated equally., f 87; #X text 667 22 WHY USE PADDING?; #X obj 113 19 cnv 19 220 30 empty empty Where\ is\ My\ Data 15 15 0 20 #00faff #ffffff 0; +#X text 297 524 1024; +#X text 467 525 2048, f 5; +#X text 619 526 3072; +#X text 51 608 In the default state of the patch \, the pitch/confidence outputs are symmetrical. This is because the window size fits perfectly into the buffer size. This means that the median output will always contain the full 1024 samples of sine wave. This is true as long as the window size is 1024 and the hopsize is a division of 1024, f 109; +#X text 654 329 .. fluid.waveform displays 1024 samples of silence \, 1024 samples of a sine wave \, then 1024 samples of silence., f 17; #X connect 1 0 3 0; #X connect 3 0 4 0; #X connect 3 1 9 0;