]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
fix attempt to pass /numfiles + /pbname each time a folder gets populated
authorequilet <2237372+equilet@users.noreply.github.com>
Tue, 17 Jun 2025 22:47:12 +0000 (15:47 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Tue, 17 Jun 2025 22:47:12 +0000 (15:47 -0700)
polybuf_container~.maxpat

index e90c335bfc6346c40807ae3562d0660249492512..4ef81d0290decb5335138b47a2d2d511c98aa555 100644 (file)
                }
 ,
                "classnamespace" : "box",
-               "rect" : [ 232.0, 136.0, 1236.0, 720.0 ],
+               "rect" : [ 272.0, 164.0, 1236.0, 720.0 ],
                "openinpresentation" : 1,
                "gridsize" : [ 15.0, 15.0 ],
                "subpatcher_template" : "Untitled5_template",
                "boxes" : [                     {
                                "box" :                                 {
-                                       "fontface" : 0,
-                                       "id" : "obj-9",
-                                       "maxclass" : "o.display",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 454.0, 418.0, 209.0, 33.0 ]
-                               }
-
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-19",
-                                       "maxclass" : "message",
-                                       "numinlets" : 2,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 1056.0, 283.0, 35.0, 22.0 ],
-                                       "text" : "clear"
-                               }
-
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-29",
+                                       "id" : "obj-38",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
-                                       "outlettype" : [ "", "int" ],
+                                       "outlettype" : [ "", "" ],
                                        "patcher" :                                     {
                                                "fileversion" : 1,
                                                "appversion" :                                          {
                                                }
 ,
                                                "classnamespace" : "box",
-                                               "rect" : [ 1123.0, 178.0, 378.0, 485.0 ],
+                                               "rect" : [ 482.0, 221.0, 1000.0, 780.0 ],
                                                "gridsize" : [ 15.0, 15.0 ],
                                                "subpatcher_template" : "Untitled5_template",
                                                "boxes" : [                                                     {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-9",
-                                                                       "maxclass" : "button",
+                                                                       "id" : "obj-7",
+                                                                       "maxclass" : "newobj",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "bang" ],
-                                                                       "parameter_enable" : 0,
-                                                                       "patching_rect" : [ 269.0, 302.0, 24.0, 24.0 ]
+                                                                       "numoutlets" : 2,
+                                                                       "outlettype" : [ "", "int" ],
+                                                                       "patching_rect" : [ 541.0, 293.0, 55.0, 22.0 ],
+                                                                       "text" : "strippath"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-5",
+                                                                       "fontsize" : 12.0,
+                                                                       "id" : "obj-31",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 0,
-                                                                       "patching_rect" : [ 269.0, 341.0, 68.0, 22.0 ],
-                                                                       "text" : "print #1-file"
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ],
+                                                                       "text" : "prepend set file:"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-4",
+                                                                       "fontsize" : 12.0,
+                                                                       "id" : "obj-30",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 2,
-                                                                       "outlettype" : [ "", "int" ],
-                                                                       "patching_rect" : [ 152.0, 323.0, 64.0, 22.0 ],
-                                                                       "text" : "t l 2"
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ],
+                                                                       "text" : "prepend set folder:"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
                                                                        "comment" : "",
-                                                                       "id" : "obj-2",
+                                                                       "id" : "obj-3",
                                                                        "index" : 2,
                                                                        "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 197.0, 414.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-1",
+                                                                       "id" : "obj-6",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 2,
-                                                                       "outlettype" : [ "FullPacket", "FullPacket" ],
-                                                                       "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ],
-                                                                       "text" : "o.if /pstatus == folder"
+                                                                       "outlettype" : [ "", "bang" ],
+                                                                       "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ],
+                                                                       "text" : "t s b"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "fontface" : 0,
-                                                                       "id" : "obj-23",
-                                                                       "linecount" : 7,
-                                                                       "maxclass" : "o.expr.codebox",
-                                                                       "numinlets" : 1,
+                                                                       "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" : [ "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)"
+                                                                       "outlettype" : [ "", "" ],
+                                                                       "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ],
+                                                                       "text" : "route int"
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "box" :                                                                 {
+                                                                       "id" : "obj-1",
+                                                                       "maxclass" : "newobj",
+                                                                       "numinlets" : 2,
+                                                                       "numoutlets" : 2,
+                                                                       "outlettype" : [ "", "" ],
+                                                                       "patching_rect" : [ 161.0, 210.0, 183.0, 22.0 ],
+                                                                       "text" : "gate 2 1"
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "box" :                                                                 {
+                                                                       "id" : "obj-33",
+                                                                       "maxclass" : "newobj",
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 332.0, 327.0, 96.0, 22.0 ],
+                                                                       "text" : "prepend append"
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "box" :                                                                 {
+                                                                       "id" : "obj-24",
+                                                                       "maxclass" : "newobj",
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 71.0, 293.0, 110.0, 22.0 ],
+                                                                       "text" : "prepend readfolder"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
                                                                        "comment" : "",
-                                                                       "id" : "obj-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" : [ 152.0, 414.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 132.0, 383.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
  ],
                                                "lines" : [                                                     {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-4", 0 ],
+                                                                       "destination" : [ "obj-24", 0 ],
+                                                                       "order" : 1,
+                                                                       "source" : [ "obj-1", 0 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "patchline" :                                                           {
+                                                                       "destination" : [ "obj-30", 0 ],
+                                                                       "order" : 0,
+                                                                       "source" : [ "obj-1", 0 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "patchline" :                                                           {
+                                                                       "destination" : [ "obj-33", 0 ],
                                                                        "order" : 1,
                                                                        "source" : [ "obj-1", 1 ]
                                                                }
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-9", 0 ],
+                                                                       "destination" : [ "obj-7", 0 ],
                                                                        "order" : 0,
                                                                        "source" : [ "obj-1", 1 ]
                                                                }
 ,                                                      {
                                                                "patchline" :                                                           {
                                                                        "destination" : [ "obj-1", 0 ],
-                                                                       "source" : [ "obj-23", 0 ]
+                                                                       "source" : [ "obj-2", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-23", 0 ],
-                                                                       "source" : [ "obj-26", 0 ]
+                                                                       "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-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-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" : [ 1068.0, 135.0, 88.0, 22.0 ],
-                                       "text" : "p file_or_folder"
-                               }
-
-                       }
-,                      {
-                               "box" :                                 {
-                                       "fontsize" : 12.0,
-                                       "id" : "obj-5",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 2,
-                                       "outlettype" : [ "FullPacket", "FullPacket" ],
-                                       "patching_rect" : [ 1068.0, 105.0, 128.0, 22.0 ],
-                                       "text" : "o.if exists(/path)"
-                               }
-
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-81",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 0,
-                                       "patching_rect" : [ 1073.5, 664.0, 83.0, 22.0 ],
-                                       "text" : "print #1-folder"
+                                       "patching_rect" : [ 1064.0, 30.0, 81.0, 22.0 ],
+                                       "text" : "p switch_msg"
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "id" : "obj-7",
-                                       "maxclass" : "button",
-                                       "numinlets" : 1,
+                                       "id" : "obj-19",
+                                       "maxclass" : "message",
+                                       "numinlets" : 2,
                                        "numoutlets" : 1,
-                                       "outlettype" : [ "bang" ],
-                                       "parameter_enable" : 0,
-                                       "patching_rect" : [ 1073.5, 629.0, 24.0, 24.0 ]
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 1056.0, 283.0, 35.0, 22.0 ],
+                                       "text" : "clear"
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "id" : "obj-80",
+                                       "id" : "obj-29",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                                }
 ,
                                                "classnamespace" : "box",
-                                               "rect" : [ 1123.0, 178.0, 384.0, 572.0 ],
+                                               "rect" : [ 1123.0, 178.0, 378.0, 485.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",
                                                                        "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 ]
+                                                                       "patching_rect" : [ 269.0, 302.0, 24.0, 24.0 ]
                                                                }
 
                                                        }
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 283.0, 294.0, 68.0, 22.0 ],
+                                                                       "patching_rect" : [ 269.0, 341.0, 68.0, 22.0 ],
                                                                        "text" : "print #1-file"
                                                                }
 
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 2,
                                                                        "outlettype" : [ "", "int" ],
-                                                                       "patching_rect" : [ 144.0, 321.0, 29.5, 22.0 ],
+                                                                       "patching_rect" : [ 152.0, 323.0, 64.0, 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" :                                                                 {
                                                                        "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 129.0, 429.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 197.0, 414.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
                                                                        "maxclass" : "inlet",
                                                                        "numinlets" : 0,
                                                                        "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
+                                                                       "outlettype" : [ "FullPacket" ],
                                                                        "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ]
                                                                }
 
                                                                        "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 55.0, 429.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 152.0, 414.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" :                                                           {
                                                                        "source" : [ "obj-26", 0 ]
                                                                }
 
-                                                       }
-,                                                      {
-                                                               "patchline" :                                                           {
-                                                                       "destination" : [ "obj-2", 0 ],
-                                                                       "source" : [ "obj-3", 1 ]
-                                                               }
-
-                                                       }
-,                                                      {
-                                                               "patchline" :                                                           {
-                                                                       "destination" : [ "obj-28", 0 ],
-                                                                       "source" : [ "obj-3", 0 ]
-                                                               }
-
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
                                                                        "source" : [ "obj-4", 0 ]
                                                                }
 
-                                                       }
-,                                                      {
-                                                               "patchline" :                                                           {
-                                                                       "destination" : [ "obj-10", 0 ],
-                                                                       "source" : [ "obj-7", 0 ]
-                                                               }
-
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
  ]
                                        }
 ,
-                                       "patching_rect" : [ 1068.0, 62.0, 88.0, 22.0 ],
+                                       "patching_rect" : [ 1068.0, 135.0, 88.0, 22.0 ],
                                        "text" : "p file_or_folder"
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "id" : "obj-79",
-                                       "maxclass" : "comment",
+                                       "fontsize" : 12.0,
+                                       "id" : "obj-5",
+                                       "maxclass" : "newobj",
                                        "numinlets" : 1,
-                                       "numoutlets" : 0,
-                                       "patching_rect" : [ 406.0, 15.5, 150.0, 20.0 ],
-                                       "text" : "<< change to be file only",
-                                       "textcolor" : [ 0.76078431372549, 0.129411764705882, 0.129411764705882, 1.0 ]
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "FullPacket", "FullPacket" ],
+                                       "patching_rect" : [ 1068.0, 105.0, 128.0, 22.0 ],
+                                       "text" : "o.if exists(/path)"
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "id" : "obj-77",
+                                       "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" : [ "" ],
-                                       "patching_rect" : [ 965.0, 363.0, 107.0, 22.0 ],
-                                       "text" : "sprintf symout %s/"
+                                       "outlettype" : [ "bang" ],
+                                       "parameter_enable" : 0,
+                                       "patching_rect" : [ 1073.5, 629.0, 24.0, 24.0 ]
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "id" : "obj-72",
+                                       "id" : "obj-80",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
-                                       "numoutlets" : 3,
-                                       "outlettype" : [ "", "", "" ],
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "int" ],
                                        "patcher" :                                     {
                                                "fileversion" : 1,
                                                "appversion" :                                          {
                                                }
 ,
                                                "classnamespace" : "box",
-                                               "rect" : [ 84.0, 131.0, 608.0, 392.0 ],
+                                               "rect" : [ 1123.0, 178.0, 384.0, 572.0 ],
                                                "gridsize" : [ 15.0, 15.0 ],
                                                "subpatcher_template" : "Untitled5_template",
                                                "boxes" : [                                                     {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-5",
-                                                                       "maxclass" : "message",
-                                                                       "numinlets" : 2,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 491.0, 276.0, 78.0, 22.0 ],
-                                                                       "text" : "set folder: $1"
-                                                               }
-
-                                                       }
-,                                                      {
-                                                               "box" :                                                                 {
-                                                                       "id" : "obj-3",
+                                                                       "id" : "obj-10",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 2,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 154.0, 220.0, 123.0, 22.0 ],
-                                                                       "text" : "sprintf symout %s%s/"
-                                                               }
-
-                                                       }
-,                                                      {
-                                                               "box" :                                                                 {
-                                                                       "comment" : "",
-                                                                       "id" : "obj-2",
-                                                                       "index" : 3,
-                                                                       "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 490.0, 308.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 269.0, 342.0, 83.0, 22.0 ],
+                                                                       "text" : "print #1-folder"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "comment" : "",
-                                                                       "id" : "obj-1",
-                                                                       "index" : 2,
-                                                                       "maxclass" : "outlet",
+                                                                       "id" : "obj-9",
+                                                                       "maxclass" : "button",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 0,
-                                                                       "patching_rect" : [ 323.0, 308.0, 30.0, 30.0 ]
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "bang" ],
+                                                                       "parameter_enable" : 0,
+                                                                       "patching_rect" : [ 165.0, 293.0, 24.0, 24.0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-53",
-                                                                       "maxclass" : "newobj",
+                                                                       "id" : "obj-7",
+                                                                       "maxclass" : "button",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 323.0, 255.0, 110.0, 22.0 ],
-                                                                       "text" : "prepend readfolder"
+                                                                       "outlettype" : [ "bang" ],
+                                                                       "parameter_enable" : 0,
+                                                                       "patching_rect" : [ 80.0, 293.0, 24.0, 24.0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-57",
+                                                                       "id" : "obj-5",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 47.0, 147.0, 85.0, 22.0 ],
-                                                                       "text" : "prepend prefix"
+                                                                       "numoutlets" : 0,
+                                                                       "patching_rect" : [ 283.0, 294.0, 68.0, 22.0 ],
+                                                                       "text" : "print #1-file"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-23",
+                                                                       "id" : "obj-4",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 2,
-                                                                       "outlettype" : [ "", "FullPacket" ],
-                                                                       "patching_rect" : [ 460.0, 69.0, 109.0, 22.0 ],
-                                                                       "text" : "o.route /soundpath"
+                                                                       "outlettype" : [ "", "int" ],
+                                                                       "patching_rect" : [ 144.0, 321.0, 29.5, 22.0 ],
+                                                                       "text" : "t l 2"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-61",
+                                                                       "id" : "obj-3",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 0,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 460.0, 39.0, 35.0, 22.0 ],
-                                                                       "text" : "r osc"
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 2,
+                                                                       "outlettype" : [ "", "int" ],
+                                                                       "patching_rect" : [ 55.0, 321.0, 29.5, 22.0 ],
+                                                                       "text" : "t l 1"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-66",
-                                                                       "maxclass" : "newobj",
+                                                                       "comment" : "",
+                                                                       "id" : "obj-2",
+                                                                       "index" : 2,
+                                                                       "maxclass" : "outlet",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 3,
-                                                                       "outlettype" : [ "bang", "", "int" ],
-                                                                       "patching_rect" : [ 323.0, 147.0, 123.0, 22.0 ],
-                                                                       "text" : "t b s 1"
+                                                                       "numoutlets" : 0,
+                                                                       "patching_rect" : [ 129.0, 429.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-67",
+                                                                       "id" : "obj-1",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 2,
+                                                                       "numinlets" : 1,
                                                                        "numoutlets" : 2,
-                                                                       "outlettype" : [ "", "" ],
-                                                                       "patching_rect" : [ 323.0, 182.0, 156.0, 22.0 ],
-                                                                       "text" : "zl.reg"
+                                                                       "outlettype" : [ "FullPacket", "FullPacket" ],
+                                                                       "patching_rect" : [ 50.0, 255.0, 121.0, 22.0 ],
+                                                                       "text" : "o.if /pstatus == folder"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-9",
-                                                                       "maxclass" : "newobj",
-                                                                       "numinlets" : 2,
-                                                                       "numoutlets" : 1,
-                                                                       "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 323.0, 220.0, 123.0, 22.0 ],
-                                                                       "text" : "sprintf symout %s%s"
+                                                                       "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-69",
+                                                                       "id" : "obj-26",
                                                                        "index" : 1,
                                                                        "maxclass" : "inlet",
                                                                        "numinlets" : 0,
                                                                        "numoutlets" : 1,
                                                                        "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 323.0, 45.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
                                                                        "comment" : "",
-                                                                       "id" : "obj-70",
+                                                                       "id" : "obj-28",
                                                                        "index" : 1,
                                                                        "maxclass" : "outlet",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 0,
-                                                                       "patching_rect" : [ 47.0, 308.0, 30.0, 30.0 ]
+                                                                       "patching_rect" : [ 55.0, 429.0, 30.0, 30.0 ]
                                                                }
 
                                                        }
  ],
                                                "lines" : [                                                     {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-57", 0 ],
+                                                                       "destination" : [ "obj-3", 0 ],
                                                                        "order" : 1,
-                                                                       "source" : [ "obj-23", 0 ]
+                                                                       "source" : [ "obj-1", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-67", 1 ],
-                                                                       "order" : 0,
-                                                                       "source" : [ "obj-23", 0 ]
+                                                                       "destination" : [ "obj-4", 0 ],
+                                                                       "order" : 1,
+                                                                       "source" : [ "obj-1", 1 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-2", 0 ],
-                                                                       "source" : [ "obj-5", 0 ]
+                                                                       "destination" : [ "obj-7", 0 ],
+                                                                       "order" : 0,
+                                                                       "source" : [ "obj-1", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-1", 0 ],
-                                                                       "source" : [ "obj-53", 0 ]
+                                                                       "destination" : [ "obj-9", 0 ],
+                                                                       "order" : 0,
+                                                                       "source" : [ "obj-1", 1 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-70", 0 ],
-                                                                       "source" : [ "obj-57", 0 ]
+                                                                       "destination" : [ "obj-1", 0 ],
+                                                                       "source" : [ "obj-23", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
                                                                        "destination" : [ "obj-23", 0 ],
-                                                                       "source" : [ "obj-61", 0 ]
+                                                                       "source" : [ "obj-26", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-5", 0 ],
-                                                                       "order" : 0,
-                                                                       "source" : [ "obj-66", 1 ]
+                                                                       "destination" : [ "obj-2", 0 ],
+                                                                       "source" : [ "obj-3", 1 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-67", 0 ],
-                                                                       "source" : [ "obj-66", 0 ]
+                                                                       "destination" : [ "obj-28", 0 ],
+                                                                       "source" : [ "obj-3", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-9", 1 ],
-                                                                       "order" : 1,
-                                                                       "source" : [ "obj-66", 1 ]
+                                                                       "destination" : [ "obj-2", 0 ],
+                                                                       "source" : [ "obj-4", 1 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-9", 0 ],
-                                                                       "source" : [ "obj-67", 0 ]
+                                                                       "destination" : [ "obj-28", 0 ],
+                                                                       "source" : [ "obj-4", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-66", 0 ],
-                                                                       "source" : [ "obj-69", 0 ]
+                                                                       "destination" : [ "obj-10", 0 ],
+                                                                       "source" : [ "obj-7", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-53", 0 ],
+                                                                       "destination" : [ "obj-5", 0 ],
                                                                        "source" : [ "obj-9", 0 ]
                                                                }
 
  ]
                                        }
 ,
-                                       "patching_rect" : [ 965.0, 429.0, 84.0, 22.0 ],
-                                       "text" : "p"
-                               }
-
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-43",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 904.0, 276.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"
+                                       "patching_rect" : [ 1068.0, 62.0, 88.0, 22.0 ],
+                                       "text" : "p file_or_folder"
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "autopopulate" : 1,
-                                       "depth" : 3,
-                                       "id" : "obj-58",
-                                       "items" : [ "100618_02 Oboe Gestures", ",", "100622_04 Fast Cello Fragments", ",", "4_Anton_Glass", ",", "4_Anton_Glass/GlassWav", ",", "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", ",", "SoundEffectsLibrary/Cinematic Metal - Construction Kit", ",", "SteenEdited", ",", "Taghavi", ",", "Terra", ",", "ThimbleGong", ",", "tongue", ",", "trumpet", ",", "VIBE", ",", "VIBEClickySet", ",", "Watrbubb", ",", "Whistling", ",", "Wood", ",", "woodenRattle" ],
-                                       "maxclass" : "umenu",
+                                       "id" : "obj-79",
+                                       "maxclass" : "comment",
                                        "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 ],
-                                       "types" : "fold"
+                                       "numoutlets" : 0,
+                                       "patching_rect" : [ 406.0, 15.5, 150.0, 20.0 ],
+                                       "text" : "<< change to be file only",
+                                       "textcolor" : [ 0.76078431372549, 0.129411764705882, 0.129411764705882, 1.0 ]
                                }
 
                        }
 ,                      {
                                "box" :                                 {
-                                       "fontsize" : 12.0,
-                                       "id" : "obj-15",
+                                       "id" : "obj-77",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 411.0, 220.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" :                                          {
                                                }
 ,
                                                "classnamespace" : "box",
-                                               "rect" : [ 482.0, 221.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"
+                                                                       "id" : "obj-5",
+                                                                       "maxclass" : "message",
+                                                                       "numinlets" : 2,
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 491.0, 276.0, 78.0, 22.0 ],
+                                                                       "text" : "set folder: $1"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "fontsize" : 12.0,
-                                                                       "id" : "obj-31",
+                                                                       "id" : "obj-3",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 1,
+                                                                       "numinlets" : 2,
                                                                        "numoutlets" : 1,
                                                                        "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 565.0, 346.0, 94.0, 22.0 ],
-                                                                       "text" : "prepend set file:"
+                                                                       "patching_rect" : [ 154.0, 220.0, 123.0, 22.0 ],
+                                                                       "text" : "sprintf symout %s%s/"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "fontsize" : 12.0,
-                                                                       "id" : "obj-30",
+                                                                       "comment" : "",
+                                                                       "id" : "obj-2",
+                                                                       "index" : 3,
+                                                                       "maxclass" : "outlet",
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 0,
+                                                                       "patching_rect" : [ 490.0, 308.0, 30.0, 30.0 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "box" :                                                                 {
+                                                                       "comment" : "",
+                                                                       "id" : "obj-1",
+                                                                       "index" : 2,
+                                                                       "maxclass" : "outlet",
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 0,
+                                                                       "patching_rect" : [ 323.0, 308.0, 30.0, 30.0 ]
+                                                               }
+
+                                                       }
+,                                                      {
+                                                               "box" :                                                                 {
+                                                                       "id" : "obj-53",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 1,
                                                                        "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 435.0, 351.0, 109.0, 22.0 ],
-                                                                       "text" : "prepend set folder:"
+                                                                       "patching_rect" : [ 323.0, 255.0, 110.0, 22.0 ],
+                                                                       "text" : "prepend readfolder"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "comment" : "",
-                                                                       "id" : "obj-3",
-                                                                       "index" : 2,
-                                                                       "maxclass" : "outlet",
+                                                                       "id" : "obj-57",
+                                                                       "maxclass" : "newobj",
                                                                        "numinlets" : 1,
-                                                                       "numoutlets" : 0,
-                                                                       "patching_rect" : [ 667.0, 383.0, 30.0, 30.0 ]
+                                                                       "numoutlets" : 1,
+                                                                       "outlettype" : [ "" ],
+                                                                       "patching_rect" : [ 47.0, 147.0, 85.0, 22.0 ],
+                                                                       "text" : "prepend prefix"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-6",
+                                                                       "id" : "obj-23",
                                                                        "maxclass" : "newobj",
                                                                        "numinlets" : 1,
                                                                        "numoutlets" : 2,
-                                                                       "outlettype" : [ "", "bang" ],
-                                                                       "patching_rect" : [ 304.0, 144.0, 31.0, 22.0 ],
-                                                                       "text" : "t s b"
+                                                                       "outlettype" : [ "", "FullPacket" ],
+                                                                       "patching_rect" : [ 460.0, 69.0, 109.0, 22.0 ],
+                                                                       "text" : "o.route /soundpath"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-5",
-                                                                       "maxclass" : "message",
-                                                                       "numinlets" : 2,
+                                                                       "id" : "obj-61",
+                                                                       "maxclass" : "newobj",
+                                                                       "numinlets" : 0,
                                                                        "numoutlets" : 1,
                                                                        "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 246.0, 319.0, 35.0, 22.0 ],
-                                                                       "text" : "clear"
+                                                                       "patching_rect" : [ 460.0, 39.0, 35.0, 22.0 ],
+                                                                       "text" : "r osc"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-2",
+                                                                       "id" : "obj-66",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 2,
-                                                                       "numoutlets" : 2,
-                                                                       "outlettype" : [ "", "" ],
-                                                                       "patching_rect" : [ 93.0, 131.0, 52.0, 22.0 ],
-                                                                       "text" : "route int"
+                                                                       "numinlets" : 1,
+                                                                       "numoutlets" : 3,
+                                                                       "outlettype" : [ "bang", "", "int" ],
+                                                                       "patching_rect" : [ 323.0, 147.0, 123.0, 22.0 ],
+                                                                       "text" : "t b s 1"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-1",
+                                                                       "id" : "obj-67",
                                                                        "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"
+                                                                       "patching_rect" : [ 323.0, 182.0, 156.0, 22.0 ],
+                                                                       "text" : "zl.reg"
                                                                }
 
                                                        }
 ,                                                      {
                                                                "box" :                                                                 {
-                                                                       "id" : "obj-24",
+                                                                       "id" : "obj-9",
                                                                        "maxclass" : "newobj",
-                                                                       "numinlets" : 1,
+                                                                       "numinlets" : 2,
                                                                        "numoutlets" : 1,
                                                                        "outlettype" : [ "" ],
-                                                                       "patching_rect" : [ 71.0, 293.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" : [ "" ],
-                                                                       "patching_rect" : [ 255.0, 67.0, 30.0, 30.0 ]
+                                                                       "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-24", 0 ],
+                                                                       "destination" : [ "obj-57", 0 ],
                                                                        "order" : 1,
-                                                                       "source" : [ "obj-1", 0 ]
+                                                                       "source" : [ "obj-23", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-30", 0 ],
+                                                                       "destination" : [ "obj-67", 1 ],
                                                                        "order" : 0,
-                                                                       "source" : [ "obj-1", 0 ]
-                                                               }
-
-                                                       }
-,                                                      {
-                                                               "patchline" :                                                           {
-                                                                       "destination" : [ "obj-33", 0 ],
-                                                                       "order" : 1,
-                                                                       "source" : [ "obj-1", 1 ]
+                                                                       "source" : [ "obj-23", 0 ]
                                                                }
 
                                                        }
 ,                                                      {
                                                                "patchline" :                                                           {
-                                                                       "destination" : [ "obj-7", 0 ],
-                                                                       "order" : 0,
-                                                                       "source" : [ "obj-1", 1 ]
+                                                                       "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" : [ 814.0, 276.0, 81.0, 22.0 ],
-                                       "text" : "p switch_msg"
+                                       "patching_rect" : [ 965.0, 429.0, 84.0, 22.0 ],
+                                       "text" : "p"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-43",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 904.0, 276.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,
+                                       "depth" : 3,
+                                       "id" : "obj-58",
+                                       "items" : "<empty>",
+                                       "maxclass" : "umenu",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 3,
+                                       "outlettype" : [ "int", "", "" ],
+                                       "parameter_enable" : 0,
+                                       "patching_rect" : [ 904.0, 321.0, 141.0, 22.0 ],
+                                       "presentation" : 1,
+                                       "presentation_rect" : [ 1.0, 4.0, 272.0, 22.0 ],
+                                       "types" : "fold"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "fontsize" : 12.0,
+                                       "id" : "obj-15",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 411.0, 220.0, 127.0, 22.0 ],
+                                       "text" : "prepend set file/folder:"
                                }
 
                        }
                                                "gridsize" : [ 15.0, 15.0 ],
                                                "subpatcher_template" : "Untitled5_template",
                                                "boxes" : [                                                     {
-                                                               "box" :                                                                 {
-                                                                       "id" : "obj-6",
-                                                                       "maxclass" : "newobj",
-                                                                       "numinlets" : 1,
-                                                                       "numoutlets" : 0,
-                                                                       "patching_rect" : [ 231.0, 354.0, 83.0, 22.0 ],
-                                                                       "text" : "print #1-folder"
-                                                               }
-
-                                                       }
-,                                                      {
                                                                "box" :                                                                 {
                                                                        "id" : "obj-5",
                                                                        "maxclass" : "newobj",
                                                "lines" : [                                                     {
                                                                "patchline" :                                                           {
                                                                        "destination" : [ "obj-22", 0 ],
-                                                                       "order" : 1,
-                                                                       "source" : [ "obj-1", 0 ]
-                                                               }
-
-                                                       }
-,                                                      {
-                                                               "patchline" :                                                           {
-                                                                       "destination" : [ "obj-6", 0 ],
-                                                                       "order" : 0,
                                                                        "source" : [ "obj-1", 0 ]
                                                                }
 
                                        "presentation_rect" : [ 236.0, 45.0, 35.0, 35.0 ]
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-32",
-                                       "maxclass" : "newobj",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 2,
-                                       "outlettype" : [ "", "" ],
-                                       "patching_rect" : [ 892.0, 220.0, 31.0, 22.0 ],
-                                       "text" : "t s s"
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "source" : [ "obj-3", 0 ]
                                }
 
-                       }
-,                      {
-                               "patchline" :                           {
-                                       "destination" : [ "obj-38", 0 ],
-                                       "source" : [ "obj-32", 0 ]
-                               }
-
-                       }
-,                      {
-                               "patchline" :                           {
-                                       "destination" : [ "obj-43", 0 ],
-                                       "source" : [ "obj-32", 1 ]
-                               }
-
                        }
 ,                      {
                                "patchline" :                           {
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-21", 1 ],
-                                       "order" : 1,
-                                       "source" : [ "obj-42", 0 ]
-                               }
-
-                       }
-,                      {
-                               "patchline" :                           {
-                                       "destination" : [ "obj-9", 0 ],
-                                       "order" : 0,
                                        "source" : [ "obj-42", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-32", 0 ],
+                                       "destination" : [ "obj-43", 0 ],
                                        "source" : [ "obj-48", 0 ]
                                }
 
                        }
  ],
                "dependency_cache" : [                  {
-                               "name" : "o.display.mxo",
-                               "type" : "iLaX"
-                       }
-,                      {
                                "name" : "o.expr.codebox.mxo",
                                "type" : "iLaX"
                        }