From 4b7d3212ee8ee4d5cea502cfa116248a8cd5ea57 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:36:18 -0700 Subject: [PATCH] operates on strings which are concatenated with global audio folder path --- polybuf_container~.maxpat | 1088 ++++++++++++++++++++++++++++--------- 1 file changed, 824 insertions(+), 264 deletions(-) diff --git a/polybuf_container~.maxpat b/polybuf_container~.maxpat index 0212438..bddac2f 100644 --- a/polybuf_container~.maxpat +++ b/polybuf_container~.maxpat @@ -10,31 +10,507 @@ } , "classnamespace" : "box", - "rect" : [ 55.0, 65.0, 1082.0, 722.0 ], + "rect" : [ 128.0, 257.0, 1367.0, 761.0 ], "openinpresentation" : 1, "gridsize" : [ 15.0, 15.0 ], "toolbars_unpinned_last_save" : 15, "subpatcher_template" : "Untitled5_template", "boxes" : [ { + "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" : [ 1051.0, 176.0, 88.0, 22.0 ], + "text" : "p file_or_folder" + } + + } +, { "box" : { "fontsize" : 12.0, - "id" : "obj-15", + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "FullPacket", "FullPacket" ], + "patching_rect" : [ 1051.0, 146.0, 128.0, 22.0 ], + "text" : "o.if exists(/path)" + } + + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 1, + "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" : { + "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" : [ 1068.0, 62.0, 88.0, 22.0 ], + "text" : "p file_or_folder" + } + + } +, { + "box" : { + "id" : "obj-79", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 406.0, 15.5, 150.0, 20.0 ], + "text" : "<< change to be file only" + } + + } +, { + "box" : { + "id" : "obj-77", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 320.0, 424.0, 127.0, 22.0 ], - "text" : "prepend set file/folder:" + "patching_rect" : [ 965.0, 363.0, 107.0, 22.0 ], + "text" : "sprintf symout %s/" } } , { "box" : { - "id" : "obj-38", + "id" : "obj-72", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], + "numoutlets" : 3, + "outlettype" : [ "", "", "" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -46,300 +522,324 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], + "rect" : [ 84.0, 131.0, 608.0, 392.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, + "id" : "obj-5", + "maxclass" : "message", + "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ], - "text" : "prepend set file:" + "patching_rect" : [ 491.0, 276.0, 78.0, 22.0 ], + "text" : "set folder: $1" } } , { "box" : { - "fontsize" : 12.0, - "id" : "obj-30", + "id" : "obj-3", "maxclass" : "newobj", - "numinlets" : 1, + "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ], - "text" : "prepend set folder:" + "patching_rect" : [ 154.0, 220.0, 123.0, 22.0 ], + "text" : "sprintf symout %s%s/" } } , { "box" : { - "id" : "obj-15", - "maxclass" : "newobj", + "comment" : "", + "id" : "obj-2", + "index" : 3, + "maxclass" : "outlet", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 479.0, 293.0, 55.0, 22.0 ], - "text" : "strippath" + "numoutlets" : 0, + "patching_rect" : [ 490.0, 308.0, 30.0, 30.0 ] } } , { "box" : { "comment" : "", - "id" : "obj-3", + "id" : "obj-1", "index" : 2, "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ] + "patching_rect" : [ 323.0, 308.0, 30.0, 30.0 ] } } , { "box" : { - "id" : "obj-6", + "id" : "obj-53", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ], - "text" : "t s b" + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 323.0, 255.0, 110.0, 22.0 ], + "text" : "prepend readfolder" } } , { "box" : { - "id" : "obj-5", - "maxclass" : "message", - "numinlets" : 2, + "id" : "obj-57", + "maxclass" : "newobj", + "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 246.0, 319.0, 35.0, 22.0 ], - "text" : "clear" + "patching_rect" : [ 47.0, 147.0, 85.0, 22.0 ], + "text" : "prepend prefix" } } , { "box" : { - "id" : "obj-2", + "id" : "obj-23", "maxclass" : "newobj", - "numinlets" : 2, + "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ], - "text" : "route int" + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 460.0, 69.0, 109.0, 22.0 ], + "text" : "o.route /soundpath" } } , { "box" : { - "id" : "obj-1", + "id" : "obj-61", "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 161.0, 210.0, 183.0, 22.0 ], - "text" : "gate 2 1" + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 460.0, 39.0, 35.0, 22.0 ], + "text" : "r osc" } } , { "box" : { - "id" : "obj-33", + "id" : "obj-66", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 332.0, 327.0, 96.0, 22.0 ], - "text" : "prepend append" + "numoutlets" : 3, + "outlettype" : [ "bang", "", "int" ], + "patching_rect" : [ 323.0, 147.0, 123.0, 22.0 ], + "text" : "t b s 1" } } , { "box" : { - "id" : "obj-24", + "id" : "obj-67", "maxclass" : "newobj", - "numinlets" : 1, + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 323.0, 182.0, 156.0, 22.0 ], + "text" : "zl.reg" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 64.0, 310.0, 110.0, 22.0 ], - "text" : "prepend readfolder" + "patching_rect" : [ 323.0, 220.0, 123.0, 22.0 ], + "text" : "sprintf symout %s%s" } } , { "box" : { "comment" : "", - "id" : "obj-35", + "id" : "obj-69", "index" : 1, "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "int" ], - "patching_rect" : [ 255.0, 67.0, 30.0, 30.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 323.0, 45.0, 30.0, 30.0 ] } } , { "box" : { "comment" : "", - "id" : "obj-37", + "id" : "obj-70", "index" : 1, "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 132.0, 383.0, 30.0, 30.0 ] + "patching_rect" : [ 47.0, 308.0, 30.0, 30.0 ] } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-15", 0 ], - "order" : 0, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-24", 0 ], - "order" : 1, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-33", 0 ], + "destination" : [ "obj-57", 0 ], "order" : 1, - "source" : [ "obj-1", 1 ] + "source" : [ "obj-23", 0 ] } } , { "patchline" : { - "destination" : [ "obj-7", 0 ], + "destination" : [ "obj-67", 1 ], "order" : 0, - "source" : [ "obj-1", 1 ] + "source" : [ "obj-23", 0 ] } } , { "patchline" : { - "destination" : [ "obj-30", 0 ], - "source" : [ "obj-15", 0 ] + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-5", 0 ] } } , { "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 ] + "source" : [ "obj-53", 0 ] } } , { "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-30", 0 ] + "destination" : [ "obj-70", 0 ], + "source" : [ "obj-57", 0 ] } } , { "patchline" : { - "destination" : [ "obj-3", 0 ], - "source" : [ "obj-31", 0 ] + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-61", 0 ] } } , { "patchline" : { - "destination" : [ "obj-37", 0 ], - "source" : [ "obj-33", 0 ] + "destination" : [ "obj-5", 0 ], + "order" : 0, + "source" : [ "obj-66", 1 ] } } , { "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-35", 0 ] + "destination" : [ "obj-67", 0 ], + "source" : [ "obj-66", 0 ] } } , { "patchline" : { - "destination" : [ "obj-37", 0 ], - "source" : [ "obj-5", 0 ] + "destination" : [ "obj-9", 1 ], + "order" : 1, + "source" : [ "obj-66", 1 ] } } , { "patchline" : { - "destination" : [ "obj-1", 1 ], - "source" : [ "obj-6", 0 ] + "destination" : [ "obj-9", 0 ], + "source" : [ "obj-67", 0 ] } } , { "patchline" : { - "destination" : [ "obj-5", 0 ], - "source" : [ "obj-6", 1 ] + "destination" : [ "obj-66", 0 ], + "source" : [ "obj-69", 0 ] } } , { "patchline" : { - "destination" : [ "obj-31", 0 ], - "source" : [ "obj-7", 0 ] + "destination" : [ "obj-53", 0 ], + "source" : [ "obj-9", 0 ] } } ] } , - "patching_rect" : [ 347.0, 170.0, 81.0, 22.0 ], - "text" : "p switch_msg" + "patching_rect" : [ 965.0, 429.0, 84.0, 22.0 ], + "text" : "p" } } , { "box" : { - "id" : "obj-29", + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 904.0, 271.0, 94.0, 22.0 ], + "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, + "id" : "obj-58", + "items" : [ "100618_02 Oboe Gestures", ",", "100622_04 Fast Cello Fragments", ",", "4_Anton_Glass", ",", "AssortedMetalPercussion", ",", "Bamboo", ",", "bells(noisy)", ",", "blackgrosbeak", ",", "CelloFauneFragments", ",", "CelloHaiku", ",", "CelloPentatonicEflat", ",", "CelloShortSounds", ",", "Clap", ",", "Clarinet", ",", "Click", ",", "DebussyNuagesFragments", ",", "DjembeHits", ",", "Drips", ",", "Heizman", ",", "Hydrophone", ",", "KotoSCM", ",", "Language", ",", "lazbunting", ",", "LittleMetalPerc", ",", "Maraca", ",", "Marimba", ",", "NorthernCardinal", ",", "NuagesPiano", ",", "Oboe", ",", "oiseauxExotiques", ",", "OM_Catalogue", ",", "OudScaleSamples", ",", "PianoTypeB", ",", "PianoTypeDbirds", ",", "Pipa", ",", "pipa52", ",", "PipaBackground", ",", "PipaShort", ",", "PrayerBowl", ",", "RH", ",", "robin", ",", "Sax", ",", "Shaker", ",", "Shakuhachi", ",", "ShakuhachiTrills", ",", "SingingBowlStruck", ",", "SoundEffectsLibrary", ",", "SteenEdited", ",", "Taghavi", ",", "Terra", ",", "ThimbleGong", ",", "tongue", ",", "trumpet", ",", "VIBE", ",", "VIBEClickySet", ",", "Watrbubb", ",", "Whistling", ",", "Wood", ",", "woodenRattle" ], + "maxclass" : "umenu", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "int", "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 904.0, 321.0, 141.0, 22.0 ], + "prefix" : "~/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/", + "presentation" : 1, + "presentation_rect" : [ 1.0, 4.0, 272.0, 22.0 ] + } + + } +, { + "box" : { + "fontsize" : 12.0, + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 307.0, 412.0, 127.0, 22.0 ], + "text" : "prepend set file/folder:" + } + + } +, { + "box" : { + "id" : "obj-38", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], "patcher" : { "fileversion" : 1, "appversion" : { @@ -351,88 +851,92 @@ } , "classnamespace" : "box", - "rect" : [ 1123.0, 178.0, 384.0, 572.0 ], + "rect" : [ 482.0, 227.0, 1000.0, 780.0 ], "gridsize" : [ 15.0, 15.0 ], "subpatcher_template" : "Untitled5_template", "boxes" : [ { "box" : { - "id" : "obj-10", + "id" : "obj-7", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 269.0, 342.0, 83.0, 22.0 ], - "text" : "print #1-folder" + "numoutlets" : 2, + "outlettype" : [ "", "int" ], + "patching_rect" : [ 541.0, 293.0, 55.0, 22.0 ], + "text" : "strippath" } } , { "box" : { - "id" : "obj-9", - "maxclass" : "button", + "fontsize" : 12.0, + "id" : "obj-31", + "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 165.0, 293.0, 24.0, 24.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ], + "text" : "prepend set file:" } } , { "box" : { - "id" : "obj-7", - "maxclass" : "button", + "fontsize" : 12.0, + "id" : "obj-30", + "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, - "outlettype" : [ "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 80.0, 293.0, 24.0, 24.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ], + "text" : "prepend set folder:" } } , { "box" : { - "id" : "obj-5", - "maxclass" : "newobj", + "comment" : "", + "id" : "obj-3", + "index" : 2, + "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 283.0, 294.0, 68.0, 22.0 ], - "text" : "print #1-file" + "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ] } } , { "box" : { - "id" : "obj-4", + "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, - "outlettype" : [ "", "int" ], - "patching_rect" : [ 144.0, 321.0, 29.5, 22.0 ], - "text" : "t l 2" + "outlettype" : [ "", "bang" ], + "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ], + "text" : "t s b" } } , { "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" + "id" : "obj-5", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 246.0, 319.0, 35.0, 22.0 ], + "text" : "clear" } } , { "box" : { - "comment" : "", "id" : "obj-2", - "index" : 2, - "maxclass" : "outlet", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 129.0, 429.0, 30.0, 30.0 ] + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ], + "text" : "route int" } } @@ -440,57 +944,67 @@ "box" : { "id" : "obj-1", "maxclass" : "newobj", - "numinlets" : 1, + "numinlets" : 2, "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ], - "text" : "o.if /pstatus == folder" + "outlettype" : [ "", "" ], + "patching_rect" : [ 161.0, 210.0, 183.0, 22.0 ], + "text" : "gate 2 1" } } , { "box" : { - "fontface" : 0, - "id" : "obj-23", - "linecount" : 7, - "maxclass" : "o.expr.codebox", + "id" : "obj-33", + "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)" + "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-26", + "id" : "obj-35", "index" : 1, "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, - "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ] + "outlettype" : [ "" ], + "patching_rect" : [ 255.0, 67.0, 30.0, 30.0 ] } } , { "box" : { "comment" : "", - "id" : "obj-28", + "id" : "obj-37", "index" : 1, "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 55.0, 429.0, 30.0, 30.0 ] + "patching_rect" : [ 132.0, 383.0, 30.0, 30.0 ] } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-3", 0 ], + "destination" : [ "obj-24", 0 ], "order" : 1, "source" : [ "obj-1", 0 ] } @@ -498,7 +1012,15 @@ } , { "patchline" : { - "destination" : [ "obj-4", 0 ], + "destination" : [ "obj-30", 0 ], + "order" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], "order" : 1, "source" : [ "obj-1", 1 ] } @@ -508,79 +1030,92 @@ "patchline" : { "destination" : [ "obj-7", 0 ], "order" : 0, - "source" : [ "obj-1", 0 ] + "source" : [ "obj-1", 1 ] } } , { "patchline" : { - "destination" : [ "obj-9", 0 ], - "order" : 0, - "source" : [ "obj-1", 1 ] + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-2", 0 ] } } , { "patchline" : { - "destination" : [ "obj-1", 0 ], - "source" : [ "obj-23", 0 ] + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-2", 1 ] } } , { "patchline" : { - "destination" : [ "obj-23", 0 ], - "source" : [ "obj-26", 0 ] + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-24", 0 ] } } , { "patchline" : { - "destination" : [ "obj-2", 0 ], - "source" : [ "obj-3", 1 ] + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-30", 0 ] } } , { "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-3", 0 ] + "destination" : [ "obj-3", 0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-2", 0 ], - "source" : [ "obj-4", 1 ] + "source" : [ "obj-35", 0 ] } } , { "patchline" : { - "destination" : [ "obj-28", 0 ], - "source" : [ "obj-4", 0 ] + "destination" : [ "obj-37", 0 ], + "source" : [ "obj-5", 0 ] } } , { "patchline" : { - "destination" : [ "obj-10", 0 ], - "source" : [ "obj-7", 0 ] + "destination" : [ "obj-1", 1 ], + "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], - "source" : [ "obj-9", 0 ] + "source" : [ "obj-6", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-7", 0 ] } } ] } , - "patching_rect" : [ 736.0, 48.0, 88.0, 22.0 ], - "text" : "p file_or_folder" + "patching_rect" : [ 811.0, 192.0, 81.0, 22.0 ], + "text" : "p switch_msg" } } @@ -627,7 +1162,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 736.0, 90.0, 76.0, 22.0 ], + "patching_rect" : [ 581.0, 77.0, 76.0, 22.0 ], "text" : "o.route /path" } @@ -640,7 +1175,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "FullPacket" ], - "patching_rect" : [ 845.0, 185.0, 76.0, 22.0 ], + "patching_rect" : [ 614.0, 209.0, 43.0, 22.0 ], "text" : "o.var" } @@ -657,19 +1192,6 @@ "text" : "o.union" } - } -, { - "box" : { - "fontsize" : 12.0, - "id" : "obj-5", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "FullPacket", "FullPacket" ], - "patching_rect" : [ 736.0, 18.0, 128.0, 22.0 ], - "text" : "o.if exists(/path)" - } - } , { "box" : { @@ -1041,10 +1563,10 @@ "id" : "obj-32", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "" ], - "patching_rect" : [ 736.0, 135.0, 40.0, 22.0 ], - "text" : "t s s s" + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 880.0, 141.0, 31.0, 22.0 ], + "text" : "t s s" } } @@ -1090,9 +1612,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 318.0, 8.0, 92.0, 35.0 ], - "presentation" : 1, - "presentation_rect" : [ 1.0, 1.0, 268.0, 41.0 ] + "patching_rect" : [ 318.0, 8.0, 92.0, 35.0 ] } } @@ -1180,10 +1700,10 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 396.0, 559.0, 145.0, 20.0 ], + "patching_rect" : [ 411.0, 612.0, 145.0, 20.0 ], "presentation" : 1, "presentation_rect" : [ 1.0, 44.0, 272.0, 20.0 ], - "text" : "folder: " + "text" : "folder: CelloShortSounds" } } @@ -1288,20 +1808,6 @@ "source" : [ "obj-25", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-38", 0 ], - "source" : [ "obj-29", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-48", 0 ], - "source" : [ "obj-29", 0 ] - } - } , { "patchline" : { @@ -1313,14 +1819,14 @@ , { "patchline" : { "destination" : [ "obj-38", 0 ], - "source" : [ "obj-32", 1 ] + "source" : [ "obj-32", 0 ] } } , { "patchline" : { - "destination" : [ "obj-83", 0 ], - "source" : [ "obj-32", 2 ] + "destination" : [ "obj-43", 0 ], + "source" : [ "obj-32", 1 ] } } @@ -1365,20 +1871,6 @@ "source" : [ "obj-36", 0 ] } - } -, { - "patchline" : { - "destination" : [ "obj-27", 0 ], - "source" : [ "obj-38", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-36", 0 ], - "source" : [ "obj-38", 0 ] - } - } , { "patchline" : { @@ -1408,6 +1900,13 @@ "source" : [ "obj-42", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-58", 0 ], + "source" : [ "obj-43", 0 ] + } + } , { "patchline" : { @@ -1425,7 +1924,7 @@ } , { "patchline" : { - "destination" : [ "obj-47", 1 ], + "destination" : [ "obj-47", 0 ], "source" : [ "obj-48", 1 ] } @@ -1439,8 +1938,69 @@ } , { "patchline" : { - "destination" : [ "obj-47", 0 ], - "source" : [ "obj-5", 1 ] + "destination" : [ "obj-72", 0 ], + "order" : 0, + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-83", 0 ], + "order" : 1, + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-77", 0 ], + "source" : [ "obj-58", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "source" : [ "obj-72", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "order" : 1, + "source" : [ "obj-72", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-58", 0 ], + "midpoints" : [ 974.5, 460.727783203125, 897.50018310546875, 460.727783203125, 897.50018310546875, 311.0, 913.5, 311.0 ], + "source" : [ "obj-72", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "order" : 0, + "source" : [ "obj-72", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-77", 0 ] } } @@ -1460,7 +2020,7 @@ } , { "patchline" : { - "destination" : [ "obj-5", 0 ], + "destination" : [ "obj-48", 0 ], "source" : [ "obj-84", 2 ] } -- 2.34.1