From: equilet <2237372+equilet@users.noreply.github.com> Date: Fri, 6 Jun 2025 22:32:58 +0000 (-0700) Subject: adding soundfile path solution X-Git-Tag: v0.1~111 X-Git-Url: https://git.dabkitsch.com/?a=commitdiff_plain;h=4fdfb3b6395cfc136dfffa81a33d70d033a1f8a3;p=sonogarden_maxproj.git adding soundfile path solution --- diff --git a/misc/soundfile_path_solution.maxpat b/misc/soundfile_path_solution.maxpat new file mode 100644 index 0000000..0f745ae --- /dev/null +++ b/misc/soundfile_path_solution.maxpat @@ -0,0 +1,505 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 627.0, 158.0, 1000.0, 780.0 ], + "gridsize" : [ 15.0, 15.0 ], + "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 705.0, 389.0, 85.0, 22.0 ], + "text" : "prepend prefix" + } + + } +, { + "box" : { + "autopopulate" : 1, + "id" : "obj-1", + "items" : [ "100618_02 Oboe Gestures", ",", "100622_04 Fast Cello Fragments", ",", "4_Anton_Glass", ",", "AssortedMetalPercussion", ",", "Bamboo", ",", "bells(noisy)", ",", "blackgrosbeak", ",", "CelloFauneFragments", ",", "CelloHaiku", ",", "CelloPentatonicEflat", ",", "CelloShortSounds", ",", "Clap", ",", "Clarinet", ",", "Click", ",", "DebussyNuagesFragments", ",", "DjembeHits", ",", "Drips", ",", "Heizman", ",", "Hydrophone", ",", "KotoSCM", ",", "Language", ",", "lazbunting", ",", "LittleMetalPerc", ",", "Maraca", ",", "Marimba", ",", "NorthernCardinal", ",", "NuagesPiano", ",", "Oboe", ",", "oiseauxExotiques", ",", "OM_Catalogue", ",", "OudScaleSamples", ",", "PianoTypeB", ",", "PianoTypeDbirds", ",", "Pipa", ",", "pipa52", ",", "PipaBackground", ",", "PipaShort", ",", "PrayerBowl", ",", "RH", ",", "robin", ",", "Sax", ",", "Shaker", ",", "Shakuhachi", ",", "ShakuhachiTrills", ",", "SingingBowlStruck", ",", "SoundEffectsLibrary", ",", "SteenEdited", ",", "Taghavi", ",", "Terra", ",", "ThimbleGong", ",", "tongue", ",", "trumpet", ",", "VIBE", ",", "VIBEClickySet", ",", "Watrbubb", ",", "Whistling", ",", "Wood", ",", "woodenRattle" ], + "maxclass" : "umenu", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "int", "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 705.0, 418.5, 141.0, 22.0 ], + "prefix" : "~/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/" + } + + } +, { + "box" : { + "id" : "obj-35", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 295.5, 296.0, 74.0, 20.0 ], + "text" : "...then recall" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 268.0, 294.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "bang" ], + "patching_rect" : [ 340.0, 221.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" : { + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "FullPacket" ], + "patching_rect" : [ 474.0, 346.0, 107.0, 22.0 ], + "text" : "o.pack /soundpath" + } + + } +, { + "box" : { + "id" : "obj-30", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 340.0, 172.0, 58.0, 22.0 ], + "text" : "loadbang" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 474.0, 227.5, 256.0, 22.0 ], + "text" : "t b s" + } + + } +, { + "box" : { + "id" : "obj-28", + "linecount" : 3, + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 474.0, 262.0, 256.0, 49.0 ], + "text" : "\"Macintosh HD:/Users/jml/Documents/work/hugh_livingston/audio_files/_SonogardenCollections/\"" + } + + } +, { + "box" : { + "id" : "obj-26", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 603.0, 172.0, 150.0, 47.0 ], + "text" : "this obviously has to be done first before preset recall" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 474.0, 378.0, 37.0, 22.0 ], + "text" : "s osc" + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "FullPacket" ], + "patching_rect" : [ 579.0, 515.0, 109.0, 22.0 ], + "text" : "o.route /soundpath" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 579.0, 485.0, 35.0, 22.0 ], + "text" : "r osc" + } + + } +, { + "box" : { + "id" : "obj-21", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 168.0, 406.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" : { + "id" : "obj-18", + "linecount" : 5, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 506.0, 63.0, 150.0, 74.0 ], + "text" : "choose the root directory for all sounds\n...this needs to be chosen by the user once, then patch is saved" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 204.0, 651.0, 35.0, 22.0 ], + "text" : "clear" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 306.0, 659.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" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 442.0, 515.0, 123.0, 22.0 ], + "text" : "t b s" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 442.0, 550.0, 156.0, 22.0 ], + "text" : "zl.reg" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 442.0, 588.0, 123.0, 22.0 ], + "text" : "sprintf symout %s%s" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 474.0, 68.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "patching_rect" : [ 474.0, 172.0, 90.0, 22.0 ], + "text" : "opendialog fold" + } + + } +, { + "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-9", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "source" : [ "obj-11", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-13", 0 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-19", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 1 ], + "order" : 1, + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 1 ], + "order" : 0, + "source" : [ "obj-23", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-24", 0 ], + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "order" : 0, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "order" : 1, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 1 ], + "source" : [ "obj-29", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "source" : [ "obj-31", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-14", 0 ], + "source" : [ "obj-9", 0 ] + } + + } + ], + "dependency_cache" : [ { + "name" : "o.pack.mxo", + "type" : "iLaX" + } +, { + "name" : "o.route.mxo", + "type" : "iLaX" + } + ], + "autosave" : 0 + } + +}