From 51420cbd5f2b004486a16526732c191fcdedded3 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 4 Aug 2025 16:27:13 +0200 Subject: [PATCH] how to integrate tab --- ModEnum.maxhelp | 238 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 219 insertions(+), 19 deletions(-) diff --git a/ModEnum.maxhelp b/ModEnum.maxhelp index 8b87a93..e114f3d 100644 --- a/ModEnum.maxhelp +++ b/ModEnum.maxhelp @@ -10,11 +10,213 @@ } , "classnamespace" : "box", - "rect" : [ 226.0, 100.0, 1143.0, 820.0 ], + "rect" : [ 226.0, 100.0, 1056.0, 820.0 ], "gridsize" : [ 15.0, 15.0 ], "showrootpatcherontab" : 0, "showontab" : 0, "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 5, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 0.0, 26.0, 1056.0, 794.0 ], + "gridsize" : [ 15.0, 15.0 ], + "showontab" : 2, + "boxes" : [ { + "box" : { + "id" : "obj-21", + "linecount" : 6, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 854.0, 24.0, 150.0, 87.0 ], + "presentation_linecount" : 6, + "text" : "I'm not that familiar with the pattrstorage system, and couldn't get it to work without both [preset] and [pattrstorage], but you might have better results" + } + + } +, { + "box" : { + "id" : "obj-20", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 296.487183213233948, 761.0, 342.0, 20.0 ], + "text" : "Each outlet can route to a different DJster instance" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 38.0, 78.0, 147.0, 22.0 ], + "presentation_linecount" : 2, + "text" : "param 1 pulse_length 200" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 214.0, 89.0, 62.0, 22.0 ], + "text" : "r common" + } + + } +, { + "box" : { + "id" : "obj-15", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 38.0, 8.0, 268.0, 74.0 ], + "presentation_linecount" : 8, + "text" : "The web interface (or other composer interface) should send messages formatted as follows `param [instancenum] [parameter] [value]`\n\nexample:" + } + + } +, { + "box" : { + "id" : "obj-13", + "linecount" : 6, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 475.0, 24.0, 150.0, 87.0 ], + "text" : "After loading a preset you must send the `reload` message telling the abstraction to update itself according to the loaded settings." + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 685.25, 91.0, 42.0, 22.0 ], + "text" : "reload" + } + + } +, { + "box" : { + "id" : "obj-51", + "linecount" : 2, + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 665.0, 2.0, 160.256430506706238, 35.0 ], + "saved_object_attributes" : { + "client_rect" : [ 113, 112, 658, 432 ], + "parameter_enable" : 0, + "parameter_mappable" : 0, + "storage_rect" : [ 1282, 626, 1887, 1000 ] + } +, + "text" : "pattrstorage myStorage @savemode 3 @greedy 1", + "varname" : "myStorage" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "preset", + "numinlets" : 1, + "numoutlets" : 5, + "outlettype" : [ "preset", "int", "preset", "int", "" ], + "patching_rect" : [ 665.0, 40.0, 100.0, 40.0 ], + "pattrstorage" : "myStorage" + } + + } +, { + "box" : { + "bgmode" : 0, + "border" : 0, + "clickthrough" : 0, + "enablehscroll" : 0, + "enablevscroll" : 0, + "id" : "obj-1", + "lockeddragscroll" : 0, + "lockedsize" : 0, + "maxclass" : "bpatcher", + "name" : "ModEnum.maxpat", + "numinlets" : 1, + "numoutlets" : 6, + "offset" : [ 0.0, 0.0 ], + "outlettype" : [ "", "", "", "", "", "" ], + "patching_rect" : [ 29.487183213233948, 126.92309296131134, 876.0, 621.0 ], + "varname" : "ModEnum", + "viewvisibility" : 1 + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "hidden" : 1, + "source" : [ "obj-10", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "hidden" : 1, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-18", 0 ] + } + + } + ], + "originid" : "pat-176" + } +, + "patching_rect" : [ 359.0, 35.0, 70.0, 22.0 ], + "text" : "p for-Georg", + "varname" : "basic[3]" + } + + } +, { "box" : { "id" : "obj-6", "maxclass" : "newobj", @@ -31,7 +233,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 1143.0, 794.0 ], + "rect" : [ 0.0, 26.0, 1056.0, 794.0 ], "gridsize" : [ 15.0, 15.0 ], "showontab" : 2, "boxes" : [ { @@ -302,7 +504,7 @@ } ], "lines" : [ ], - "originid" : "pat-760" + "originid" : "pat-142" } , "patching_rect" : [ 279.166679978370667, 34.722223877906799, 67.0, 22.0 ], @@ -328,7 +530,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 1143.0, 794.0 ], + "rect" : [ 0.0, 26.0, 1056.0, 794.0 ], "gridsize" : [ 15.0, 15.0 ], "showontab" : 2, "boxes" : [ { @@ -341,7 +543,6 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 885.783728122711182, 741.148598670959473, 148.0, 37.0 ], - "presentation_linecount" : 2, "text" : "Imagine these are the DJster intances" } @@ -543,7 +744,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 663.513469219207764, 748.648598670959473, 50.0, 35.0 ], - "text" : "tonic_pitch 30" + "text" : "tonic_pitch 20" } } @@ -569,7 +770,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 320.270248889923096, 748.648598670959473, 50.0, 76.0 ], - "text" : "melodic_cohesion 34.645669" + "text" : "melodic_cohesion 0.393701" } } @@ -582,7 +783,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 148.648638725280762, 748.648598670959473, 50.0, 62.0 ], - "text" : "event_length 29.582744" + "text" : "event_length 27.810222" } } @@ -595,7 +796,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 29.729727745056152, 748.648598670959473, 60.0, 62.0 ], - "text" : "pulse_length -0.628314" + "text" : "pulse_length -74.594115" } } @@ -767,7 +968,7 @@ } ], - "originid" : "pat-762" + "originid" : "pat-144" } , "patching_rect" : [ 181.944453120231628, 34.722223877906799, 86.0, 22.0 ], @@ -793,7 +994,7 @@ } , "classnamespace" : "box", - "rect" : [ 226.0, 126.0, 1143.0, 794.0 ], + "rect" : [ 226.0, 126.0, 1056.0, 794.0 ], "gridsize" : [ 15.0, 15.0 ], "showontab" : 2, "boxes" : [ { @@ -806,7 +1007,6 @@ "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 893.025753617286682, 747.5, 148.0, 37.0 ], - "presentation_linecount" : 2, "text" : "Imagine these are the DJster intances" } @@ -832,7 +1032,6 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 509.0, 56.0, 97.0, 22.0 ], - "presentation_linecount" : 2, "text" : "6 harmonicity 87" } @@ -1211,7 +1410,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 657.0, 759.0, 93.589755415916443, 22.0 ], - "text" : "tonic_pitch 30" + "text" : "tonic_pitch 20" } } @@ -1236,7 +1435,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 341.025684118270874, 758.974454879760742, 112.820527076721191, 35.0 ], - "text" : "melodic_cohesion 84.645669" + "text" : "melodic_cohesion 50.393701" } } @@ -1248,7 +1447,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 169.230790615081787, 758.974454879760742, 152.564121842384338, 22.0 ], - "text" : "event_length 38.457805" + "text" : "event_length 27.573602" } } @@ -1261,7 +1460,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 38.0, 752.474454879760742, 80.0, 35.0 ], - "text" : "pulse_length 199.371686" + "text" : "pulse_length 125.405885" } } @@ -1492,7 +1691,7 @@ } ], - "originid" : "pat-778" + "originid" : "pat-160" } , "patching_rect" : [ 94.444448947906494, 34.722223877906799, 78.0, 22.0 ], @@ -1503,8 +1702,9 @@ } ], "lines" : [ ], - "originid" : "pat-758", + "originid" : "pat-74", "parameters" : { + "obj-2::obj-1::obj-25" : [ "dict[2]", "dict", 0 ], "obj-4::obj-1::obj-25" : [ "dict", "dict", 0 ], "obj-5::obj-1::obj-25" : [ "dict[1]", "dict", 0 ], "parameterbanks" : { -- 2.45.2