From: equilet <2237372+equilet@users.noreply.github.com> Date: Sat, 28 Jun 2025 02:06:14 +0000 (-0700) Subject: injects reset value when new folder is chosen X-Git-Tag: v0.1~26 X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=872e23d10e71a359d6319d2c9424b256ab64d1e2;p=sonogarden_maxproj.git injects reset value when new folder is chosen --- diff --git a/polybuf_container~.maxpat b/polybuf_container~.maxpat index 79c4e79..6cf1355 100644 --- a/polybuf_container~.maxpat +++ b/polybuf_container~.maxpat @@ -10,567 +10,16 @@ } , "classnamespace" : "box", - "rect" : [ 650.0, 285.0, 1236.0, 720.0 ], + "rect" : [ 63.0, 108.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", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 458.0, 91.0, 119.0, 22.0 ], - "text" : "o.if exists(/demosnd)" - } - - } -, { - "box" : { - "id" : "obj-38", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 482.0, 221.0, 1000.0, 780.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-7", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 541.0, 293.0, 55.0, 22.0 ], - "text" : "strippath" - } - - } -, { - "box" : { - "fontsize" : 12.0, - "id" : "obj-31", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ], - "text" : "prepend set file:" - } - - } -, { - "box" : { - "fontsize" : 12.0, - "id" : "obj-30", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ], - "text" : "prepend set folder:" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-3", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ], - "text" : "t s b" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 246.0, 319.0, 35.0, 22.0 ], - "text" : "clear" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ], - "text" : "route int" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 161.0, 210.0, 183.0, 22.0 ], - "text" : "gate 2 1" - } - - } -, { - "box" : { - "id" : "obj-33", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 332.0, 327.0, 96.0, 22.0 ], - "text" : "prepend append" - } - - } -, { - "box" : { - "id" : "obj-24", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 71.0, 293.0, 110.0, 22.0 ], - "text" : "prepend readfolder" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-35", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 255.0, 67.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-37", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 132.0, 383.0, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-24", 0 ], - "order" : 1, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-30", 0 ], - "order" : 0, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-33", 0 ], - "order" : 1, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "order" : 0, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "source" : [ "obj-2", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-37", 0 ], - "source" : [ "obj-24", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-30", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-31", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-37", 0 ], - "source" : [ "obj-33", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-35", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-37", 0 ], - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 1 ], - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "source" : [ "obj-6", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-31", 0 ], - "source" : [ "obj-7", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 1064.0, 30.0, 81.0, 22.0 ], - "text" : "p switch_msg" - } - - } -, { - "box" : { - "id" : "obj-19", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 1056.0, 283.0, 35.0, 22.0 ], - "text" : "clear" - } - - } -, { - "box" : { - "id" : "obj-29", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 9, - "minor" : 0, - "revision" : 6, - "architecture" : "x64", - "modernui" : 1 - } -, - "classnamespace" : "box", - "rect" : [ 1123.0, 178.0, 378.0, 485.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-9", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 269.0, 302.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 269.0, 341.0, 68.0, 22.0 ], - "text" : "print #1-file" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 152.0, 323.0, 64.0, 22.0 ], - "text" : "t l 2" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-2", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 197.0, 414.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ], - "text" : "o.if /pstatus == folder" - } - - } -, { - "box" : { - "fontface" : 0, - "id" : "obj-23", - "linecount" : 7, - "maxclass" : "o.expr.codebox", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 100.0, 256.0, 108.0 ], - "text" : "/atoi = split(\"\", /path), \n/last = int32(last(/atoi)), \nif(/last == 47, \n /pstatus = \"folder\", \n /pstatus = \"file\"\n), \ndelete(/last, /atoi)" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-26", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-28", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 152.0, 414.0, 30.0, 30.0 ] - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "order" : 1, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-9", 0 ], - "order" : 0, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-23", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-23", 0 ], - "source" : [ "obj-26", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-4", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "source" : [ "obj-9", 0 ] - } - - } - ] - } -, - "patching_rect" : [ 1068.0, 135.0, 88.0, 22.0 ], - "text" : "p file_or_folder" - } - - } -, { - "box" : { - "fontsize" : 12.0, - "id" : "obj-5", + "id" : "obj-32", "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 1068.0, 105.0, 128.0, 22.0 ], - "text" : "o.if exists(/path)" - } - - } -, { - "box" : { - "id" : "obj-81", - "maxclass" : "newobj", - "numinlets" : 1, + "numinlets" : 0, "numoutlets" : 0, - "patching_rect" : [ 1073.5, 664.0, 83.0, 22.0 ], - "text" : "print #1-folder" - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 1073.5, 629.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-80", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -582,236 +31,860 @@ } , "classnamespace" : "box", - "rect" : [ 1123.0, 178.0, 384.0, 572.0 ], - "gridsize" : [ 15.0, 15.0 ], - "subpatcher_template" : "Untitled5_template", - "boxes" : [ { - "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 269.0, 342.0, 83.0, 22.0 ], - "text" : "print #1-folder" - } - - } -, { - "box" : { - "id" : "obj-9", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 165.0, 293.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 80.0, 293.0, 24.0, 24.0 ] - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 283.0, 294.0, 68.0, 22.0 ], - "text" : "print #1-file" - } - - } -, { + "rect" : [ 0.0, 0.0, 1000.0, 780.0 ], + "gridsize" : [ 15.0, 15.0 ], + "subpatcher_template" : "Untitled5_template", + "boxes" : [ { "box" : { - "id" : "obj-4", + "id" : "obj-38", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 144.0, 321.0, 29.5, 22.0 ], - "text" : "t l 2" + "outlettype" : [ "", "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 482.0, 221.0, 1000.0, 780.0 ], + "gridsize" : [ 15.0, 15.0 ], + "subpatcher_template" : "Untitled5_template", + "boxes" : [ { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "int" ], + "patching_rect" : [ 541.0, 293.0, 55.0, 22.0 ], + "text" : "strippath" + } + + } +, { + "box" : { + "fontsize" : 12.0, + "id" : "obj-31", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ], + "text" : "prepend set file:" + } + + } +, { + "box" : { + "fontsize" : 12.0, + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ], + "text" : "prepend set folder:" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ], + "text" : "t s b" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 246.0, 319.0, 35.0, 22.0 ], + "text" : "clear" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ], + "text" : "route int" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 161.0, 210.0, 183.0, 22.0 ], + "text" : "gate 2 1" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 332.0, 327.0, 96.0, 22.0 ], + "text" : "prepend append" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 71.0, 293.0, 110.0, 22.0 ], + "text" : "prepend readfolder" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-35", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 255.0, 67.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-37", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 132.0, 383.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "order" : 1, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "order" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "order" : 1, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "order" : 0, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-24", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-33", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-35", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 1 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-6", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-7", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 50.0, 100.0, 81.0, 22.0 ], + "text" : "p switch_msg" } } , { "box" : { - "id" : "obj-3", + "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "int" ], - "patching_rect" : [ 55.0, 321.0, 29.5, 22.0 ], - "text" : "t l 1" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-2", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 129.0, 429.0, 30.0, 30.0 ] + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 1123.0, 178.0, 378.0, 485.0 ], + "gridsize" : [ 15.0, 15.0 ], + "subpatcher_template" : "Untitled5_template", + "boxes" : [ { + "box" : { + "id" : "obj-9", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 269.0, 302.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 269.0, 341.0, 68.0, 22.0 ], + "text" : "print #1-file" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "int" ], + "patching_rect" : [ 152.0, 323.0, 64.0, 22.0 ], + "text" : "t l 2" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-2", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 197.0, 414.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ], + "text" : "o.if /pstatus == folder" + } + + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-23", + "linecount" : 7, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 100.0, 256.0, 108.0 ], + "text" : "/atoi = split(\"\", /path), \n/last = int32(last(/atoi)), \nif(/last == 47, \n /pstatus = \"folder\", \n /pstatus = \"file\"\n), \ndelete(/last, /atoi)" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-26", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-28", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 152.0, 414.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "order" : 1, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "order" : 0, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-4", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 54.0, 205.0, 88.0, 22.0 ], + "text" : "p file_or_folder" } } , { "box" : { - "id" : "obj-1", + "fontsize" : 12.0, + "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ], - "text" : "o.if /pstatus == folder" + "patching_rect" : [ 54.0, 175.0, 128.0, 22.0 ], + "text" : "o.if exists(/path)" } } , { "box" : { - "fontface" : 0, - "id" : "obj-23", - "linecount" : 7, - "maxclass" : "o.expr.codebox", + "id" : "obj-80", + "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 100.0, 256.0, 108.0 ], - "text" : "/atoi = split(\"\", /path), \n/last = int32(last(/atoi)), \nif(/last == 47, \n /pstatus = \"folder\", \n /pstatus = \"file\"\n), \ndelete(/last, /atoi)" - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-26", - "index" : 1, - "maxclass" : "inlet", - "numinlets" : 0, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] - } - - } -, { - "box" : { - "comment" : "", - "id" : "obj-28", - "index" : 1, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 55.0, 429.0, 30.0, 30.0 ] + "outlettype" : [ "", "int" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 1123.0, 178.0, 384.0, 572.0 ], + "gridsize" : [ 15.0, 15.0 ], + "subpatcher_template" : "Untitled5_template", + "boxes" : [ { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 269.0, 342.0, 83.0, 22.0 ], + "text" : "print #1-folder" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 165.0, 293.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 80.0, 293.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 283.0, 294.0, 68.0, 22.0 ], + "text" : "print #1-file" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "int" ], + "patching_rect" : [ 144.0, 321.0, 29.5, 22.0 ], + "text" : "t l 2" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "int" ], + "patching_rect" : [ 55.0, 321.0, 29.5, 22.0 ], + "text" : "t l 1" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-2", + "index" : 2, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 129.0, 429.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ], + "text" : "o.if /pstatus == folder" + } + + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-23", + "linecount" : 7, + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 50.0, 100.0, 256.0, 108.0 ], + "text" : "/atoi = split(\"\", /path), \n/last = int32(last(/atoi)), \nif(/last == 47, \n /pstatus = \"folder\", \n /pstatus = \"file\"\n), \ndelete(/last, /atoi)" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-26", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-28", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 55.0, 429.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "order" : 1, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "order" : 1, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "order" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "order" : 0, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-3", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-4", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 54.0, 132.0, 88.0, 22.0 ], + "text" : "p file_or_folder" } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-3", 0 ], - "order" : 1, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "order" : 1, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "order" : 0, - "source" : [ "obj-1", 0 ] + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-5", 0 ] } } -, { - "patchline" : { - "destination" : [ "obj-9", 0 ], - "order" : 0, - "source" : [ "obj-1", 1 ] - } + ] + } +, + "patching_rect" : [ 1064.0, 30.0, 64.0, 22.0 ], + "text" : "p previous" + } - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-23", 0 ] - } + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "int", "" ], + "patching_rect" : [ 458.0, 483.0, 29.5, 22.0 ], + "text" : "t 1 l" + } - } -, { - "patchline" : { - "destination" : [ "obj-23", 0 ], - "source" : [ "obj-26", 0 ] - } + } +, { + "box" : { + "fontface" : 0, + "id" : "obj-30", + "maxclass" : "o.expr.codebox", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 468.5, 528.0, 150.0, 31.0 ], + "text" : "/count/reset = true" + } - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-3", 1 ] - } + } +, { + "box" : { + "id" : "obj-28", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 357.0, 443.0, 120.0, 22.0 ], + "text" : "gate 2" + } - } -, { - "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-3", 0 ] - } + } +, { + "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" + } - } -, { - "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-4", 1 ] - } + } +, { + "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" + } - } -, { - "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-4", 0 ] - } + } +, { + "box" : { + "fontsize" : 12.0, + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 458.0, 91.0, 119.0, 22.0 ], + "text" : "o.if exists(/demosnd)" + } - } -, { - "patchline" : { - "destination" : [ "obj-10", 0 ], - "source" : [ "obj-7", 0 ] - } + } +, { + "box" : { + "id" : "obj-19", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 1056.0, 283.0, 35.0, 22.0 ], + "text" : "clear" + } - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "source" : [ "obj-9", 0 ] - } + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 1073.5, 664.0, 83.0, 22.0 ], + "text" : "print #1-folder" + } - } - ] - } -, - "patching_rect" : [ 1068.0, 62.0, 88.0, 22.0 ], - "text" : "p file_or_folder" + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 1073.5, 629.0, 24.0, 24.0 ] } } @@ -1129,7 +1202,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 411.0, 220.0, 127.0, 22.0 ], + "patching_rect" : [ 716.0, 429.0, 127.0, 22.0 ], "text" : "prepend set file/folder:" } @@ -1164,7 +1237,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 161.0, 499.5, 115.0, 20.0 ], + "patching_rect" : [ 512.0, 387.0, 115.0, 20.0 ], "text" : "blend in polybuf info" } @@ -1177,7 +1250,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 689.0, 144.0, 76.0, 22.0 ], + "patching_rect" : [ 904.0, 209.0, 76.0, 22.0 ], "text" : "o.route /path" } @@ -1190,7 +1263,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 94.0, 498.5, 48.0, 22.0 ], + "patching_rect" : [ 458.0, 386.0, 48.0, 22.0 ], "text" : "o.union" } @@ -1248,7 +1321,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 340.0, 247.0, 30.0, 30.0 ] + "patching_rect" : [ 340.0, 274.0, 30.0, 30.0 ] } } @@ -1561,7 +1634,7 @@ "oncolor" : [ 0.333333333333333, 0.76078431372549, 0.247058823529412, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, - "patching_rect" : [ 338.0, 382.0, 52.0, 52.0 ], + "patching_rect" : [ 381.0, 137.0, 52.0, 52.0 ], "presentation" : 1, "presentation_rect" : [ 236.0, 45.0, 35.0, 35.0 ] } @@ -1597,7 +1670,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 501.0, 493.0, 150.0, 33.0 ], + "patching_rect" : [ 866.0, 129.5, 150.0, 33.0 ], "text" : "current limitation:\nno spaces in filenames" } @@ -1645,7 +1718,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 499.0, 428.0, 141.0, 22.0 ], + "patching_rect" : [ 864.0, 64.5, 141.0, 22.0 ], "text" : "prepend set polyb name:" } @@ -1658,7 +1731,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 499.0, 397.0, 109.0, 22.0 ], + "patching_rect" : [ 864.0, 33.5, 109.0, 22.0 ], "text" : "loadmess #1" } @@ -1670,7 +1743,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 499.0, 461.0, 141.0, 20.0 ], + "patching_rect" : [ 864.0, 97.5, 141.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 1.0, 66.0, 272.0, 20.0 ], "text" : "polyb name: #1" @@ -1697,7 +1770,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 411.0, 612.0, 145.0, 20.0 ], + "patching_rect" : [ 716.0, 533.5, 145.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 1.0, 28.0, 272.0, 20.0 ], "text" : "folder: " @@ -1721,10 +1794,10 @@ "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "int", "" ], - "patching_rect" : [ 295.0, 320.0, 71.0, 22.0 ], - "text" : "t 1 getcount" + "numoutlets" : 3, + "outlettype" : [ "int", "", "int" ], + "patching_rect" : [ 295.0, 320.0, 81.0, 22.0 ], + "text" : "t 1 getcount 2" } } @@ -1794,7 +1867,7 @@ } , { "patchline" : { - "destination" : [ "obj-9", 0 ], + "destination" : [ "obj-28", 1 ], "source" : [ "obj-21", 0 ] } @@ -1812,6 +1885,20 @@ "source" : [ "obj-25", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-28", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-28", 0 ] + } + } , { "patchline" : { @@ -1819,6 +1906,28 @@ "source" : [ "obj-3", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "midpoints" : [ 467.5, 515.0, 513.6734619140625, 515.0, 513.6734619140625, 434.0, 366.5, 434.0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "source" : [ "obj-31", 1 ] + } + } , { "patchline" : { @@ -1861,11 +1970,18 @@ "source" : [ "obj-36", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-4", 2 ] + } + } , { "patchline" : { "destination" : [ "obj-36", 0 ], - "midpoints" : [ 356.5, 352.0, 381.4993896484375, 352.0, 381.4993896484375, 236.0, 132.5, 236.0 ], + "midpoints" : [ 335.5, 352.0, 381.4993896484375, 352.0, 381.4993896484375, 236.0, 132.5, 236.0 ], "source" : [ "obj-4", 1 ] } @@ -1927,13 +2043,6 @@ "source" : [ "obj-48", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-29", 0 ], - "source" : [ "obj-5", 0 ] - } - } , { "patchline" : {