Forums > MaxMSP

Question about MaxMsp FilePreferences/Searchpath

June 25, 2008 | 9:58 am

Hi,

Does the searchpath need to point directly to the folder containing audio – if not – how high up in the tree can it point.
I guess haveing my documents in the search patch would not be accurate enough.

cheers


June 25, 2008 | 10:14 am

Folders in the Max search path are searched recursively.

Nota Bene: The full search path is built at *launch* time. Drag a new folder into, say, externals/ while Max is running, and you won’t have joy until you Quit & Restart.

The folder containing a patch is implicitly added to the search path when you open the patch, but sub-folders of this one are not added. Many have found this to be a PITA, but requests to modify this behavior have not been well-received (to put it mildly).


June 25, 2008 | 1:02 pm

I wasn’t aware of that last part…It wasn’t well-received? I don’t mind a great deal, but i thought it was something Cycling hadn’t dome because of tech issues of because of lazyness. If they’re against it, why not make it an option?

You can make something yourself that adds subfolders to the searchpath (recursing should also be possible, but i never tried that). Example:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 235 358 29 196617 path;
#P newex 165 282 40 196617 t b b b;
#P message 195 313 35 196617 Other;
#P message 180 334 41 196617 Images;
#P message 165 354 66 196617 Mysubfolder;
#P newex 235 252 48 196617 loadbang;
#N thispatcher;
#Q end;
#P hidden newobj 235 380 61 196617 thispatcher;
#P newex 193 404 66 196617 absolutepath;
#P newex 164 404 27 196617 t b l;
#P newex 164 435 36 196617 zl reg;
#P newex 164 474 51 196617 tosymbol;
#P newex 164 455 72 196617 sprintf %s%s;
#P newex 164 494 78 196617 prepend append;
#P newex 164 513 77 196617 filepath search;
#P connect 8 0 12 0;
#P connect 8 0 13 0;
#P connect 13 0 7 0;
#P connect 12 0 9 0;
#P connect 12 1 10 0;
#P connect 12 2 11 0;
#P connect 11 0 5 0;
#P connect 10 0 5 0;
#P connect 9 0 5 0;
#P connect 7 1 6 0;
#P connect 5 1 2 1;
#P connect 6 0 4 1;
#P connect 1 0 0 0;
#P connect 3 0 1 0;
#P connect 2 0 3 0;
#P connect 4 0 2 0;
#P connect 5 0 4 0;
#P window clipboard copycount 14;


Viewing 3 posts - 1 through 3 (of 3 total)