From 85604b1cc67b7084d44a67465ebb42892e9c6cc6 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 13:35:06 +0100 Subject: [PATCH 1/6] Tidied and fixed classification tutorial --- examples/tutorials/classification.maxpat | 329 +++++++++++++---------- 1 file changed, 189 insertions(+), 140 deletions(-) diff --git a/examples/tutorials/classification.maxpat b/examples/tutorials/classification.maxpat index 4cdc643d..081355cd 100644 --- a/examples/tutorials/classification.maxpat +++ b/examples/tutorials/classification.maxpat @@ -3,14 +3,14 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 1, + "minor" : 5, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 34.0, 87.0, 1265.0, 929.0 ], + "rect" : [ 79.0, 94.0, 1061.0, 694.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -40,13 +40,65 @@ "assistshowspatchername" : 0, "boxes" : [ { "box" : { + "id" : "obj-46", + "lastchannelcount" : 0, + "maxclass" : "live.gain~", + "numinlets" : 2, + "numoutlets" : 5, + "outlettype" : [ "signal", "signal", "", "float", "list" ], + "parameter_enable" : 1, + "patching_rect" : [ 21.0, 407.758712887763977, 48.0, 136.0 ], + "saved_attribute_attributes" : { + "valueof" : { + "parameter_longname" : "Gain", + "parameter_mmax" : 6.0, + "parameter_mmin" : -70.0, + "parameter_shortname" : "Gain", + "parameter_type" : 0, + "parameter_unitstyle" : 4 + } + + } +, + "varname" : "live.gain~" + } + + } +, { + "box" : { + "id" : "obj-45", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "int", "int" ], + "patching_rect" : [ 519.774396300315857, 287.965023547410965, 29.5, 22.0 ], + "text" : "t i i" + } + + } +, { + "box" : { + "id" : "obj-42", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 121.160053968429565, 511.385390639305115, 31.0, 22.0 ], + "text" : "t s s" + } + + } +, { + "box" : { + "fontsize" : 13.0, "id" : "obj-44", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 677.0, 219.5, 234.0, 33.0 ], - "text" : "adding examples to dataset & labelset\nmaking predictions" + "patching_rect" : [ 638.015305578708649, 226.377644866704941, 238.333333194255829, 36.0 ], + "text" : "-Adding examples to dataset & labelset\n-Making predictions", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } } @@ -57,7 +109,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 652.0, 192.0, 70.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 195.81211119890213, 70.0, 22.0 ], "text" : "loadmess 0" } @@ -72,9 +124,10 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 652.0, 219.5, 18.0, 34.0 ], + "patching_rect" : [ 621.696727275848389, 226.377644866704941, 254.0, 34.0 ], "size" : 2, - "value" : 1 + "value" : 1, + "varname" : "radiogroup" } } @@ -85,7 +138,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 652.0, 267.5, 32.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 318.758712887763977, 32.0, 22.0 ], "text" : "gate" } @@ -97,7 +150,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], - "patching_rect" : [ 485.0, 292.0, 29.5, 22.0 ], + "patching_rect" : [ 519.774396300315857, 318.758712887763977, 29.5, 22.0 ], "text" : "!- 1" } @@ -110,7 +163,7 @@ "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, - "patching_rect" : [ 788.0, 616.0, 24.0, 24.0 ] + "patching_rect" : [ 684.015305578708649, 615.560148000717163, 24.0, 24.0 ] } } @@ -120,8 +173,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 729.0, 618.0, 52.0, 20.0 ], - "presentation_linecount" : 2, + "patching_rect" : [ 627.196727275848389, 615.560148000717163, 52.0, 20.0 ], "text" : "silence:" } @@ -133,7 +185,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 786.0, 570.0, 120.0, 22.0 ], + "patching_rect" : [ 684.015305578708649, 581.04132616519928, 120.0, 22.0 ], "text" : "trombone" } @@ -144,7 +196,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 740.0, 570.0, 41.0, 20.0 ], + "patching_rect" : [ 638.015305578708649, 581.04132616519928, 41.0, 20.0 ], "text" : "class:" } @@ -156,8 +208,8 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 786.0, 525.0, 120.0, 22.0 ], - "text" : "0.000697" + "patching_rect" : [ 684.015305578708649, 548.522504329681396, 120.0, 22.0 ], + "text" : "0.000958" } } @@ -167,7 +219,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 740.0, 525.0, 41.0, 20.0 ], + "patching_rect" : [ 638.015305578708649, 548.522504329681396, 41.0, 20.0 ], "text" : "error:" } @@ -179,7 +231,7 @@ "numinlets" : 3, "numoutlets" : 3, "outlettype" : [ "", "", "" ], - "patching_rect" : [ 652.0, 485.0, 114.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 514.519582867622375, 114.0, 22.0 ], "text" : "route predictpoint fit" } @@ -191,7 +243,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 485.0, 221.0, 29.5, 22.0 ], + "patching_rect" : [ 519.774396300315857, 226.377644866704941, 29.5, 22.0 ], "text" : "$1" } @@ -203,7 +255,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], - "patching_rect" : [ 485.0, 251.25, 36.0, 22.0 ], + "patching_rect" : [ 519.774396300315857, 257.171334207057953, 36.0, 22.0 ], "text" : "> -30" } @@ -215,7 +267,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 485.0, 192.0, 89.0, 22.0 ], + "patching_rect" : [ 519.774396300315857, 195.583955526351929, 89.0, 22.0 ], "text" : "fluid.loudness~" } @@ -227,7 +279,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 605.0, 377.0, 35.0, 22.0 ], + "patching_rect" : [ 897.522808074951172, 407.758712887763977, 35.0, 22.0 ], "text" : "clear" } @@ -240,7 +292,7 @@ "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, - "patching_rect" : [ 652.0, 296.5, 24.0, 24.0 ] + "patching_rect" : [ 621.696727275848389, 347.758712887763977, 24.0, 24.0 ] } } @@ -251,7 +303,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 652.0, 327.5, 63.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 378.758712887763977, 63.0, 22.0 ], "text" : "qmetro 50" } @@ -263,7 +315,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 652.0, 356.5, 124.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 407.758712887763977, 124.0, 22.0 ], "text" : "predictpoint timbrebuf" } @@ -275,7 +327,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 677.0, 383.0, 135.0, 22.0 ], + "patching_rect" : [ 755.696727275848389, 407.758712887763977, 135.0, 22.0 ], "text" : "fit timbredata instrlabels" } @@ -287,7 +339,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 33.5, 458.5, 35.0, 22.0 ], + "patching_rect" : [ 366.252282679080963, 575.414516866207123, 35.0, 22.0 ], "text" : "clear" } @@ -299,7 +351,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 414.5, 391.5, 35.0, 22.0 ], + "patching_rect" : [ 371.592093229293823, 511.385390639305115, 35.0, 22.0 ], "text" : "oboe" } @@ -311,7 +363,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 348.5, 391.5, 59.0, 22.0 ], + "patching_rect" : [ 306.660053968429565, 511.385390639305115, 59.0, 22.0 ], "text" : "trombone" } @@ -323,7 +375,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 277.0, 430.0, 29.5, 22.0 ], + "patching_rect" : [ 265.092093229293823, 545.414516866207123, 60.567960739135742, 22.0 ], "text" : "join" } @@ -335,7 +387,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 277.0, 460.0, 87.0, 22.0 ], + "patching_rect" : [ 265.092093229293823, 575.414516866207123, 87.0, 22.0 ], "text" : "addlabel $1 $2" } @@ -347,7 +399,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 47.0, 221.0, 36.0, 22.0 ], + "patching_rect" : [ 103.160053968429565, 235.681871116161346, 36.0, 22.0 ], "text" : "defer" } @@ -359,7 +411,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 80.5, 458.5, 32.0, 22.0 ], + "patching_rect" : [ 413.252282679080963, 575.414516866207123, 32.0, 22.0 ], "text" : "print" } @@ -371,7 +423,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 75.0, 395.0, 181.0, 22.0 ], + "patching_rect" : [ 121.160053968429565, 482.177988111972809, 181.0, 22.0 ], "text" : "combine example- s @triggers 1" } @@ -383,7 +435,7 @@ "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], - "patching_rect" : [ 80.5, 353.5, 61.0, 22.0 ], + "patching_rect" : [ 121.160053968429565, 446.037281632423401, 61.0, 22.0 ], "text" : "counter" } @@ -394,8 +446,8 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 106.5, 325.0, 78.0, 20.0 ], - "text" : "add example" + "patching_rect" : [ 144.160053968429565, 414.037281632423401, 79.0, 20.0 ], + "text" : "Add example" } } @@ -407,7 +459,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 80.5, 319.5, 24.0, 24.0 ] + "patching_rect" : [ 121.160053968429565, 412.037281632423401, 24.0, 24.0 ] } } @@ -418,7 +470,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 123.0, 460.0, 125.0, 22.0 ], + "patching_rect" : [ 121.160053968429565, 575.414516866207123, 125.0, 22.0 ], "text" : "addpoint $1 timbrebuf" } @@ -430,7 +482,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 75.0, 281.0, 167.0, 22.0 ], + "patching_rect" : [ 140.660053968429565, 235.681871116161346, 167.0, 22.0 ], "text" : "buffer~ timbrebuf @samps 13" } @@ -442,7 +494,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "buffer" ], - "patching_rect" : [ 47.0, 251.25, 199.0, 22.0 ], + "patching_rect" : [ 103.160053968429565, 265.931871116161346, 204.5, 22.0 ], "text" : "fluid.list2buf @destination timbrebuf" } @@ -450,12 +502,13 @@ , { "box" : { "id" : "obj-10", + "ignoreclick" : 1, "maxclass" : "multislider", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 257.5, 210.5, 212.0, 71.0 ], + "patching_rect" : [ 312.065648317337036, 235.681871116161346, 186.0, 76.0 ], "setminmax" : [ -20.0, 20.0 ], "size" : 13 } @@ -468,7 +521,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 43.0, 181.75, 158.0, 22.0 ], + "patching_rect" : [ 103.160053968429565, 196.431871116161346, 158.0, 22.0 ], "text" : "fluid.mfcc~ 13 @startcoeff 1" } @@ -480,7 +533,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 277.0, 505.0, 140.0, 22.0 ], + "patching_rect" : [ 265.092093229293823, 615.560148000717163, 140.0, 22.0 ], "text" : "fluid.labelset~ instrlabels" } @@ -492,7 +545,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 123.0, 505.0, 140.0, 22.0 ], + "patching_rect" : [ 121.160053968429565, 615.560148000717163, 140.0, 22.0 ], "text" : "fluid.dataset~ timbredata" } @@ -503,7 +556,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 14.0, 327.5, 45.0, 45.0 ] + "patching_rect" : [ 21.0, 590.560148000717163, 45.0, 45.0 ] } } @@ -517,7 +570,6 @@ "filename" : "Harker-DS-TenOboeMultiphonics-M.wav", "filekind" : "audiofile", "id" : "u804002094", - "selection" : [ 0.618759455370651, 1.0 ], "loop" : 0, "content_state" : { @@ -529,7 +581,6 @@ "filename" : "Olencki-TenTromboneLongTones-M.wav", "filekind" : "audiofile", "id" : "u950002097", - "selection" : [ 0.708018154311649, 1.0 ], "loop" : 0, "content_state" : { @@ -566,7 +617,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 652.0, 411.5, 119.0, 62.0 ], + "patching_rect" : [ 621.696727275848389, 441.019582867622375, 119.0, 62.0 ], "text" : "fluid.mlpclassifier~ @activation 1 @learnrate 0.05 @maxiter 1000" } @@ -579,7 +630,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 5.5, 3.5, 216.0, 28.0 ], + "patching_rect" : [ 21.0, 3.5, 113.0, 28.0 ], "text" : "Classification" } @@ -595,7 +646,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 132.5, 483.0, 132.5, 483.0 ], + "midpoints" : [ 130.660053968429565, 598.414516866207123, 130.660053968429565, 598.414516866207123 ], "source" : [ "obj-15", 0 ] } @@ -603,6 +654,7 @@ , { "patchline" : { "destination" : [ "obj-24", 1 ], + "midpoints" : [ 678.696727275848389, 542.021043598651886, 794.515305578708649, 542.021043598651886 ], "source" : [ "obj-16", 1 ] } @@ -610,7 +662,7 @@ , { "patchline" : { "destination" : [ "obj-27", 1 ], - "midpoints" : [ 661.5, 557.0, 896.5, 557.0 ], + "midpoints" : [ 631.196727275848389, 575.839971363544464, 794.515305578708649, 575.839971363544464 ], "source" : [ "obj-16", 0 ] } @@ -625,25 +677,14 @@ , { "patchline" : { "destination" : [ "obj-21", 1 ], - "midpoints" : [ 90.0, 390.0, 246.5, 390.0 ], + "midpoints" : [ 130.660053968429565, 477.177988111972809, 292.660053968429565, 477.177988111972809 ], "source" : [ "obj-20", 0 ] } } , { "patchline" : { - "destination" : [ "obj-15", 0 ], - "midpoints" : [ 84.5, 429.0, 132.5, 429.0 ], - "order" : 1, - "source" : [ "obj-21", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-30", 0 ], - "midpoints" : [ 84.5, 429.0, 274.0, 429.0, 274.0, 426.0, 286.5, 426.0 ], - "order" : 0, + "destination" : [ "obj-42", 0 ], "source" : [ "obj-21", 0 ] } @@ -651,7 +692,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 90.0, 490.0, 132.5, 490.0 ], + "midpoints" : [ 422.752282679080963, 605.414516866207123, 130.660053968429565, 605.414516866207123 ], "order" : 1, "source" : [ "obj-25", 0 ] } @@ -660,7 +701,7 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 90.0, 490.0, 286.5, 490.0 ], + "midpoints" : [ 422.752282679080963, 605.414516866207123, 274.592093229293823, 605.414516866207123 ], "order" : 0, "source" : [ "obj-25", 0 ] } @@ -676,7 +717,7 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 286.5, 483.0, 286.5, 483.0 ], + "midpoints" : [ 274.592093229293823, 598.414516866207123, 274.592093229293823, 598.414516866207123 ], "source" : [ "obj-29", 0 ] } @@ -684,7 +725,7 @@ , { "patchline" : { "destination" : [ "obj-29", 0 ], - "midpoints" : [ 286.5, 453.0, 286.5, 453.0 ], + "midpoints" : [ 274.592093229293823, 568.414516866207123, 274.592093229293823, 568.414516866207123 ], "source" : [ "obj-30", 0 ] } @@ -692,7 +733,6 @@ , { "patchline" : { "destination" : [ "obj-30", 1 ], - "midpoints" : [ 358.0, 426.0, 297.0, 426.0 ], "source" : [ "obj-32", 0 ] } @@ -700,7 +740,7 @@ , { "patchline" : { "destination" : [ "obj-30", 1 ], - "midpoints" : [ 424.0, 426.0, 297.0, 426.0 ], + "midpoints" : [ 381.092093229293823, 541.414516866207123, 316.160053968429565, 541.414516866207123 ], "source" : [ "obj-34", 0 ] } @@ -708,7 +748,7 @@ , { "patchline" : { "destination" : [ "obj-36", 0 ], - "midpoints" : [ 494.5, 605.0, 797.5, 605.0 ], + "midpoints" : [ 529.274396300315857, 606.329766452312469, 693.515305578708649, 606.329766452312469 ], "source" : [ "obj-37", 0 ] } @@ -744,7 +784,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 43.0, 490.0, 132.5, 490.0 ], + "midpoints" : [ 375.752282679080963, 605.414516866207123, 130.660053968429565, 605.414516866207123 ], "order" : 1, "source" : [ "obj-41", 0 ] } @@ -753,47 +793,88 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 43.0, 490.0, 286.5, 490.0 ], + "midpoints" : [ 375.752282679080963, 605.414516866207123, 274.592093229293823, 605.414516866207123 ], "order" : 0, "source" : [ "obj-41", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "midpoints" : [ 130.660053968429565, 544.414516866207123, 130.660053968429565, 544.414516866207123 ], + "source" : [ "obj-42", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "midpoints" : [ 142.660053968429565, 538.899953752756119, 274.592093229293823, 538.899953752756119 ], + "source" : [ "obj-42", 1 ] + } + } , { "patchline" : { "destination" : [ "obj-4", 0 ], + "midpoints" : [ 765.196727275848389, 434.889147877693176, 631.196727275848389, 434.889147877693176 ], "source" : [ "obj-43", 0 ] } } , { "patchline" : { - "destination" : [ "obj-4", 0 ], - "source" : [ "obj-47", 0 ] + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-45", 0 ] } } , { "patchline" : { - "destination" : [ "obj-47", 0 ], - "source" : [ "obj-48", 0 ] + "destination" : [ "obj-38", 1 ], + "midpoints" : [ 539.774396300315857, 312.049257606267929, 644.196727275848389, 312.049257606267929 ], + "source" : [ "obj-45", 1 ] } } , { "patchline" : { "destination" : [ "obj-1", 1 ], - "midpoints" : [ 30.5, 312.0, 49.5, 312.0 ], - "order" : 1, - "source" : [ "obj-5", 0 ] + "midpoints" : [ 30.5, 566.66356635093689, 56.5, 566.66356635093689 ], + "order" : 0, + "source" : [ "obj-46", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], - "midpoints" : [ 30.5, 312.0, 23.5, 312.0 ], - "order" : 3, + "midpoints" : [ 30.5, 566.66356635093689, 30.5, 566.66356635093689 ], + "order" : 1, + "source" : [ "obj-46", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "midpoints" : [ 631.196727275848389, 434.889147877693176, 631.196727275848389, 434.889147877693176 ], + "source" : [ "obj-47", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-48", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-46", 0 ], + "order" : 2, "source" : [ "obj-5", 0 ] } @@ -801,7 +882,8 @@ , { "patchline" : { "destination" : [ "obj-7", 0 ], - "order" : 2, + "midpoints" : [ 30.5, 184.480498671531677, 112.660053968429565, 184.480498671531677 ], + "order" : 1, "source" : [ "obj-5", 0 ] } @@ -809,7 +891,7 @@ , { "patchline" : { "destination" : [ "obj-8", 0 ], - "midpoints" : [ 30.5, 213.0, 243.0, 213.0, 243.0, 186.0, 494.5, 186.0 ], + "midpoints" : [ 30.5, 184.541977763175964, 529.274396300315857, 184.541977763175964 ], "order" : 0, "source" : [ "obj-5", 0 ] } @@ -825,6 +907,7 @@ , { "patchline" : { "destination" : [ "obj-4", 0 ], + "midpoints" : [ 907.022808074951172, 434.889147877693176, 631.196727275848389, 434.889147877693176 ], "source" : [ "obj-54", 0 ] } @@ -832,7 +915,7 @@ , { "patchline" : { "destination" : [ "obj-10", 0 ], - "midpoints" : [ 52.5, 214.0, 210.0, 214.0, 210.0, 204.0, 267.0, 204.0 ], + "midpoints" : [ 112.660053968429565, 226.556871116161346, 321.565648317337036, 226.556871116161346 ], "order" : 0, "source" : [ "obj-7", 0 ] } @@ -855,67 +938,33 @@ } , { "patchline" : { - "destination" : [ "obj-37", 0 ], - "order" : 1, + "destination" : [ "obj-45", 0 ], "source" : [ "obj-9", 0 ] } } -, { - "patchline" : { - "destination" : [ "obj-38", 1 ], - "order" : 0, - "source" : [ "obj-9", 0 ] + ], + "parameters" : { + "obj-46" : [ "Gain", "Gain", 0 ], + "parameterbanks" : { + "0" : { + "index" : 0, + "name" : "", + "parameters" : [ "-", "-", "-", "-", "-", "-", "-", "-" ] } } - ], - "dependency_cache" : [ { - "name" : "Harker-DS-TenOboeMultiphonics-M.wav", - "bootpath" : "~/Documents/Max 8/Packages/FluidCorpusManipulation/media", - "patcherrelativepath" : "../../../../../Documents/Max 8/Packages/FluidCorpusManipulation/media", - "type" : "WAVE", - "implicit" : 1 - } -, { - "name" : "Olencki-TenTromboneLongTones-M.wav", - "bootpath" : "~/Documents/Max 8/Packages/FluidCorpusManipulation/media", - "patcherrelativepath" : "../../../../../Documents/Max 8/Packages/FluidCorpusManipulation/media", - "type" : "WAVE", - "implicit" : 1 - } -, { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.mfcc~.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.list2buf.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.loudness~.mxo", - "type" : "iLaX" - } - ], +, + "inherited_shortname" : 1 + } +, "autosave" : 0, "styles" : [ { "name" : "max6box", "default" : { "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], - "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ], - "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ] + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] } , "parentstyle" : "", @@ -934,13 +983,13 @@ "name" : "max6message", "default" : { "bgfillcolor" : { - "type" : "gradient", + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], - "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], - "angle" : 270.0, "proportion" : 0.39, - "autogradient" : 0 + "type" : "gradient" } , "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] From 2fd69412fea9749fbeffae68b2825ec74a1df4f8 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 14:11:08 +0100 Subject: [PATCH 2/6] added process steps to classification tutorial --- examples/tutorials/classification.maxpat | 333 ++++++++++++++++++++--- 1 file changed, 292 insertions(+), 41 deletions(-) diff --git a/examples/tutorials/classification.maxpat b/examples/tutorials/classification.maxpat index 081355cd..f2bb3790 100644 --- a/examples/tutorials/classification.maxpat +++ b/examples/tutorials/classification.maxpat @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 79.0, 94.0, 1061.0, 694.0 ], + "rect" : [ 234.0, 87.0, 1061.0, 694.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,6 +39,206 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-59", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 698.309066623449326, 217.12477120757103, 226.786815941333771, 52.0 ], + "text" : "switch to making predictions and play the different sounds to see the results" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-60", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 927.095882564783096, 226.377644866704941, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "6", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-57", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 690.263089746236801, 352.473682999610901, 226.786815941333771, 52.0 ], + "text" : "click to teach mlpclassifier, repeat to get as close to zero error as possible" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-58", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 921.844040811061859, 365.025407195091248, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "5", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-55", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 213.906431049108505, 352.473682999610901, 226.644256412982941, 64.0 ], + "text" : "click multiple times to add examples ensuring you don't click during silence. Repeat steps 2 to 4 for the other sound." + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-56", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 442.550687462091446, 374.473682999610901, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "4", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-52", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 297.728559255599976, 423.96546995639801, 131.963406026363373, 52.0 ], + "text" : "select the sound currently being played" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-53", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 431.691965281963348, 433.572774410247803, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "3", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-49", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 806.015305578708649, 92.0, 97.157894134521484, 24.0 ], + "text" : "play a sound" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-51", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 905.022808074951172, 94.0, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 0, + "id" : "obj-31", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 16.0, 615.560148000717163, 58.157894134521484, 39.0 ], + "text" : "audio on" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-35", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 76.157894134521484, 631.289474964141846, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { "box" : { "id" : "obj-46", "lastchannelcount" : 0, @@ -83,7 +283,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 121.160053968429565, 511.385390639305115, 31.0, 22.0 ], + "patching_rect" : [ 112.228559255599976, 477.96546995639801, 31.0, 22.0 ], "text" : "t s s" } @@ -96,7 +296,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 638.015305578708649, 226.377644866704941, 238.333333194255829, 36.0 ], + "patching_rect" : [ 638.015305578708649, 273.965023547410965, 238.333333194255829, 36.0 ], "text" : "-Adding examples to dataset & labelset\n-Making predictions", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -109,7 +309,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 621.696727275848389, 195.81211119890213, 70.0, 22.0 ], + "patching_rect" : [ 621.696727275848389, 243.399489879608154, 70.0, 22.0 ], "text" : "loadmess 0" } @@ -124,7 +324,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 621.696727275848389, 226.377644866704941, 254.0, 34.0 ], + "patching_rect" : [ 621.696727275848389, 273.965023547410965, 254.0, 34.0 ], "size" : 2, "value" : 1, "varname" : "radiogroup" @@ -186,7 +386,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 684.015305578708649, 581.04132616519928, 120.0, 22.0 ], - "text" : "trombone" + "text" : "oboe" } } @@ -209,7 +409,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 684.015305578708649, 548.522504329681396, 120.0, 22.0 ], - "text" : "0.000958" + "text" : "0.001205" } } @@ -339,7 +539,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 366.252282679080963, 575.414516866207123, 35.0, 22.0 ], + "patching_rect" : [ 357.320787966251373, 541.994596183300018, 35.0, 22.0 ], "text" : "clear" } @@ -351,7 +551,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 371.592093229293823, 511.385390639305115, 35.0, 22.0 ], + "patching_rect" : [ 362.660598516464233, 477.96546995639801, 35.0, 22.0 ], "text" : "oboe" } @@ -363,7 +563,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 306.660053968429565, 511.385390639305115, 59.0, 22.0 ], + "patching_rect" : [ 297.728559255599976, 477.96546995639801, 59.0, 22.0 ], "text" : "trombone" } @@ -375,7 +575,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 265.092093229293823, 545.414516866207123, 60.567960739135742, 22.0 ], + "patching_rect" : [ 256.160598516464233, 511.994596183300018, 60.567960739135742, 22.0 ], "text" : "join" } @@ -387,7 +587,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 265.092093229293823, 575.414516866207123, 87.0, 22.0 ], + "patching_rect" : [ 256.160598516464233, 541.994596183300018, 87.0, 22.0 ], "text" : "addlabel $1 $2" } @@ -399,7 +599,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 103.160053968429565, 235.681871116161346, 36.0, 22.0 ], + "patching_rect" : [ 107.415373086929321, 235.681871116161346, 36.0, 22.0 ], "text" : "defer" } @@ -411,7 +611,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 413.252282679080963, 575.414516866207123, 32.0, 22.0 ], + "patching_rect" : [ 404.320787966251373, 541.994596183300018, 32.0, 22.0 ], "text" : "print" } @@ -423,7 +623,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 121.160053968429565, 482.177988111972809, 181.0, 22.0 ], + "patching_rect" : [ 112.228559255599976, 448.758067429065704, 181.0, 22.0 ], "text" : "combine example- s @triggers 1" } @@ -435,7 +635,7 @@ "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], - "patching_rect" : [ 121.160053968429565, 446.037281632423401, 61.0, 22.0 ], + "patching_rect" : [ 112.228559255599976, 412.617360949516296, 61.0, 22.0 ], "text" : "counter" } @@ -446,7 +646,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 144.160053968429565, 414.037281632423401, 79.0, 20.0 ], + "patching_rect" : [ 135.228559255599976, 374.473682999610901, 79.0, 20.0 ], "text" : "Add example" } @@ -459,7 +659,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 121.160053968429565, 412.037281632423401, 24.0, 24.0 ] + "patching_rect" : [ 112.228559255599976, 372.473682999610901, 24.0, 24.0 ] } } @@ -470,7 +670,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 121.160053968429565, 575.414516866207123, 125.0, 22.0 ], + "patching_rect" : [ 112.228559255599976, 541.994596183300018, 125.0, 22.0 ], "text" : "addpoint $1 timbrebuf" } @@ -482,7 +682,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 140.660053968429565, 235.681871116161346, 167.0, 22.0 ], + "patching_rect" : [ 144.915373086929321, 235.681871116161346, 167.0, 22.0 ], "text" : "buffer~ timbrebuf @samps 13" } @@ -494,7 +694,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "buffer" ], - "patching_rect" : [ 103.160053968429565, 265.931871116161346, 204.5, 22.0 ], + "patching_rect" : [ 107.415373086929321, 265.931871116161346, 204.5, 22.0 ], "text" : "fluid.list2buf @destination timbrebuf" } @@ -508,7 +708,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 312.065648317337036, 235.681871116161346, 186.0, 76.0 ], + "patching_rect" : [ 316.320967435836792, 235.681871116161346, 168.0, 74.0 ], "setminmax" : [ -20.0, 20.0 ], "size" : 13 } @@ -521,7 +721,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 103.160053968429565, 196.431871116161346, 158.0, 22.0 ], + "patching_rect" : [ 107.415373086929321, 196.431871116161346, 158.0, 22.0 ], "text" : "fluid.mfcc~ 13 @startcoeff 1" } @@ -533,7 +733,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 265.092093229293823, 615.560148000717163, 140.0, 22.0 ], + "patching_rect" : [ 256.160598516464233, 582.140227317810059, 140.0, 22.0 ], "text" : "fluid.labelset~ instrlabels" } @@ -545,7 +745,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 121.160053968429565, 615.560148000717163, 140.0, 22.0 ], + "patching_rect" : [ 112.228559255599976, 582.140227317810059, 140.0, 22.0 ], "text" : "fluid.dataset~ timbredata" } @@ -556,7 +756,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 21.0, 590.560148000717163, 45.0, 45.0 ] + "patching_rect" : [ 21.0, 570.640227317810059, 45.0, 45.0 ] } } @@ -601,7 +801,7 @@ "originaltempo" : 120.0, "outlettype" : [ "signal", "signal", "signal", "", "dictionary" ], "parameter_enable" : 0, - "patching_rect" : [ 21.0, 33.5, 716.0, 141.0 ], + "patching_rect" : [ 21.0, 33.5, 783.015305578708649, 141.0 ], "pitchcorrection" : 0, "quality" : "basic", "timestretch" : [ 0 ] @@ -634,6 +834,57 @@ "text" : "Classification" } + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-23", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 499.081238865852356, 188.448977470397949, 450.494641542434692, 456.997163593769073 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-18", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 107.415373086929321, 188.448977470397949, 386.521265625953674, 133.91933274269104 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-11", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 104.85341739654541, 333.076198369264603, 389.083221316337585, 312.36994269490242 ], + "proportion" : 0.5 + } + } ], "lines" : [ { @@ -646,7 +897,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 130.660053968429565, 598.414516866207123, 130.660053968429565, 598.414516866207123 ], + "midpoints" : [ 121.728559255599976, 564.994596183300018, 121.728559255599976, 564.994596183300018 ], "source" : [ "obj-15", 0 ] } @@ -677,7 +928,7 @@ , { "patchline" : { "destination" : [ "obj-21", 1 ], - "midpoints" : [ 130.660053968429565, 477.177988111972809, 292.660053968429565, 477.177988111972809 ], + "midpoints" : [ 121.728559255599976, 443.758067429065704, 283.728559255599976, 443.758067429065704 ], "source" : [ "obj-20", 0 ] } @@ -692,7 +943,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 422.752282679080963, 605.414516866207123, 130.660053968429565, 605.414516866207123 ], + "midpoints" : [ 413.820787966251373, 571.994596183300018, 121.728559255599976, 571.994596183300018 ], "order" : 1, "source" : [ "obj-25", 0 ] } @@ -701,7 +952,7 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 422.752282679080963, 605.414516866207123, 274.592093229293823, 605.414516866207123 ], + "midpoints" : [ 413.820787966251373, 571.994596183300018, 265.660598516464233, 571.994596183300018 ], "order" : 0, "source" : [ "obj-25", 0 ] } @@ -717,7 +968,7 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 274.592093229293823, 598.414516866207123, 274.592093229293823, 598.414516866207123 ], + "midpoints" : [ 265.660598516464233, 564.994596183300018, 265.660598516464233, 564.994596183300018 ], "source" : [ "obj-29", 0 ] } @@ -725,7 +976,7 @@ , { "patchline" : { "destination" : [ "obj-29", 0 ], - "midpoints" : [ 274.592093229293823, 568.414516866207123, 274.592093229293823, 568.414516866207123 ], + "midpoints" : [ 265.660598516464233, 534.994596183300018, 265.660598516464233, 534.994596183300018 ], "source" : [ "obj-30", 0 ] } @@ -740,7 +991,7 @@ , { "patchline" : { "destination" : [ "obj-30", 1 ], - "midpoints" : [ 381.092093229293823, 541.414516866207123, 316.160053968429565, 541.414516866207123 ], + "midpoints" : [ 372.160598516464233, 507.994596183300018, 307.228559255599976, 507.994596183300018 ], "source" : [ "obj-34", 0 ] } @@ -784,7 +1035,7 @@ , { "patchline" : { "destination" : [ "obj-2", 0 ], - "midpoints" : [ 375.752282679080963, 605.414516866207123, 130.660053968429565, 605.414516866207123 ], + "midpoints" : [ 366.820787966251373, 571.994596183300018, 121.728559255599976, 571.994596183300018 ], "order" : 1, "source" : [ "obj-41", 0 ] } @@ -793,7 +1044,7 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], - "midpoints" : [ 375.752282679080963, 605.414516866207123, 274.592093229293823, 605.414516866207123 ], + "midpoints" : [ 366.820787966251373, 571.994596183300018, 265.660598516464233, 571.994596183300018 ], "order" : 0, "source" : [ "obj-41", 0 ] } @@ -802,7 +1053,7 @@ , { "patchline" : { "destination" : [ "obj-15", 0 ], - "midpoints" : [ 130.660053968429565, 544.414516866207123, 130.660053968429565, 544.414516866207123 ], + "midpoints" : [ 121.728559255599976, 510.994596183300018, 121.728559255599976, 510.994596183300018 ], "source" : [ "obj-42", 0 ] } @@ -810,7 +1061,7 @@ , { "patchline" : { "destination" : [ "obj-30", 0 ], - "midpoints" : [ 142.660053968429565, 538.899953752756119, 274.592093229293823, 538.899953752756119 ], + "midpoints" : [ 133.728559255599976, 505.480033069849014, 265.660598516464233, 505.480033069849014 ], "source" : [ "obj-42", 1 ] } @@ -833,7 +1084,7 @@ , { "patchline" : { "destination" : [ "obj-38", 1 ], - "midpoints" : [ 539.774396300315857, 312.049257606267929, 644.196727275848389, 312.049257606267929 ], + "midpoints" : [ 539.774396300315857, 313.861868217587471, 644.196727275848389, 313.861868217587471 ], "source" : [ "obj-45", 1 ] } @@ -882,7 +1133,7 @@ , { "patchline" : { "destination" : [ "obj-7", 0 ], - "midpoints" : [ 30.5, 184.480498671531677, 112.660053968429565, 184.480498671531677 ], + "midpoints" : [ 30.5, 184.480498671531677, 116.915373086929321, 184.480498671531677 ], "order" : 1, "source" : [ "obj-5", 0 ] } @@ -915,7 +1166,7 @@ , { "patchline" : { "destination" : [ "obj-10", 0 ], - "midpoints" : [ 112.660053968429565, 226.556871116161346, 321.565648317337036, 226.556871116161346 ], + "midpoints" : [ 116.915373086929321, 226.556871116161346, 325.820967435836792, 226.556871116161346 ], "order" : 0, "source" : [ "obj-7", 0 ] } From 943e0a3f1b118218647c1b972ad00ba72daa2d04 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 14:17:26 +0100 Subject: [PATCH 3/6] Regression tutorial tidied --- examples/tutorials/regression.maxpat | 220 ++++++++++++++++----------- 1 file changed, 129 insertions(+), 91 deletions(-) diff --git a/examples/tutorials/regression.maxpat b/examples/tutorials/regression.maxpat index cf56ab65..25ca3642 100644 --- a/examples/tutorials/regression.maxpat +++ b/examples/tutorials/regression.maxpat @@ -3,14 +3,14 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 1, + "minor" : 5, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 34.0, 87.0, 1021.0, 819.0 ], + "rect" : [ 85.0, 87.0, 945.0, 548.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,6 +39,16 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "id" : "obj-17", + "maxclass" : "ezdac~", + "numinlets" : 2, + "numoutlets" : 0, + "patching_rect" : [ 444.458317160606384, 412.834958897564206, 45.0, 45.0 ] + } + + } +, { "box" : { "id" : "obj-29", "maxclass" : "button", @@ -46,7 +56,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 74.0, 316.0, 24.0, 24.0 ] + "patching_rect" : [ 164.5, 204.109554171562195, 24.0, 24.0 ] } } @@ -57,20 +67,22 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 302.5, 61.0, 70.0, 22.0 ], + "patching_rect" : [ 20.5, 163.109554171562195, 70.0, 22.0 ], "text" : "loadmess 0" } } , { "box" : { + "fontsize" : 13.0, "id" : "obj-18", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 328.0, 91.0, 100.0, 33.0 ], - "text" : "selecting points\npredicting points" + "patching_rect" : [ 34.5, 195.942887504895566, 109.0, 36.0 ], + "text" : "-Selecting points\n-Predicting points", + "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } } @@ -81,7 +93,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 302.5, 141.0, 32.0, 22.0 ], + "patching_rect" : [ 20.5, 242.77622083822888, 163.0, 22.0 ], "text" : "gate" } @@ -96,7 +108,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 302.5, 91.0, 18.0, 34.0 ], + "patching_rect" : [ 20.5, 196.942887504895538, 123.0, 34.0 ], "size" : 2, "value" : 1 } @@ -109,7 +121,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "list" ], - "patching_rect" : [ 564.5, 166.0, 183.0, 22.0 ], + "patching_rect" : [ 444.458317160606384, 46.234553098678589, 183.0, 22.0 ], "text" : "fluid.buf2list @source paramsbuf" } @@ -117,12 +129,11 @@ , { "box" : { "id" : "obj-41", - "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 302.5, 379.0, 96.5, 35.0 ], + "patching_rect" : [ 36.5, 371.276220838228824, 131.0, 22.0 ], "text" : "predictpoint paramsbuf" } @@ -134,7 +145,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "bang", "" ], - "patching_rect" : [ 412.5, 352.0, 89.0, 22.0 ], + "patching_rect" : [ 444.458317160606384, 18.109554171562195, 89.0, 22.0 ], "text" : "sel predictpoint" } @@ -146,7 +157,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 302.5, 172.0, 163.0, 22.0 ], + "patching_rect" : [ 20.5, 276.609554171562195, 163.0, 22.0 ], "text" : "predictpoint xybuf paramsbuf" } @@ -158,7 +169,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 337.5, 207.0, 123.0, 22.0 ], + "patching_rect" : [ 191.5, 276.609554171562195, 123.0, 22.0 ], "text" : "fit xydata paramsdata" } @@ -170,7 +181,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 102.0, 509.0, 35.0, 22.0 ], + "patching_rect" : [ 549.624983668327332, 390.388292230897434, 35.0, 22.0 ], "text" : "clear" } @@ -182,7 +193,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 63.0, 509.0, 32.0, 22.0 ], + "patching_rect" : [ 510.624983668327332, 390.388292230897434, 32.0, 22.0 ], "text" : "print" } @@ -194,7 +205,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 141.0, 482.0, 103.0, 22.0 ], + "patching_rect" : [ 592.624983668327332, 390.388292230897434, 103.0, 22.0 ], "text" : "addpoint $1 xybuf" } @@ -206,7 +217,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 282.0, 482.0, 131.0, 22.0 ], + "patching_rect" : [ 719.041650891304016, 390.388292230897434, 131.0, 22.0 ], "text" : "addpoint $1 paramsbuf" } @@ -218,7 +229,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 282.0, 540.0, 147.0, 22.0 ], + "patching_rect" : [ 719.041650891304016, 424.33495889756415, 147.0, 22.0 ], "text" : "fluid.dataset~ paramsdata" } @@ -230,7 +241,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 141.0, 540.0, 119.0, 22.0 ], + "patching_rect" : [ 592.624983668327332, 424.33495889756415, 119.0, 22.0 ], "text" : "fluid.dataset~ xydata" } @@ -242,7 +253,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 141.0, 439.0, 162.0, 22.0 ], + "patching_rect" : [ 592.624983668327332, 356.441625564230833, 162.0, 22.0 ], "text" : "combine point- s @triggers 1" } @@ -254,7 +265,7 @@ "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], - "patching_rect" : [ 141.0, 405.0, 61.0, 22.0 ], + "patching_rect" : [ 592.624983668327332, 322.494958897564231, 61.0, 22.0 ], "text" : "counter" } @@ -265,7 +276,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 169.5, 372.0, 94.0, 20.0 ], + "patching_rect" : [ 621.124983668327332, 288.859403342008648, 94.0, 20.0 ], "text" : "add in / out pair" } @@ -278,7 +289,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 141.0, 370.0, 24.0, 24.0 ] + "patching_rect" : [ 592.624983668327332, 286.859403342008648, 24.0, 24.0 ] } } @@ -289,7 +300,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 738.0, 371.0, 174.0, 22.0 ], + "patching_rect" : [ 597.958317160606384, 216.461825966835079, 174.0, 22.0 ], "text" : "buffer~ paramsbuf @samps 10" } @@ -301,7 +312,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "buffer" ], - "patching_rect" : [ 719.0, 339.0, 205.0, 22.0 ], + "patching_rect" : [ 597.958317160606384, 181.461825966835079, 205.0, 22.0 ], "text" : "fluid.list2buf @destination paramsbuf" } @@ -313,7 +324,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 74.0, 255.0, 91.0, 22.0 ], + "patching_rect" : [ 164.5, 143.109554171562195, 91.0, 22.0 ], "text" : "vexpr $i1 / 127." } @@ -325,7 +336,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 74.0, 224.0, 29.5, 22.0 ], + "patching_rect" : [ 164.5, 112.109554171562195, 86.0, 22.0 ], "text" : "join" } @@ -337,7 +348,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 141.0, 573.0, 139.0, 22.0 ], + "patching_rect" : [ 202.5, 204.109554171562195, 139.0, 22.0 ], "text" : "buffer~ xybuf @samps 2" } @@ -349,21 +360,10 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "buffer" ], - "patching_rect" : [ 74.0, 286.0, 177.0, 22.0 ], + "patching_rect" : [ 164.5, 174.109554171562195, 177.0, 22.0 ], "text" : "fluid.list2buf @destination xybuf" } - } -, { - "box" : { - "id" : "obj-17", - "local" : 1, - "maxclass" : "ezdac~", - "numinlets" : 2, - "numoutlets" : 0, - "patching_rect" : [ 564.5, 573.0, 45.0, 45.0 ] - } - } , { "box" : { @@ -374,7 +374,7 @@ "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, - "patching_rect" : [ 564.5, 416.0, 48.0, 136.0 ], + "patching_rect" : [ 444.458317160606384, 249.893937945365963, 48.0, 136.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "live.gain~", @@ -398,7 +398,7 @@ "numinlets" : 1, "numoutlets" : 10, "outlettype" : [ "float", "float", "float", "float", "float", "float", "float", "float", "float", "float" ], - "patching_rect" : [ 564.5, 339.0, 132.0, 22.0 ], + "patching_rect" : [ 444.458317160606384, 181.461825966835079, 132.0, 22.0 ], "text" : "unpack f f f f f f f f f f" } @@ -406,6 +406,7 @@ , { "box" : { "candycane" : 10, + "contdata" : 1, "ghostbar" : 100, "id" : "obj-14", "maxclass" : "multislider", @@ -413,7 +414,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 564.5, 201.0, 176.0, 125.0 ], + "patching_rect" : [ 444.458317160606384, 77.234553098678646, 183.0, 91.0 ], "setminmax" : [ 0.0, 1.0 ], "size" : 10 } @@ -431,8 +432,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 1, + "minor" : 5, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } @@ -2046,8 +2047,8 @@ "name" : "max6box", "default" : { "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], - "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ], - "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ] + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] } , "parentstyle" : "", @@ -2066,13 +2067,13 @@ "name" : "max6message", "default" : { "bgfillcolor" : { - "type" : "gradient", + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], - "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], - "angle" : 270.0, "proportion" : 0.39, - "autogradient" : 0 + "type" : "gradient" } , "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] @@ -2093,7 +2094,7 @@ ] } , - "patching_rect" : [ 564.5, 374.0, 132.0, 22.0 ], + "patching_rect" : [ 444.458317160606384, 216.461825966835079, 132.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -2113,19 +2114,20 @@ "numoutlets" : 2, "outlettype" : [ "int", "int" ], "parameter_enable" : 0, - "patching_rect" : [ 74.0, 113.0, 100.0, 100.0 ] + "patching_rect" : [ 164.5, 18.109554171562195, 86.0, 83.0 ] } } , { "box" : { + "color" : [ 1.0, 0.709803921568627, 0.196078431372549, 1.0 ], "id" : "obj-4", - "linecount" : 7, + "linecount" : 3, "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 302.5, 238.0, 148.5, 102.0 ], + "patching_rect" : [ 20.5, 310.442887504895509, 294.0, 49.0 ], "text" : "fluid.mlpregressor~ @hiddenlayers 3 @activation 1 @outputactivation 1 @batchsize 1 @maxiter 10000 @learnrate 0.1 @validation 0" } @@ -2138,10 +2140,61 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 74.0, 75.0, 100.0, 28.0 ], + "patching_rect" : [ 20.5, 18.109554171562195, 100.0, 28.0 ], "text" : "Regression" } + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-28", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 11.395889401435852, 6.901224851608276, 396.208221197128296, 405.487067379289158 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-25", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 430.416653394699097, 6.901224851608276, 458.874885320663452, 240.992713093757686 ], + "proportion" : 0.5 + } + + } +, { + "box" : { + "angle" : 270.0, + "border" : 2, + "bordercolor" : [ 0.247058823529412, 0.635294117647059, 0.686274509803922, 1.0 ], + "grad1" : [ 0.301961, 0.301961, 0.301961, 0.0 ], + "grad2" : [ 0.2, 0.2, 0.2, 0.0 ], + "id" : "obj-24", + "maxclass" : "panel", + "mode" : 1, + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 510.624983668327332, 249.893937945365963, 378.666555047035217, 208.203280001878738 ], + "proportion" : 0.5 + } + } ], "lines" : [ { @@ -2168,6 +2221,7 @@ , { "patchline" : { "destination" : [ "obj-11", 0 ], + "midpoints" : [ 453.958317160606384, 174.348189532756862, 607.458317160606384, 174.348189532756862 ], "order" : 0, "source" : [ "obj-14", 0 ] } @@ -2254,6 +2308,7 @@ , { "patchline" : { "destination" : [ "obj-17", 1 ], + "midpoints" : [ 461.208317160606384, 395.071412622398839, 479.958317160606384, 395.071412622398839 ], "source" : [ "obj-16", 1 ] } @@ -2268,6 +2323,7 @@ , { "patchline" : { "destination" : [ "obj-21", 1 ], + "midpoints" : [ 602.124983668327332, 349.968292230897475, 745.124983668327332, 349.968292230897475 ], "source" : [ "obj-20", 0 ] } @@ -2275,6 +2331,7 @@ , { "patchline" : { "destination" : [ "obj-26", 0 ], + "midpoints" : [ 602.124983668327332, 384.859403342008648, 728.541650891304016, 384.859403342008648 ], "order" : 0, "source" : [ "obj-21", 0 ] } @@ -2305,7 +2362,6 @@ , { "patchline" : { "destination" : [ "obj-9", 1 ], - "midpoints" : [ 83.5, 349.0, 288.0, 349.0, 288.0, 135.0, 325.0, 135.0 ], "source" : [ "obj-29", 0 ] } @@ -2313,7 +2369,7 @@ , { "patchline" : { "destination" : [ "obj-22", 0 ], - "midpoints" : [ 72.5, 535.0, 138.0, 535.0, 138.0, 537.0, 150.5, 537.0 ], + "midpoints" : [ 520.124983668327332, 417.861625564230792, 602.124983668327332, 417.861625564230792 ], "order" : 1, "source" : [ "obj-30", 0 ] } @@ -2322,7 +2378,7 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "midpoints" : [ 72.5, 537.0, 138.0, 537.0, 138.0, 534.0, 291.5, 534.0 ], + "midpoints" : [ 520.124983668327332, 417.861625564230792, 728.541650891304016, 417.861625564230792 ], "order" : 0, "source" : [ "obj-30", 0 ] } @@ -2331,7 +2387,7 @@ , { "patchline" : { "destination" : [ "obj-22", 0 ], - "midpoints" : [ 111.5, 534.0, 150.5, 534.0 ], + "midpoints" : [ 559.124983668327332, 417.861625564230792, 602.124983668327332, 417.861625564230792 ], "order" : 1, "source" : [ "obj-32", 0 ] } @@ -2340,7 +2396,7 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "midpoints" : [ 111.5, 537.0, 279.0, 537.0, 279.0, 537.0, 291.5, 537.0 ], + "midpoints" : [ 559.124983668327332, 417.861625564230792, 728.541650891304016, 417.861625564230792 ], "order" : 0, "source" : [ "obj-32", 0 ] } @@ -2349,6 +2405,7 @@ , { "patchline" : { "destination" : [ "obj-4", 0 ], + "midpoints" : [ 201.0, 303.109554171562195, 30.0, 303.109554171562195 ], "source" : [ "obj-34", 0 ] } @@ -2363,7 +2420,6 @@ , { "patchline" : { "destination" : [ "obj-42", 0 ], - "midpoints" : [ 422.0, 384.0, 549.0, 384.0, 549.0, 162.0, 574.0, 162.0 ], "source" : [ "obj-39", 0 ] } @@ -2371,6 +2427,7 @@ , { "patchline" : { "destination" : [ "obj-39", 0 ], + "midpoints" : [ 30.0, 399.651219685872377, 416.979151904582977, 399.651219685872377, 416.979151904582977, 7.109554171562195, 453.958317160606384, 7.109554171562195 ], "order" : 0, "source" : [ "obj-4", 0 ] } @@ -2379,6 +2436,7 @@ , { "patchline" : { "destination" : [ "obj-41", 1 ], + "midpoints" : [ 30.0, 366.109554171562195, 158.0, 366.109554171562195 ], "order" : 1, "source" : [ "obj-4", 0 ] } @@ -2436,6 +2494,7 @@ , { "patchline" : { "destination" : [ "obj-16", 1 ], + "midpoints" : [ 566.958317160606384, 243.677881956100521, 482.958317160606384, 243.677881956100521 ], "source" : [ "obj-94", 1 ] } @@ -2457,34 +2516,13 @@ "inherited_shortname" : 1 } , - "dependency_cache" : [ { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.loudness~.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.list2buf.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.buf2list.mxo", - "type" : "iLaX" - } - ], "autosave" : 0, "styles" : [ { "name" : "max6box", "default" : { "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], - "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ], - "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ] + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] } , "parentstyle" : "", @@ -2503,13 +2541,13 @@ "name" : "max6message", "default" : { "bgfillcolor" : { - "type" : "gradient", + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], - "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], - "angle" : 270.0, "proportion" : 0.39, - "autogradient" : 0 + "type" : "gradient" } , "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] From d275242162c41fefd9047fb6cebb5aae02d70d99 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 14:34:34 +0100 Subject: [PATCH 4/6] Added process steps to regression tutorial --- examples/tutorials/regression.maxpat | 292 ++++++++++++++++++++++++--- 1 file changed, 265 insertions(+), 27 deletions(-) diff --git a/examples/tutorials/regression.maxpat b/examples/tutorials/regression.maxpat index 25ca3642..b4c94e8f 100644 --- a/examples/tutorials/regression.maxpat +++ b/examples/tutorials/regression.maxpat @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 85.0, 87.0, 945.0, 548.0 ], + "rect" : [ 56.0, 87.0, 920.0, 499.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,6 +39,244 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "bubble" : 1, + "id" : "obj-49", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 255.5, 57.109554171562195, 111.157894134521484, 64.0 ], + "presentation_linecount" : 4, + "text" : "scroll across the 2D plane to morph between synth presets" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-50", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 370.5, 77.234553098678646, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "7", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-48", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 129.5, 123.109554171562195, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "6", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-47", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 20.5, 107.109554171562195, 103.786815941333771, 52.0 ], + "text" : "switch to predicting points" + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 2, + "id" : "obj-57", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 191.5, 235.834958897564263, 157.786815941333771, 66.0 ], + "presentation_linecount" : 2, + "text" : "click to teach mlpregressor, repeat to get as close to zero error as possible" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-46", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 353.0, 258.834958897564263, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "5", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-43", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 629.379370093345642, 77.234553098678646, 148.157894134521484, 37.0 ], + "presentation_linecount" : 4, + "text" : "adjust parameters for the chaotic synth" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-44", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 782.541650891304016, 85.734553098678646, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "3", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-37", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 651.124983668327332, 273.359403342008648, 195.157894134521484, 51.0 ], + "presentation_linecount" : 11, + "text" : "click to add the settings to the datasets. repeat steps 2 to 4 to add more data to the datasets" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-40", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 850.291538715362549, 288.859403342008648, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "4", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-33", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 255.5, 18.109554171562195, 111.157894134521484, 37.0 ], + "presentation_linecount" : 4, + "text" : "choose a point of the 2D plane" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-36", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 370.5, 26.609554171562195, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "bubbleside" : 3, + "id" : "obj-31", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 362.3004230260849, 433.834958897564263, 80.157894134521484, 24.0 ], + "text" : "audio on" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-35", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 340.3004230260849, 435.834958897564263, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { "box" : { "id" : "obj-17", "maxclass" : "ezdac~", @@ -110,7 +348,7 @@ "parameter_enable" : 0, "patching_rect" : [ 20.5, 196.942887504895538, 123.0, 34.0 ], "size" : 2, - "value" : 1 + "value" : 0 } } @@ -133,7 +371,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 36.5, 371.276220838228824, 131.0, 22.0 ], + "patching_rect" : [ 36.5, 397.026070008675219, 131.0, 22.0 ], "text" : "predictpoint paramsbuf" } @@ -157,7 +395,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 20.5, 276.609554171562195, 163.0, 22.0 ], + "patching_rect" : [ 20.5, 302.359403342008591, 163.0, 22.0 ], "text" : "predictpoint xybuf paramsbuf" } @@ -169,7 +407,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 191.5, 276.609554171562195, 123.0, 22.0 ], + "patching_rect" : [ 191.5, 302.359403342008591, 123.0, 22.0 ], "text" : "fit xydata paramsdata" } @@ -181,7 +419,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 549.624983668327332, 390.388292230897434, 35.0, 22.0 ], + "patching_rect" : [ 830.291538715362549, 390.388292230897434, 35.0, 22.0 ], "text" : "clear" } @@ -193,7 +431,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 510.624983668327332, 390.388292230897434, 32.0, 22.0 ], + "patching_rect" : [ 791.291538715362549, 390.388292230897434, 32.0, 22.0 ], "text" : "print" } @@ -205,7 +443,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 592.624983668327332, 390.388292230897434, 103.0, 22.0 ], + "patching_rect" : [ 526.624983668327332, 390.388292230897434, 103.0, 22.0 ], "text" : "addpoint $1 xybuf" } @@ -217,7 +455,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 719.041650891304016, 390.388292230897434, 131.0, 22.0 ], + "patching_rect" : [ 653.041650891304016, 390.388292230897434, 131.0, 22.0 ], "text" : "addpoint $1 paramsbuf" } @@ -229,7 +467,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 719.041650891304016, 424.33495889756415, 147.0, 22.0 ], + "patching_rect" : [ 653.041650891304016, 424.33495889756415, 147.0, 22.0 ], "text" : "fluid.dataset~ paramsdata" } @@ -241,7 +479,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 592.624983668327332, 424.33495889756415, 119.0, 22.0 ], + "patching_rect" : [ 526.624983668327332, 424.33495889756415, 119.0, 22.0 ], "text" : "fluid.dataset~ xydata" } @@ -253,7 +491,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 592.624983668327332, 356.441625564230833, 162.0, 22.0 ], + "patching_rect" : [ 526.624983668327332, 356.441625564230833, 162.0, 22.0 ], "text" : "combine point- s @triggers 1" } @@ -265,7 +503,7 @@ "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], - "patching_rect" : [ 592.624983668327332, 322.494958897564231, 61.0, 22.0 ], + "patching_rect" : [ 526.624983668327332, 322.494958897564231, 61.0, 22.0 ], "text" : "counter" } @@ -276,8 +514,8 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 621.124983668327332, 288.859403342008648, 94.0, 20.0 ], - "text" : "add in / out pair" + "patching_rect" : [ 555.124983668327332, 288.859403342008648, 94.0, 20.0 ], + "text" : "Add in / out pair" } } @@ -289,7 +527,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 592.624983668327332, 286.859403342008648, 24.0, 24.0 ] + "patching_rect" : [ 526.624983668327332, 286.859403342008648, 24.0, 24.0 ] } } @@ -2127,7 +2365,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 20.5, 310.442887504895509, 294.0, 49.0 ], + "patching_rect" : [ 20.5, 336.192736675341905, 294.0, 49.0 ], "text" : "fluid.mlpregressor~ @hiddenlayers 3 @activation 1 @outputactivation 1 @batchsize 1 @maxiter 10000 @learnrate 0.1 @validation 0" } @@ -2157,7 +2395,7 @@ "mode" : 1, "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 11.395889401435852, 6.901224851608276, 396.208221197128296, 405.487067379289158 ], + "patching_rect" : [ 11.395889401435852, 6.901224851608276, 396.208221197128296, 422.487067379289158 ], "proportion" : 0.5 } @@ -2323,7 +2561,7 @@ , { "patchline" : { "destination" : [ "obj-21", 1 ], - "midpoints" : [ 602.124983668327332, 349.968292230897475, 745.124983668327332, 349.968292230897475 ], + "midpoints" : [ 536.124983668327332, 349.968292230897475, 679.124983668327332, 349.968292230897475 ], "source" : [ "obj-20", 0 ] } @@ -2331,7 +2569,7 @@ , { "patchline" : { "destination" : [ "obj-26", 0 ], - "midpoints" : [ 602.124983668327332, 384.859403342008648, 728.541650891304016, 384.859403342008648 ], + "midpoints" : [ 536.124983668327332, 384.859403342008648, 662.541650891304016, 384.859403342008648 ], "order" : 0, "source" : [ "obj-21", 0 ] } @@ -2369,7 +2607,7 @@ , { "patchline" : { "destination" : [ "obj-22", 0 ], - "midpoints" : [ 520.124983668327332, 417.861625564230792, 602.124983668327332, 417.861625564230792 ], + "midpoints" : [ 800.791538715362549, 417.861625564230792, 536.124983668327332, 417.861625564230792 ], "order" : 1, "source" : [ "obj-30", 0 ] } @@ -2378,7 +2616,7 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "midpoints" : [ 520.124983668327332, 417.861625564230792, 728.541650891304016, 417.861625564230792 ], + "midpoints" : [ 800.791538715362549, 417.861625564230792, 662.541650891304016, 417.861625564230792 ], "order" : 0, "source" : [ "obj-30", 0 ] } @@ -2387,7 +2625,7 @@ , { "patchline" : { "destination" : [ "obj-22", 0 ], - "midpoints" : [ 559.124983668327332, 417.861625564230792, 602.124983668327332, 417.861625564230792 ], + "midpoints" : [ 839.791538715362549, 417.861625564230792, 536.124983668327332, 417.861625564230792 ], "order" : 1, "source" : [ "obj-32", 0 ] } @@ -2396,7 +2634,7 @@ , { "patchline" : { "destination" : [ "obj-23", 0 ], - "midpoints" : [ 559.124983668327332, 417.861625564230792, 728.541650891304016, 417.861625564230792 ], + "midpoints" : [ 839.791538715362549, 417.861625564230792, 662.541650891304016, 417.861625564230792 ], "order" : 0, "source" : [ "obj-32", 0 ] } @@ -2405,7 +2643,7 @@ , { "patchline" : { "destination" : [ "obj-4", 0 ], - "midpoints" : [ 201.0, 303.109554171562195, 30.0, 303.109554171562195 ], + "midpoints" : [ 201.0, 328.859403342008591, 30.0, 328.859403342008591 ], "source" : [ "obj-34", 0 ] } @@ -2427,7 +2665,7 @@ , { "patchline" : { "destination" : [ "obj-39", 0 ], - "midpoints" : [ 30.0, 399.651219685872377, 416.979151904582977, 399.651219685872377, 416.979151904582977, 7.109554171562195, 453.958317160606384, 7.109554171562195 ], + "midpoints" : [ 30.0, 422.651219685872377, 416.979151904582977, 422.651219685872377, 416.979151904582977, 7.109554171562195, 453.958317160606384, 7.109554171562195 ], "order" : 0, "source" : [ "obj-4", 0 ] } @@ -2436,7 +2674,7 @@ , { "patchline" : { "destination" : [ "obj-41", 1 ], - "midpoints" : [ 30.0, 366.109554171562195, 158.0, 366.109554171562195 ], + "midpoints" : [ 30.0, 391.859403342008591, 158.0, 391.859403342008591 ], "order" : 1, "source" : [ "obj-4", 0 ] } From 2a2d87e377a953eab3bb5f0438cdf3b419febb57 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 15:49:23 +0100 Subject: [PATCH 5/6] Zl fix and tidy --- examples/tutorials/corpus-explorer.maxpat | 126 ++++++++++++---------- 1 file changed, 69 insertions(+), 57 deletions(-) diff --git a/examples/tutorials/corpus-explorer.maxpat b/examples/tutorials/corpus-explorer.maxpat index 34ad45dc..d105aa07 100644 --- a/examples/tutorials/corpus-explorer.maxpat +++ b/examples/tutorials/corpus-explorer.maxpat @@ -4,13 +4,13 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 35.0, 88.0, 1077.0, 777.0 ], + "rect" : [ 252.0, 87.0, 763.0, 725.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -39,13 +39,37 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "fontname" : "Lato", + "fontsize" : 18.0, + "id" : "obj-18", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 211.0, 6.0, 136.0, 28.0 ], + "presentation_linecount" : 2, + "text" : "Corpus Explorer" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "ezdac~", + "numinlets" : 2, + "numoutlets" : 0, + "patching_rect" : [ 8.999999666666668, 662.0, 45.0, 45.0 ] + } + + } +, { "box" : { "id" : "obj-5", "maxclass" : "dropfile", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 127.0, 25.0, 161.0, 57.0 ] + "patching_rect" : [ 211.0, 515.0, 161.0, 57.0 ] } } @@ -57,7 +81,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 293.0, 28.0, 143.0, 51.0 ], + "patching_rect" : [ 374.0, 520.0, 140.0, 51.0 ], "text" : "Drag a folder containing valid AIFF or WAV files here" } @@ -69,7 +93,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "dictionary" ], - "patching_rect" : [ 127.0, 148.0, 229.0, 22.0 ], + "patching_rect" : [ 211.0, 616.488372093023372, 229.0, 22.0 ], "text" : "fluid.concataudiofiles @destination sound", "varname" : "fluid.concataudiofiles" } @@ -82,7 +106,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 127.0, 108.0, 94.0, 22.0 ], + "patching_rect" : [ 211.0, 584.395348837209326, 94.0, 22.0 ], "text" : "fluid.audiofilesin" } @@ -99,13 +123,13 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 640.0, 480.0 ], + "rect" : [ 560.0, 326.0, 640.0, 480.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -212,8 +236,8 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "buffer" ], - "patching_rect" : [ 50.0, 100.0, 179.0, 22.0 ], - "text" : "fluid.list2buf @destination query" + "patching_rect" : [ 50.0, 100.0, 209.0, 22.0 ], + "text" : "fluid.list2buf 2048 @destination query" } } @@ -318,7 +342,7 @@ ] } , - "patching_rect" : [ 36.999999666666668, 596.0, 49.0, 22.0 ], + "patching_rect" : [ 8.999999666666668, 440.0, 49.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -342,7 +366,7 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } @@ -469,7 +493,7 @@ ] } , - "patching_rect" : [ 36.999999666666668, 344.0, 196.0, 22.0 ], + "patching_rect" : [ 8.999999666666668, 190.380952380952294, 196.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -493,7 +517,7 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } @@ -601,7 +625,7 @@ ] } , - "patching_rect" : [ 36.999999666666668, 302.0, 73.0, 22.0 ], + "patching_rect" : [ 8.999999666666668, 153.461471861471864, 73.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -625,13 +649,13 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 131.0, 709.0, 640.0, 480.0 ], + "rect" : [ 451.0, 220.0, 640.0, 480.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -814,7 +838,7 @@ ] } , - "patching_rect" : [ 37.0, 261.0, 139.0, 22.0 ], + "patching_rect" : [ 9.0, 116.54199134199132, 139.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -838,13 +862,13 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 35.0, 88.0, 838.0, 777.0 ], + "rect" : [ 435.0, 87.0, 838.0, 715.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -1140,8 +1164,8 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 76.0, 202.0, 67.0, 22.0 ], - "text" : "zl.stream 2" + "patching_rect" : [ 76.0, 202.0, 165.0, 22.0 ], + "text" : "zl.stream 2 @zlmaxsize 2048" } } @@ -1349,7 +1373,7 @@ ] } , - "patching_rect" : [ 37.0, 216.0, 62.0, 22.0 ], + "patching_rect" : [ 9.0, 79.622510822510833, 62.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1374,7 +1398,7 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } @@ -1415,8 +1439,8 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 15.0, 53.0, 60.0, 22.0 ], - "text" : "zl.change" + "patching_rect" : [ 15.0, 53.0, 158.0, 22.0 ], + "text" : "zl.change @zlmaxsize 2048" } } @@ -1677,7 +1701,7 @@ , { "patchline" : { "destination" : [ "obj-1", 0 ], - "midpoints" : [ 24.5, 493.0, 24.5, 493.0 ], + "midpoints" : [ 24.5, 518.0, 24.5, 518.0 ], "source" : [ "obj-2", 0 ] } @@ -1758,7 +1782,7 @@ ] } , - "patching_rect" : [ 289.0, 551.0, 66.0, 22.0 ], + "patching_rect" : [ 8.999999666666668, 476.0, 66.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1782,7 +1806,7 @@ "appversion" : { "major" : 8, "minor" : 5, - "revision" : 0, + "revision" : 5, "architecture" : "x64", "modernui" : 1 } @@ -1883,8 +1907,8 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 16.0, 82.0, 454.0, 22.0 ], - "text" : "fluid.bufonsetslice~ @metric 9 @threshold 0.5 @source sound @indices slicepoints" + "patching_rect" : [ 16.0, 82.0, 460.0, 22.0 ], + "text" : "fluid.bufonsetslice~ @metric 9 @threshold 0.01 @source sound @indices slicepoints" } } @@ -1969,7 +1993,7 @@ ] } , - "patching_rect" : [ 37.0, 173.0, 52.0, 22.0 ], + "patching_rect" : [ 9.0, 42.703030303030289, 52.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1990,7 +2014,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 36.999999666666668, 387.0, 192.0, 192.0 ] + "patching_rect" : [ 8.999999666666668, 231.0, 192.0, 192.0 ] } } @@ -2003,18 +2027,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 193.0, 216.0, 326.0, 37.0 ] - } - - } -, { - "box" : { - "id" : "obj-55", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 0, - "patching_rect" : [ 289.0, 737.0, 55.0, 22.0 ], - "text" : "dac~ 1 2" + "patching_rect" : [ 153.0, 79.622510822510833, 330.0, 58.919480519480487 ] } } @@ -2027,13 +2040,13 @@ "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, - "patching_rect" : [ 289.0, 584.0, 48.0, 136.0 ], + "patching_rect" : [ 8.999999666666668, 509.0, 48.0, 136.0 ], "saved_attribute_attributes" : { "valueof" : { - "parameter_longname" : "live.gain~", + "parameter_longname" : "Gain", "parameter_mmax" : 6.0, "parameter_mmin" : -70.0, - "parameter_shortname" : "live.gain~", + "parameter_shortname" : "Gain", "parameter_type" : 0, "parameter_unitstyle" : 4 } @@ -2052,7 +2065,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 37.0, 25.0, 24.0, 24.0 ] + "patching_rect" : [ 9.0, 4.0, 24.0, 24.0 ] } } @@ -2063,7 +2076,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 360.0, 148.0, 189.0, 22.0 ], + "patching_rect" : [ 211.0, 648.581395348837304, 189.0, 22.0 ], "text" : "buffer~ sound Nicol-LoopE-M.wav" } @@ -2114,7 +2127,6 @@ , { "patchline" : { "destination" : [ "obj-11", 0 ], - "midpoints" : [ 46.499999666666668, 629.0, 275.0, 629.0, 275.0, 545.0, 298.5, 545.0 ], "source" : [ "obj-23", 0 ] } @@ -2122,7 +2134,7 @@ , { "patchline" : { "destination" : [ "obj-43", 0 ], - "midpoints" : [ 76.499999666666668, 629.0, 236.0, 629.0, 236.0, 379.0, 46.499999666666668, 379.0 ], + "midpoints" : [ 48.499999666666668, 469.0, 208.0, 469.0, 208.0, 223.0, 18.499999666666668, 223.0 ], "source" : [ "obj-23", 1 ] } @@ -2137,6 +2149,7 @@ , { "patchline" : { "destination" : [ "obj-67", 0 ], + "midpoints" : [ 51.5, 71.662770562770561, 162.5, 71.662770562770561 ], "source" : [ "obj-3", 1 ] } @@ -2164,8 +2177,8 @@ } , { "patchline" : { - "destination" : [ "obj-55", 1 ], - "midpoints" : [ 298.5, 734.0, 334.5, 734.0 ], + "destination" : [ "obj-7", 1 ], + "midpoints" : [ 18.499999666666668, 653.0, 44.499999666666668, 653.0 ], "order" : 0, "source" : [ "obj-54", 0 ] } @@ -2173,8 +2186,7 @@ } , { "patchline" : { - "destination" : [ "obj-55", 0 ], - "midpoints" : [ 298.5, 722.0, 298.5, 722.0 ], + "destination" : [ "obj-7", 0 ], "order" : 1, "source" : [ "obj-54", 0 ] } @@ -2182,7 +2194,7 @@ } ], "parameters" : { - "obj-54" : [ "live.gain~", "live.gain~", 0 ], + "obj-54" : [ "Gain", "Gain", 0 ], "parameterbanks" : { } From a890aa5f32af0529f8e68269306ebae232ec3b47 Mon Sep 17 00:00:00 2001 From: MattS6464 Date: Tue, 8 Aug 2023 15:50:45 +0100 Subject: [PATCH 6/6] Added process steps to corpus explorer --- examples/tutorials/corpus-explorer.maxpat | 160 +++++++++++++++++++--- 1 file changed, 139 insertions(+), 21 deletions(-) diff --git a/examples/tutorials/corpus-explorer.maxpat b/examples/tutorials/corpus-explorer.maxpat index d105aa07..ed582050 100644 --- a/examples/tutorials/corpus-explorer.maxpat +++ b/examples/tutorials/corpus-explorer.maxpat @@ -39,6 +39,124 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "bubble" : 1, + "id" : "obj-15", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 218.0, 304.0, 95.0, 51.0 ], + "presentation_linecount" : 3, + "text" : "click and drag around the plotter " + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-16", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 315.0, 319.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "4", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-10", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 42.0, 14.0, 80.157894134521484, 24.0 ], + "text" : "click here" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-12", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 124.458317160606384, 16.0, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "3", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-8", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 523.0, 545.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-31", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 64.3004230260849, 682.5, 80.157894134521484, 24.0 ], + "text" : "audio on" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-35", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 146.458317160606384, 684.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { "box" : { "fontname" : "Lato", "fontsize" : 18.0, @@ -46,7 +164,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 211.0, 6.0, 136.0, 28.0 ], + "patching_rect" : [ 218.0, 16.0, 136.0, 28.0 ], "presentation_linecount" : 2, "text" : "Corpus Explorer" } @@ -58,7 +176,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 8.999999666666668, 662.0, 45.0, 45.0 ] + "patching_rect" : [ 15.999999666666668, 672.0, 45.0, 45.0 ] } } @@ -69,7 +187,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 211.0, 515.0, 161.0, 57.0 ] + "patching_rect" : [ 218.0, 525.0, 161.0, 57.0 ] } } @@ -81,7 +199,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 374.0, 520.0, 140.0, 51.0 ], + "patching_rect" : [ 381.0, 530.0, 140.0, 51.0 ], "text" : "Drag a folder containing valid AIFF or WAV files here" } @@ -93,7 +211,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "dictionary" ], - "patching_rect" : [ 211.0, 616.488372093023372, 229.0, 22.0 ], + "patching_rect" : [ 218.0, 626.488372093023372, 229.0, 22.0 ], "text" : "fluid.concataudiofiles @destination sound", "varname" : "fluid.concataudiofiles" } @@ -106,7 +224,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 211.0, 584.395348837209326, 94.0, 22.0 ], + "patching_rect" : [ 218.0, 594.395348837209326, 94.0, 22.0 ], "text" : "fluid.audiofilesin" } @@ -342,7 +460,7 @@ ] } , - "patching_rect" : [ 8.999999666666668, 440.0, 49.0, 22.0 ], + "patching_rect" : [ 15.999999666666668, 450.0, 49.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -493,7 +611,7 @@ ] } , - "patching_rect" : [ 8.999999666666668, 190.380952380952294, 196.0, 22.0 ], + "patching_rect" : [ 15.999999666666668, 200.380952380952294, 196.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -625,7 +743,7 @@ ] } , - "patching_rect" : [ 8.999999666666668, 153.461471861471864, 73.0, 22.0 ], + "patching_rect" : [ 15.999999666666668, 163.461471861471864, 73.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -838,7 +956,7 @@ ] } , - "patching_rect" : [ 9.0, 116.54199134199132, 139.0, 22.0 ], + "patching_rect" : [ 16.0, 126.54199134199132, 139.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1373,7 +1491,7 @@ ] } , - "patching_rect" : [ 9.0, 79.622510822510833, 62.0, 22.0 ], + "patching_rect" : [ 16.0, 89.622510822510833, 62.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1782,7 +1900,7 @@ ] } , - "patching_rect" : [ 8.999999666666668, 476.0, 66.0, 22.0 ], + "patching_rect" : [ 15.999999666666668, 486.0, 66.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -1993,7 +2111,7 @@ ] } , - "patching_rect" : [ 9.0, 42.703030303030289, 52.0, 22.0 ], + "patching_rect" : [ 16.0, 52.703030303030289, 52.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -2014,7 +2132,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 8.999999666666668, 231.0, 192.0, 192.0 ] + "patching_rect" : [ 15.999999666666668, 241.0, 192.0, 192.0 ] } } @@ -2027,7 +2145,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 153.0, 79.622510822510833, 330.0, 58.919480519480487 ] + "patching_rect" : [ 160.0, 89.622510822510833, 330.0, 58.919480519480487 ] } } @@ -2040,7 +2158,7 @@ "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, - "patching_rect" : [ 8.999999666666668, 509.0, 48.0, 136.0 ], + "patching_rect" : [ 15.999999666666668, 519.0, 48.0, 136.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "Gain", @@ -2065,7 +2183,7 @@ "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 9.0, 4.0, 24.0, 24.0 ] + "patching_rect" : [ 16.0, 14.0, 24.0, 24.0 ] } } @@ -2076,7 +2194,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], - "patching_rect" : [ 211.0, 648.581395348837304, 189.0, 22.0 ], + "patching_rect" : [ 218.0, 658.581395348837304, 189.0, 22.0 ], "text" : "buffer~ sound Nicol-LoopE-M.wav" } @@ -2134,7 +2252,7 @@ , { "patchline" : { "destination" : [ "obj-43", 0 ], - "midpoints" : [ 48.499999666666668, 469.0, 208.0, 469.0, 208.0, 223.0, 18.499999666666668, 223.0 ], + "midpoints" : [ 55.499999666666668, 479.0, 215.0, 479.0, 215.0, 233.0, 25.499999666666668, 233.0 ], "source" : [ "obj-23", 1 ] } @@ -2149,7 +2267,7 @@ , { "patchline" : { "destination" : [ "obj-67", 0 ], - "midpoints" : [ 51.5, 71.662770562770561, 162.5, 71.662770562770561 ], + "midpoints" : [ 58.5, 81.662770562770561, 169.5, 81.662770562770561 ], "source" : [ "obj-3", 1 ] } @@ -2178,7 +2296,7 @@ , { "patchline" : { "destination" : [ "obj-7", 1 ], - "midpoints" : [ 18.499999666666668, 653.0, 44.499999666666668, 653.0 ], + "midpoints" : [ 25.499999666666668, 663.0, 51.499999666666668, 663.0 ], "order" : 0, "source" : [ "obj-54", 0 ] }