]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
developed path solution
authorequilet <2237372+equilet@users.noreply.github.com>
Tue, 10 Jun 2025 23:55:58 +0000 (16:55 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Tue, 10 Jun 2025 23:55:58 +0000 (16:55 -0700)
misc/soundfile_path_solution.maxpat

index 0f745ae0e13d11b60c69fa2d6890a6a433e74b3f..59355d71bd5ee4eb6b8aa1d3e6849d4ad3b4f84e 100644 (file)
                "rect" : [ 627.0, 158.0, 1000.0, 780.0 ],
                "gridsize" : [ 15.0, 15.0 ],
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "id" : "obj-48",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 187.0, 63.0, 54.0, 22.0 ],
+                                       "text" : "o.accum"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-47",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 0,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 187.0, 20.0, 43.0, 22.0 ],
+                                       "text" : "r store"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-46",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 0,
+                                       "patching_rect" : [ 190.0, 652.0, 45.0, 22.0 ],
+                                       "text" : "s store"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-19",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "FullPacket" ],
+                                       "patching_rect" : [ 190.0, 612.0, 115.0, 22.0 ],
+                                       "text" : "o.prepend /engine/1"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-17",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "FullPacket" ],
+                                       "patching_rect" : [ 190.0, 584.0, 74.0, 22.0 ],
+                                       "text" : "o.pack /path"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "fontface" : 0,
+                                       "id" : "obj-44",
+                                       "linecount" : 2,
+                                       "maxclass" : "o.compose",
+                                       "numinlets" : 2,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 68.0, 177.5, 176.0, 36.0 ],
+                                       "saved_bundle_data" : [ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 47, 101, 110, 103, 105, 110, 101, 47, 49, 47, 112, 97, 116, 104, 0, 0, 44, 115, 0, 0, 84, 101, 114, 114, 97, 0, 0, 0 ],
+                                       "saved_bundle_length" : 48,
+                                       "text" : "/engine/1/path : \"Terra\""
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-43",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 68.0, 386.0, 94.0, 22.0 ],
+                                       "text" : "prepend symbol"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-42",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "FullPacket" ],
+                                       "patching_rect" : [ 68.0, 343.0, 125.0, 22.0 ],
+                                       "text" : "o.route /engine/1/path"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-40",
+                                       "linecount" : 4,
+                                       "maxclass" : "message",
+                                       "numinlets" : 2,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 724.0, 664.0, 194.0, 62.0 ],
+                                       "text" : "readfolder \"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/Terra/\""
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-36",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 899.0, 627.0, 110.0, 22.0 ],
+                                       "text" : "prepend readfolder"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-32",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "int" ],
+                                       "patching_rect" : [ 227.0, 485.0, 55.0, 22.0 ],
+                                       "text" : "strippath"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "autopopulate" : 1,
+                                       "id" : "obj-8",
+                                       "items" : [ "ED_01terraT.aiff", ",", "ED_04terraT.aiff", ",", "ED_06terraT.aiff", ",", "ED_07terra.aiff", ",", "ED_09terra.aiff", ",", "ED_12terra.aiff", ",", "ED_13terra.aiff", ",", "ED_14terra.aiff", ",", "ED_15terra.aiff", ",", "ED_16terra.aiff", ",", "ED_18terra.aiff", ",", "ED_19terra.aiff" ],
+                                       "maxclass" : "umenu",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 3,
+                                       "outlettype" : [ "int", "", "" ],
+                                       "parameter_enable" : 0,
+                                       "patching_rect" : [ 442.0, 668.0, 248.0, 22.0 ],
+                                       "prefix" : "~/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/Terra/",
+                                       "types" : [ "AIFF", "AIF", "WAV", "WAVE" ]
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-5",
+                                       "maxclass" : "dropfile",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "", "" ],
+                                       "patching_rect" : [ 694.0, 73.0, 110.0, 42.0 ],
+                                       "types" : "fold"
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "id" : "obj-2",
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 705.0, 389.0, 85.0, 22.0 ],
+                                       "patching_rect" : [ 166.0, 386.0, 85.0, 22.0 ],
                                        "text" : "prepend prefix"
                                }
 
                                        "numoutlets" : 3,
                                        "outlettype" : [ "int", "", "" ],
                                        "parameter_enable" : 0,
-                                       "patching_rect" : [ 705.0, 418.5, 141.0, 22.0 ],
+                                       "patching_rect" : [ 166.0, 452.0, 141.0, 22.0 ],
                                        "prefix" : "~/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/"
                                }
 
                                        "maxclass" : "comment",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 295.5, 296.0, 74.0, 20.0 ],
+                                       "patching_rect" : [ 95.0, 140.0, 74.0, 20.0 ],
                                        "text" : "...then recall"
                                }
 
                                        "numoutlets" : 1,
                                        "outlettype" : [ "bang" ],
                                        "parameter_enable" : 0,
-                                       "patching_rect" : [ 268.0, 294.0, 24.0, 24.0 ]
+                                       "patching_rect" : [ 68.0, 138.0, 24.0, 24.0 ]
                                }
 
                        }
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "bang", "bang" ],
-                                       "patching_rect" : [ 340.0, 221.0, 29.5, 22.0 ],
+                                       "patching_rect" : [ 366.0, 69.0, 29.5, 22.0 ],
                                        "text" : "b"
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-12",
-                                       "linecount" : 3,
-                                       "maxclass" : "message",
-                                       "numinlets" : 2,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 491.0, 632.0, 334.0, 49.0 ],
-                                       "text" : "\"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/\""
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "FullPacket" ],
-                                       "patching_rect" : [ 474.0, 346.0, 107.0, 22.0 ],
+                                       "patching_rect" : [ 474.0, 327.0, 107.0, 22.0 ],
                                        "text" : "o.pack /soundpath"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "bang" ],
-                                       "patching_rect" : [ 340.0, 172.0, 58.0, 22.0 ],
+                                       "patching_rect" : [ 366.0, 20.0, 58.0, 22.0 ],
                                        "text" : "loadbang"
                                }
 
                                        "maxclass" : "newobj",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 474.0, 378.0, 37.0, 22.0 ],
+                                       "patching_rect" : [ 474.0, 359.0, 37.0, 22.0 ],
                                        "text" : "s osc"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 2,
                                        "outlettype" : [ "", "FullPacket" ],
-                                       "patching_rect" : [ 579.0, 515.0, 109.0, 22.0 ],
+                                       "patching_rect" : [ 579.0, 458.0, 109.0, 22.0 ],
                                        "text" : "o.route /soundpath"
                                }
 
                                        "numinlets" : 0,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 579.0, 485.0, 35.0, 22.0 ],
+                                       "patching_rect" : [ 579.0, 428.0, 35.0, 22.0 ],
                                        "text" : "r osc"
                                }
 
                                        "maxclass" : "comment",
                                        "numinlets" : 1,
                                        "numoutlets" : 0,
-                                       "patching_rect" : [ 168.0, 406.0, 216.0, 47.0 ],
+                                       "patching_rect" : [ 317.0, 433.0, 216.0, 47.0 ],
                                        "text" : "enter a directory name\n...which becomes the preset string value for storage/recall"
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-19",
-                                       "maxclass" : "message",
-                                       "numinlets" : 2,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 168.0, 493.0, 105.0, 22.0 ],
-                                       "text" : "CelloShortSounds"
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "numinlets" : 2,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 204.0, 651.0, 35.0, 22.0 ],
+                                       "patching_rect" : [ 390.0, 627.0, 35.0, 22.0 ],
                                        "text" : "clear"
                                }
 
                                        "numinlets" : 1,
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
-                                       "patching_rect" : [ 306.0, 659.0, 85.0, 22.0 ],
+                                       "patching_rect" : [ 442.0, 627.0, 85.0, 22.0 ],
                                        "text" : "prepend prefix"
                                }
 
-                       }
-,                      {
-                               "box" :                                 {
-                                       "autopopulate" : 1,
-                                       "id" : "obj-13",
-                                       "items" : [ "30.aiff", ",", "33.aiff", ",", "35.aiff", ",", "37.aiff", ",", "40.aiff", ",", "42.aiff", ",", "43.aiff", ",", "44.aiff", ",", "45.aiff", ",", "46.aiff", ",", "47.aiff", ",", "48.aiff", ",", "49.aiff", ",", "50.aiff", ",", "51.aiff", ",", "53.aiff", ",", "55.aiff", ",", "56.aiff", ",", "62.aiff", ",", "65.aiff", ",", "66.aiff", ",", "69.aiff", ",", "72.aiff" ],
-                                       "maxclass" : "umenu",
-                                       "numinlets" : 1,
-                                       "numoutlets" : 3,
-                                       "outlettype" : [ "int", "", "" ],
-                                       "parameter_enable" : 0,
-                                       "patching_rect" : [ 306.0, 695.0, 141.0, 22.0 ],
-                                       "prefix" : "~/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/CelloShortSounds/"
-                               }
-
                        }
 ,                      {
                                "box" :                                 {
                                        "numoutlets" : 1,
                                        "outlettype" : [ "" ],
                                        "patching_rect" : [ 442.0, 588.0, 123.0, 22.0 ],
-                                       "text" : "sprintf symout %s%s"
+                                       "text" : "sprintf symout %s%s/"
                                }
 
                        }
                                }
 
                        }
-,                      {
-                               "box" :                                 {
-                                       "id" : "obj-3",
-                                       "maxclass" : "message",
-                                       "numinlets" : 2,
-                                       "numoutlets" : 1,
-                                       "outlettype" : [ "" ],
-                                       "patching_rect" : [ 168.0, 458.0, 86.0, 22.0 ],
-                                       "text" : "blackgrosbeak"
+ ],
+               "lines" : [                     {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-32", 0 ],
+                                       "source" : [ "obj-1", 1 ]
                                }
 
                        }
- ],
-               "lines" : [                     {
+,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-9", 0 ],
                                        "source" : [ "obj-10", 0 ]
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-13", 0 ],
+                                       "destination" : [ "obj-8", 0 ],
                                        "source" : [ "obj-14", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-13", 0 ],
+                                       "destination" : [ "obj-8", 0 ],
                                        "source" : [ "obj-16", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-11", 0 ],
+                                       "destination" : [ "obj-19", 0 ],
+                                       "source" : [ "obj-17", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-46", 0 ],
                                        "source" : [ "obj-19", 0 ]
                                }
 
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-10", 1 ],
-                                       "order" : 1,
+                                       "order" : 0,
                                        "source" : [ "obj-23", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-12", 1 ],
-                                       "order" : 0,
+                                       "destination" : [ "obj-2", 0 ],
+                                       "order" : 1,
                                        "source" : [ "obj-23", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-2", 0 ],
-                                       "order" : 0,
+                                       "destination" : [ "obj-25", 0 ],
                                        "source" : [ "obj-28", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-25", 0 ],
-                                       "order" : 1,
-                                       "source" : [ "obj-28", 0 ]
+                                       "destination" : [ "obj-28", 1 ],
+                                       "source" : [ "obj-29", 1 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-28", 1 ],
-                                       "source" : [ "obj-29", 1 ]
+                                       "destination" : [ "obj-28", 0 ],
+                                       "source" : [ "obj-29", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-31", 0 ],
+                                       "source" : [ "obj-30", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-28", 0 ],
-                                       "source" : [ "obj-29", 0 ]
+                                       "source" : [ "obj-31", 1 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-33", 0 ],
+                                       "source" : [ "obj-31", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-11", 0 ],
-                                       "source" : [ "obj-3", 0 ]
+                                       "order" : 0,
+                                       "source" : [ "obj-32", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-31", 0 ],
-                                       "source" : [ "obj-30", 0 ]
+                                       "destination" : [ "obj-17", 0 ],
+                                       "order" : 1,
+                                       "source" : [ "obj-32", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-28", 0 ],
-                                       "source" : [ "obj-31", 1 ]
+                                       "destination" : [ "obj-44", 0 ],
+                                       "source" : [ "obj-33", 0 ]
                                }
 
                        }
 ,                      {
                                "patchline" :                           {
-                                       "destination" : [ "obj-33", 0 ],
-                                       "source" : [ "obj-31", 0 ]
+                                       "destination" : [ "obj-40", 1 ],
+                                       "source" : [ "obj-36", 0 ]
                                }
 
                        }
                                        "source" : [ "obj-4", 0 ]
                                }
 
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-43", 0 ],
+                                       "source" : [ "obj-42", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-1", 0 ],
+                                       "source" : [ "obj-43", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-42", 0 ],
+                                       "source" : [ "obj-44", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-48", 0 ],
+                                       "source" : [ "obj-47", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-44", 1 ],
+                                       "source" : [ "obj-48", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-29", 0 ],
+                                       "source" : [ "obj-5", 0 ]
+                               }
+
                        }
 ,                      {
                                "patchline" :                           {
 ,                      {
                                "patchline" :                           {
                                        "destination" : [ "obj-14", 0 ],
+                                       "order" : 1,
+                                       "source" : [ "obj-9", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-36", 0 ],
+                                       "order" : 0,
                                        "source" : [ "obj-9", 0 ]
                                }
 
                        }
  ],
                "dependency_cache" : [                  {
+                               "name" : "o.accum.maxpat",
+                               "bootpath" : "~/Documents/Max 9/Packages/odot/patchers/namespace",
+                               "patcherrelativepath" : "../../../../Max 9/Packages/odot/patchers/namespace",
+                               "type" : "JSON",
+                               "implicit" : 1
+                       }
+,                      {
+                               "name" : "o.compose.mxo",
+                               "type" : "iLaX"
+                       }
+,                      {
                                "name" : "o.pack.mxo",
                                "type" : "iLaX"
                        }
+,                      {
+                               "name" : "o.prepend.mxo",
+                               "type" : "iLaX"
+                       }
 ,                      {
                                "name" : "o.route.mxo",
                                "type" : "iLaX"
                        }
+,                      {
+                               "name" : "o.union.mxo",
+                               "type" : "iLaX"
+                       }
  ],
                "autosave" : 0
        }