how to search folders in maxpatch directory?

    Sep 22 2010 | 5:07 am
    I'm looking for a way to clean up and organize some of my project folders. I'm wondering if it might be possible to have separate folders inside a max project folder (eg. one for sound files, colls, qlist, etc) and have the sub-directories that the main max patch is in be searched. That way, the sound files and text files I have organized in separate folders are able to be used properly instead of having everything in the same pathway as the main max patch.
    Obviously I could add the directory in File Preferences. But, I'm hoping to build some sort of modular abstraction that will do this automatically so I can use it in multiple projects. I am sure this is possible, but I'm looking for some guidance as to where to start. Thanks for any help.

    • Sep 26 2010 | 9:03 pm
      you can use the "path" message to a [thispatcher] object in your main patch. then use [sprintf symout %s%s] where the first %s is the output from [thispatcher] and the second %s is
      no quotes and possibly no slash, see if there's one in the sprintf output) to create your soundfile folder path. note there are no spaces between %s%s.
      you might need to tweak things a bit or use a [tosymbol] in there somewhere to ensure the path is one symbol.
      see subpatch in sprintf helpfile for more... also [combine] might help.
    • Sep 27 2010 | 11:28 pm
      Thanks seejayjames! I'll check those things out.