From 2985e5af86758b49fda4795fa6c96bd7bdfa56da Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Sun, 16 Mar 2025 01:40:36 -0700 Subject: [PATCH] duplicate menu in sequencer is now an instance of textedit for ui simplification --- engine_zone~.maxpat | 4 +- polybuf_container~.maxpat | 159 ++------------------------------------ seq_eventeditor_ui.maxpat | 105 +++++++++++++++++-------- 3 files changed, 80 insertions(+), 188 deletions(-) diff --git a/engine_zone~.maxpat b/engine_zone~.maxpat index 265ebbb..b9081fb 100644 --- a/engine_zone~.maxpat +++ b/engine_zone~.maxpat @@ -107,8 +107,8 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 592.5, 270.0, 129.0, 21.0 ], - "text" : "o.pack /audiofile/menu" + "patching_rect" : [ 592.5, 270.0, 127.0, 21.0 ], + "text" : "o.pack /audiofile/textbox" } } diff --git a/polybuf_container~.maxpat b/polybuf_container~.maxpat index b2a0ba2..58b56f2 100644 --- a/polybuf_container~.maxpat +++ b/polybuf_container~.maxpat @@ -16,113 +16,6 @@ "toolbars_unpinned_last_save" : 15, "subpatcher_template" : "Untitled5_template", "boxes" : [ { - "box" : { - "id" : "obj-55", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-4", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 50.0, 127.0, 65.0, 22.0 ], - "text" : "append $2" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 50.0, 89.0, 69.0, 22.0 ], - "text" : "route dump" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-52", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "clear" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-53", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 154.0, 212.0, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-53", 0 ], - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-53", 0 ], - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-52", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 410.0, 641.0, 79.0, 22.0 ], - "text" : "p parsedump" - } - - } -, { "box" : { "id" : "obj-56", "linecount" : 2, @@ -265,8 +158,8 @@ "id" : "obj-47", "maxclass" : "newobj", "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "dump", "clear" ], + "numoutlets" : 1, + "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -278,22 +171,10 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 502.0, 408.0 ], + "rect" : [ 818.0, 121.0, 502.0, 408.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { - "box" : { - "comment" : "", - "id" : "obj-1", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 184.0, 213.0, 30.0, 30.0 ] - } - - } -, { "box" : { "fontsize" : 12.0, "id" : "obj-21", @@ -401,13 +282,6 @@ "source" : [ "obj-21", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-23", 1 ] - } - } , { "patchline" : { @@ -415,13 +289,6 @@ "source" : [ "obj-23", 2 ] } - } -, { - "patchline" : { - "destination" : [ "obj-39", 0 ], - "source" : [ "obj-23", 0 ] - } - } , { "patchline" : { @@ -3568,13 +3435,6 @@ "source" : [ "obj-46", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-55", 0 ], - "source" : [ "obj-47", 1 ] - } - } , { "patchline" : { @@ -3648,13 +3508,6 @@ "source" : [ "obj-54", 3 ] } - } -, { - "patchline" : { - "destination" : [ "obj-58", 0 ], - "source" : [ "obj-55", 0 ] - } - } , { "patchline" : { @@ -3729,14 +3582,16 @@ , { "patchline" : { "destination" : [ "obj-19", 0 ], + "order" : 1, "source" : [ "obj-8", 1 ] } } , { "patchline" : { - "destination" : [ "obj-55", 0 ], - "source" : [ "obj-8", 2 ] + "destination" : [ "obj-58", 0 ], + "order" : 0, + "source" : [ "obj-8", 1 ] } } diff --git a/seq_eventeditor_ui.maxpat b/seq_eventeditor_ui.maxpat index abc7896..199d23d 100644 --- a/seq_eventeditor_ui.maxpat +++ b/seq_eventeditor_ui.maxpat @@ -14,6 +14,32 @@ "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 907.0, 485.0, 59.0, 22.0 ], + "text" : "route text" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "textedit", + "numinlets" : 1, + "numoutlets" : 4, + "outlettype" : [ "", "int", "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 712.0, 443.0, 94.714285714285666, 27.0 ], + "presentation" : 1, + "presentation_rect" : [ 126.0, 3.0, 131.75, 24.0 ] + } + + } +, { "box" : { "bgcolor" : [ 0.125490196078431, 0.125490196078431, 0.125490196078431, 0.0 ], "blinkcolor" : [ 0.137254901960784, 0.407843137254902, 0.850980392156863, 1.0 ], @@ -52,6 +78,18 @@ "rect" : [ 59.0, 87.0, 1000.0, 743.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 241.0, 49.0, 58.0, 22.0 ], + "text" : "loadbang" + } + + } +, { "box" : { "fontface" : 0, "fontsize" : 10.0, @@ -95,6 +133,13 @@ } ], "lines" : [ { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { "patchline" : { "destination" : [ "obj-5", 0 ], "source" : [ "obj-12", 0 ] @@ -158,8 +203,8 @@ "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "", "", "FullPacket" ], - "patching_rect" : [ 182.0, 84.0, 170.0, 22.0 ], - "text" : "o.route /clear /audiofile/menu" + "patching_rect" : [ 182.0, 84.0, 172.0, 22.0 ], + "text" : "o.route /clear /audiofile/textbox" } } @@ -206,25 +251,10 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 820.0, 451.0, 67.0, 19.0 ], - "presentation" : 1, - "presentation_rect" : [ 235.0, 4.0, 67.0, 19.0 ], - "text" : "audio group" - } - - } -, { - "box" : { - "id" : "obj-80", - "items" : "", - "maxclass" : "umenu", - "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "int", "", "" ], - "parameter_enable" : 0, - "patching_rect" : [ 712.0, 451.0, 100.0, 22.0 ], + "patching_rect" : [ 815.0, 447.0, 67.0, 19.0 ], "presentation" : 1, - "presentation_rect" : [ 126.0, 4.0, 100.0, 22.0 ] + "presentation_rect" : [ 260.0, 4.5, 54.0, 19.0 ], + "text" : "audio grp" } } @@ -633,6 +663,13 @@ } ], "lines" : [ { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { "patchline" : { "destination" : [ "obj-67", 0 ], "source" : [ "obj-10", 0 ] @@ -659,6 +696,13 @@ "source" : [ "obj-16", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-39", 0 ], + "source" : [ "obj-2", 0 ] + } + } , { "patchline" : { @@ -683,22 +727,22 @@ } , { "patchline" : { - "destination" : [ "obj-7", 0 ], - "source" : [ "obj-3", 0 ] + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-3", 1 ] } } , { "patchline" : { - "destination" : [ "obj-78", 0 ], - "source" : [ "obj-3", 2 ] + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-3", 0 ] } } , { "patchline" : { - "destination" : [ "obj-80", 0 ], - "source" : [ "obj-3", 1 ] + "destination" : [ "obj-78", 0 ], + "source" : [ "obj-3", 2 ] } } @@ -732,7 +776,7 @@ } , { "patchline" : { - "destination" : [ "obj-80", 0 ], + "destination" : [ "obj-1", 0 ], "source" : [ "obj-37", 0 ] } @@ -891,13 +935,6 @@ "source" : [ "obj-8", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-39", 0 ], - "source" : [ "obj-80", 1 ] - } - } , { "patchline" : { -- 2.34.1