Forums > MaxMSP

remembering pictures when changing computers

April 14, 2008 | 1:32 am

allo, ive got about 100 pictures that get loaded when i start up my drum machine of course when i change computers the path is different how can i make them work on different computers without loading them up?


April 14, 2008 | 8:50 am

There’s two ways i use to avoid problems when transferring a patch to a different computer:

- When loading files, i use ‘path’ to [thispatcher] to get the file path the patch is in. You then append the subfolder / file names to load the correct files (you can even go up directories with [regexp (.+/)([^/]+)]

- When other folders on your drive need to get loaded, you can add them to the search path. You could build a loader which adds the correct paths from a text file, and then create a separate text file for each computer. I still use the ‘path’ to [thispatcher] here to add all the subfolders of the patch directory to the search path.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 39 178 47 196617 pcontrol;
#P message 39 158 69 196617 load Mypatch;
#N thispatcher;
#Q end;
#P newobj 175 178 61 196617 thispatcher;
#P message 175 158 29 196617 path;
#P newex 96 61 40 196617 t b b b;
#P newex 175 199 66 196617 absolutepath;
#P message 111 158 59 196617 Subfolder1;
#P newex 111 178 27 196617 t b l;
#P newex 111 249 36 196617 zl reg;
#P newex 111 289 51 196617 tosymbol;
#P newex 111 270 72 196617 sprintf %s%s;
#P newex 111 309 78 196617 prepend append;
#P newex 111 328 77 196617 filepath search;
#P connect 8 0 11 0;
#P connect 11 0 12 0;
#P connect 8 1 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 1 0;
#P connect 1 0 0 0;
#P connect 7 0 4 1;
#P fasten 5 1 2 1 133 240 178 240;
#P connect 8 2 9 0;
#P connect 9 0 10 0;
#P connect 10 0 7 0;
#P window clipboard copycount 13;


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