From: equilet <2237372+equilet@users.noreply.github.com> Date: Thu, 26 Jun 2025 07:48:17 +0000 (-0700) Subject: umenu tweaked to support sub-folder paths as individual strings X-Git-Tag: v0.1~41 X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=9a10390fa7e718253c316c30e8b7d172cefbe8a8;p=sonogarden_maxproj.git umenu tweaked to support sub-folder paths as individual strings --- diff --git a/polybuf_container~.maxpat b/polybuf_container~.maxpat index af98f42..0151618 100644 --- a/polybuf_container~.maxpat +++ b/polybuf_container~.maxpat @@ -10,11 +10,35 @@ } , "classnamespace" : "box", - "rect" : [ 272.0, 164.0, 1236.0, 720.0 ], + "rect" : [ 816.0, 555.0, 1236.0, 720.0 ], "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "box" : { + "id" : "obj-44", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 965.0, 382.0, 120.0, 22.0 ], + "text" : "sprintf symout %s%s" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 55.0, 542.0, 35.0, 22.0 ], + "text" : "o.var" + } + + } +, { "box" : { "fontsize" : 12.0, "id" : "obj-6", @@ -802,18 +826,6 @@ "textcolor" : [ 0.76078431372549, 0.129411764705882, 0.129411764705882, 1.0 ] } - } -, { - "box" : { - "id" : "obj-77", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 965.0, 363.0, 107.0, 22.0 ], - "text" : "sprintf symout %s/" - } - } , { "box" : { @@ -833,7 +845,7 @@ } , "classnamespace" : "box", - "rect" : [ 84.0, 131.0, 608.0, 392.0 ], + "rect" : [ 856.0, 232.0, 608.0, 392.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { @@ -847,18 +859,6 @@ "text" : "set folder: $1" } - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 154.0, 220.0, 123.0, 22.0 ], - "text" : "sprintf symout %s%s/" - } - } , { "box" : { @@ -937,10 +937,10 @@ "id" : "obj-66", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "bang", "", "int" ], + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], "patching_rect" : [ 323.0, 147.0, 123.0, 22.0 ], - "text" : "t b s 1" + "text" : "t b s" } } @@ -1101,23 +1101,11 @@ "text" : "prepend symbol" } - } -, { - "box" : { - "id" : "obj-54", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 965.0, 398.0, 55.0, 22.0 ], - "text" : "strippath" - } - } , { "box" : { "autopopulate" : 1, - "depth" : 3, + "depth" : 4, "id" : "obj-58", "items" : "", "maxclass" : "umenu", @@ -1126,6 +1114,7 @@ "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 904.0, 321.0, 141.0, 22.0 ], + "prefix_mode" : 2, "presentation" : 1, "presentation_rect" : [ 1.0, 4.0, 272.0, 22.0 ], "types" : "fold" @@ -1175,7 +1164,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 21.5, 404.0, 115.0, 20.0 ], + "patching_rect" : [ 161.0, 499.5, 115.0, 20.0 ], "text" : "blend in polybuf info" } @@ -1201,7 +1190,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 55.0, 503.0, 48.0, 22.0 ], + "patching_rect" : [ 94.0, 498.5, 48.0, 22.0 ], "text" : "o.union" } @@ -1455,7 +1444,7 @@ ] } , - "patching_rect" : [ 62.0, 375.0, 125.0, 22.0 ], + "patching_rect" : [ 123.0, 321.0, 125.0, 22.0 ], "text" : "p clear_routine_&_init" } @@ -1572,7 +1561,7 @@ "oncolor" : [ 0.333333333333333, 0.76078431372549, 0.247058823529412, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, - "patching_rect" : [ 219.0, 382.0, 52.0, 52.0 ], + "patching_rect" : [ 338.0, 382.0, 52.0, 52.0 ], "presentation" : 1, "presentation_rect" : [ 236.0, 45.0, 35.0, 35.0 ] } @@ -1608,7 +1597,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 203.0, 564.0, 150.0, 33.0 ], + "patching_rect" : [ 501.0, 493.0, 150.0, 33.0 ], "text" : "current limitation:\nno spaces in filenames" } @@ -1656,7 +1645,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 201.0, 499.0, 141.0, 22.0 ], + "patching_rect" : [ 499.0, 428.0, 141.0, 22.0 ], "text" : "prepend set polyb name:" } @@ -1669,7 +1658,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 201.0, 468.0, 109.0, 22.0 ], + "patching_rect" : [ 499.0, 397.0, 109.0, 22.0 ], "text" : "loadmess #1" } @@ -1681,9 +1670,9 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 201.0, 532.0, 141.0, 20.0 ], + "patching_rect" : [ 499.0, 461.0, 141.0, 20.0 ], "presentation" : 1, - "presentation_rect" : [ 1.0, 60.0, 272.0, 20.0 ], + "presentation_rect" : [ 1.0, 66.0, 272.0, 20.0 ], "text" : "polyb name: #1" } @@ -1710,7 +1699,7 @@ "numoutlets" : 0, "patching_rect" : [ 411.0, 612.0, 145.0, 20.0 ], "presentation" : 1, - "presentation_rect" : [ 1.0, 44.0, 272.0, 20.0 ], + "presentation_rect" : [ 1.0, 28.0, 272.0, 20.0 ], "text" : "folder: " } @@ -1760,6 +1749,13 @@ "source" : [ "obj-14", 1 ] } + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-14", 0 ] + } + } , { "patchline" : { @@ -1798,7 +1794,7 @@ } , { "patchline" : { - "destination" : [ "obj-1", 0 ], + "destination" : [ "obj-9", 0 ], "source" : [ "obj-21", 0 ] } @@ -1904,44 +1900,44 @@ } , { "patchline" : { - "destination" : [ "obj-21", 0 ], - "source" : [ "obj-48", 1 ] + "destination" : [ "obj-72", 0 ], + "order" : 0, + "source" : [ "obj-44", 0 ] } } , { "patchline" : { - "destination" : [ "obj-43", 0 ], - "source" : [ "obj-48", 0 ] + "destination" : [ "obj-83", 0 ], + "order" : 1, + "source" : [ "obj-44", 0 ] } } , { "patchline" : { - "destination" : [ "obj-29", 0 ], - "source" : [ "obj-5", 0 ] + "destination" : [ "obj-21", 0 ], + "source" : [ "obj-48", 1 ] } } , { "patchline" : { - "destination" : [ "obj-72", 0 ], - "order" : 0, - "source" : [ "obj-54", 0 ] + "destination" : [ "obj-43", 0 ], + "source" : [ "obj-48", 0 ] } } , { "patchline" : { - "destination" : [ "obj-83", 0 ], - "order" : 1, - "source" : [ "obj-54", 0 ] + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-5", 0 ] } } , { "patchline" : { - "destination" : [ "obj-77", 0 ], + "destination" : [ "obj-44", 0 ], "source" : [ "obj-58", 1 ] } @@ -1997,13 +1993,6 @@ "source" : [ "obj-72", 1 ] } - } -, { - "patchline" : { - "destination" : [ "obj-54", 0 ], - "source" : [ "obj-77", 0 ] - } - } , { "patchline" : { @@ -2039,6 +2028,13 @@ "source" : [ "obj-87", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-9", 0 ] + } + } ], "dependency_cache" : [ { @@ -2061,6 +2057,10 @@ "name" : "o.union.mxo", "type" : "iLaX" } +, { + "name" : "o.var.mxo", + "type" : "iLaX" + } ], "autosave" : 0 }