]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
now allows for a single file
authorequilet <2237372+equilet@users.noreply.github.com>
Wed, 23 Apr 2025 20:13:20 +0000 (13:13 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Wed, 23 Apr 2025 20:13:20 +0000 (13:13 -0700)
polybuf_container~.maxhelp
polybuf_container~.maxpat

index de8755e09830cb596077e92524e03a702b50eb59..40f0488a37c9691c375f456ed5e41c674191fc7e 100644 (file)
                "gridsize" : [ 15.0, 15.0 ],
                "subpatcher_template" : "Untitled5_template",
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "id" : "obj-26",
+                                       "maxclass" : "message",
+                                       "numinlets" : 2,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 939.0, 341.0, 35.0, 22.0 ],
+                                       "text" : "clear"
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "fontface" : 0,
                                        "id" : "obj-25",
@@ -60,8 +72,7 @@
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 918.0, 283.0, 150.0, 33.0 ],
-                                       "text" : "/variety : 0.99"
+                                       "patching_rect" : [ 918.0, 283.0, 150.0, 33.0 ]
                                }
 
                        }
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
                                        "patching_rect" : [ 593.0, 345.0, 260.0, 72.0 ],
-                                       "text" : "/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/100618_02 Oboe Gestures/\""
+                                       "text" : "/path : \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/stretchable_audio/BubblyCreek14mL.aiff\""
                                }
 
                        }
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
                                        "patching_rect" : [ 64.0, 381.0, 138.0, 22.0 ],
-                                       "text" : "100618_02am.aiff"
+                                       "text" : "BubblyCreek14mL.aiff"
                                }
 
                        }
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
                                        "patching_rect" : [ 331.0, 345.0, 250.0, 97.0 ],
-                                       "text" : "/rpercent : 0.172172,\n/variety : 1.,\n/numfiles : 73,\n/pbname : \"audiocollection\",\n/last : 16,\n/buffer/name : \"audiocollection.17\""
+                                       "text" : "/rpercent : 0.977978,\n/variety : 1.,\n/numfiles : 1,\n/pbname : \"audiocollection\",\n/last : 5,\n/buffer/name : \"audiocollection.1\""
                                }
 
                        }
                                        "source" : [ "obj-25", 0 ]
                                }
 
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-9", 0 ],
+                                       "source" : [ "obj-26", 0 ]
+                               }
+
                        }
 ,                      {
                                "patchline" :                           {
index 73a563e0845fbb31ace09b3aa4385ac72bd52878..b77f50784e09f41912f969d2afe443c0db075bc4 100644 (file)
                }
 ,
                "classnamespace" : "box",
-               "rect" : [ 361.0, 200.0, 1079.0, 657.0 ],
+               "rect" : [ 500.0, 221.0, 1082.0, 722.0 ],
                "openinpresentation" : 1,
                "gridsize" : [ 15.0, 15.0 ],
                "toolbars_unpinned_last_save" : 15,
                "subpatcher_template" : "Untitled5_template",
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "fontsize" : 12.0,
+                                       "id" : "obj-15",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 320.0, 424.0, 127.0, 22.0 ],
+                                       "text" : "prepend set file/folder:"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-24",
+                                       "maxclass" : "number",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "bang" ],
+                                       "parameter_enable" : 0,
+                                       "patching_rect" : [ 486.0, 100.0, 50.0, 22.0 ]
+                               }
+
+                       }
+,                      {
+                               "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" : [ 59.0, 106.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" :                                                                 {
+                                                                       "id" : "obj-15",
+                                                                       "maxclass" : "newobj",
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 2,
+                                                                       "outlettype" : [ "", "int" ],
+                                                                       "patching_rect" : [ 479.0, 293.0, 55.0, 22.0 ],
+                                                                       "text" : "strippath"
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "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" : [ 64.0, 310.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-15", 0 ],
+                                                                       "order" : 0,
+                                                                       "source" : [ "obj-1", 0 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "patchline" :                                                           {
+                                                                       "destination" : [ "obj-24", 0 ],
+                                                                       "order" : 1,
+                                                                       "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-30", 0 ],
+                                                                       "source" : [ "obj-15", 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 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "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" : [ 347.0, 170.0, 81.0, 22.0 ],
+                                       "text" : "p switch_msg"
+                               }
+
+                       }
+,                      {
+                               "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" : [ 886.0, 266.0, 1000.0, 780.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, 65.0, 22.0 ],
+                                                                       "text" : "print 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, 51.0, 22.0 ],
+                                                                       "text" : "print 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" : [ "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" : [ 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" : [ 736.0, 48.0, 88.0, 22.0 ],
+                                       "text" : "p file_or_folder"
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "id" : "obj-10",
                                        "maxclass" : "newobj",
                                        "patching_rect" : [ 266.0, 292.0, 24.0, 24.0 ]
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "fontface" : 0,
-                                       "id" : "obj-19",
-                                       "maxclass" : "o.display",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 577.0, 527.0, 150.0, 33.0 ]
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "maxclass" : "comment",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 698.0, 277.0, 115.0, 20.0 ],
+                                       "patching_rect" : [ 698.0, 327.0, 115.0, 20.0 ],
                                        "text" : "blend in polybuf info"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "FullPacket" ],
-                                       "patching_rect" : [ 605.0, 99.0, 76.0, 22.0 ],
+                                       "patching_rect" : [ 736.0, 90.0, 76.0, 22.0 ],
                                        "text" : "o.route /path"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 646.0, 208.0, 76.0, 22.0 ],
+                                       "patching_rect" : [ 845.0, 185.0, 76.0, 22.0 ],
                                        "text" : "o.var"
                                }
 
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 646.0, 276.0, 48.0, 22.0 ],
+                                       "patching_rect" : [ 646.0, 326.0, 48.0, 22.0 ],
                                        "text" : "o.union"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "FullPacket", "FullPacket" ],
-                                       "patching_rect" : [ 631.0, 38.0, 128.0, 22.0 ],
+                                       "patching_rect" : [ 736.0, 18.0, 128.0, 22.0 ],
                                        "text" : "o.if exists(/path)"
                                }
 
  ]
                                        }
 ,
-                                       "patching_rect" : [ 766.0, 240.0, 88.0, 22.0 ],
-                                       "text" : "p clear_routine"
+                                       "patching_rect" : [ 675.0, 296.0, 125.0, 22.0 ],
+                                       "text" : "p clear_routine_&_init"
                                }
 
                        }
                                        "text" : "getbufferlist"
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-15",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 2,
-                                       "outlettype" : [ "", "int" ],
-                                       "patching_rect" : [ 736.0, 208.0, 55.0, 22.0 ],
-                                       "text" : "strippath"
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                                "rect" : [ 34.0, 87.0, 670.0, 769.0 ],
                                                "gridsize" : [ 15.0, 15.0 ],
                                                "subpatcher_template" : "Untitled5_template",
-                                               "visible" : 1,
                                                "boxes" : [                                                     {
                                                                "box" :                                                                 {
                                                                        "id" : "obj-3",
                                                                "box" :                                                                 {
                                                                        "fontface" : 0,
                                                                        "id" : "obj-28",
-                                                                       "linecount" : 11,
+                                                                       "linecount" : 14,
                                                                        "maxclass" : "o.expr.codebox",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 2,
                                                                        "outlettype" : [ "FullPacket", "FullPacket" ],
-                                                                       "patching_rect" : [ 118.0, 504.0, 342.0, 159.0 ],
-                                                                       "text" : "/last ??= 0, \n/choice ??= 0,\n\nif(/rpercent < /variety,\n  progn(\n    /buffer/name = /pbname + \".\" + (/choice + 1), \n    /last = /choice\n  ),\n  /buffer/name = /pbname + \".\" + (/last + 1)\n), \ndelete(/choice)"
+                                                                       "patching_rect" : [ 118.0, 502.0, 355.0, 198.0 ],
+                                                                       "text" : "/last ??= 0, \n/choice ??= 0,\n\nif(/numfiles == 1, \n  /buffer/name = /pbname + \".\" + 1,\n  if(/rpercent < /variety,\n    progn(\n      /buffer/name = /pbname + \".\" + (/choice + 1), \n      /last = /choice\n    ),\n    /buffer/name = /pbname + \".\" + (/last + 1)\n  )\n), \ndelete(/choice)"
                                                                }
 
                                                        }
                                                                        "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 118.0, 692.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 118.0, 725.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 912.0, 559.0, 74.0, 22.0 ],
+                                       "patching_rect" : [ 880.0, 532.5, 74.0, 22.0 ],
                                        "text" : "o.pack /path"
                                }
 
                                        "id" : "obj-32",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
-                                       "numoutlets" : 4,
-                                       "outlettype" : [ "", "", "", "bang" ],
-                                       "patching_rect" : [ 736.0, 135.0, 235.0, 22.0 ],
-                                       "text" : "t s s s b"
+                                       "numoutlets" : 3,
+                                       "outlettype" : [ "", "", "" ],
+                                       "patching_rect" : [ 736.0, 135.0, 40.0, 22.0 ],
+                                       "text" : "t s s s"
                                }
 
                        }
                                        "maxclass" : "comment",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 936.0, 589.0, 112.0, 20.0 ],
+                                       "patching_rect" : [ 904.0, 589.0, 112.0, 20.0 ],
                                        "text" : "to save mechanism"
                                }
 
                                        "maxclass" : "outlet",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 912.0, 589.0, 22.0, 22.0 ]
+                                       "patching_rect" : [ 880.0, 589.0, 22.0, 22.0 ]
                                }
 
                        }
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 4,
-                                       "outlettype" : [ "clear", "bang", "<foldername>", "int" ],
+                                       "outlettype" : [ "clear", "bang", "<name>", "int" ],
                                        "patching_rect" : [ 179.0, 152.0, 139.0, 22.0 ],
-                                       "text" : "t clear b <foldername> 0"
+                                       "text" : "t clear b <name> 0"
                                }
 
                        }
                                        "patching_rect" : [ 51.0, 16.0, 26.0, 26.0 ]
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "fontsize" : 12.0,
-                                       "id" : "obj-30",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 396.0, 521.0, 109.0, 22.0 ],
-                                       "text" : "prepend set folder:"
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "text" : "t 1 getcount"
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-24",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 347.0, 170.0, 110.0, 22.0 ],
-                                       "text" : "prepend readfolder"
-                               }
-
                        }
  ],
                "lines" : [                     {
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-30", 0 ],
+                                       "destination" : [ "obj-27", 0 ],
                                        "source" : [ "obj-15", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-36", 0 ],
+                                       "destination" : [ "obj-38", 0 ],
                                        "source" : [ "obj-24", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-13", 0 ],
-                                       "source" : [ "obj-3", 0 ]
+                                       "destination" : [ "obj-24", 0 ],
+                                       "source" : [ "obj-29", 1 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-27", 0 ],
-                                       "source" : [ "obj-30", 0 ]
+                                       "destination" : [ "obj-48", 0 ],
+                                       "source" : [ "obj-29", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-15", 0 ],
-                                       "source" : [ "obj-32", 0 ]
+                                       "destination" : [ "obj-13", 0 ],
+                                       "source" : [ "obj-3", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-24", 0 ],
+                                       "destination" : [ "obj-38", 0 ],
                                        "source" : [ "obj-32", 1 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-30", 0 ],
+                                       "destination" : [ "obj-15", 0 ],
                                        "source" : [ "obj-34", 2 ]
                                }
 
                                        "source" : [ "obj-36", 0 ]
                                }
 
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-27", 0 ],
+                                       "source" : [ "obj-38", 1 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-36", 0 ],
+                                       "source" : [ "obj-38", 0 ]
+                               }
+
                        }
 ,                      {
                                "patchline" :                           {
                                        "source" : [ "obj-41", 0 ]
                                }
 
-                       }
-,                      {
-                               "patchline" :                           {
-                                       "destination" : [ "obj-19", 0 ],
-                                       "order" : 1,
-                                       "source" : [ "obj-42", 0 ]
-                               }
-
                        }
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-21", 1 ],
-                                       "order" : 0,
                                        "source" : [ "obj-42", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-47", 0 ],
-                                       "source" : [ "obj-5", 1 ]
+                                       "destination" : [ "obj-29", 0 ],
+                                       "source" : [ "obj-5", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-48", 0 ],
-                                       "source" : [ "obj-5", 0 ]
+                                       "destination" : [ "obj-47", 0 ],
+                                       "source" : [ "obj-5", 1 ]
                                }
 
                        }
                        }
  ],
                "dependency_cache" : [                  {
-                               "name" : "o.display.mxo",
-                               "type" : "iLaX"
-                       }
-,                      {
                                "name" : "o.expr.codebox.mxo",
                                "type" : "iLaX"
                        }