Forums > MaxMSP

File Storage

October 6, 2006 | 8:57 am

I’m in need of a little help,

I’ve made a patch where I’m recording and saving audio samples but I want
the samples to be saved in the same folder that I have the patch in, not
in the default folder where the Max/MSP icon is. How can I make it so.

Thanks,

Kel



jml
October 10, 2006 | 4:10 pm

2 ways:
1. filepath’s default path can be set.
2. use opendialog to find the path or manually type it in as an argument to your write/open message.

jl


November 16, 2006 | 6:08 am

I could have sworn there was this huge thread about the path of the
max folder (or your applications folder) and If I recall correctly,
it wasn’t solved. I hacked this together, it works for me. it needs
jasch’s objects, and the shell object

heres to hoping I help someone, bottoms up.

#P inlet 139 34 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 129 56 20 196617 t b;
#P outlet 120 538 15 0;
#P newex 113 508 66 196617 absolutepath;
#P newex 140 440 27 196617 – 1;
#P newex 113 473 38 196617 strcut;
#P newex 140 417 98 196617 strstr MaxMSP.app;
#P newex 142 359 27 196617 – 1;
#P newex 113 385 43 196617 strrcut;
#P newex 142 332 48 196617 strchr /;
#P newex 113 306 29 196617 gate;
#P newex 146 226 29 196617 > -1;
#P newex 146 191 98 196617 strstr MaxMSP.app;
#P message 114 104 35 196617 ps -A;
#P newex 114 158 31 196617 shell;
#P connect 2 0 3 0;
#P connect 0 0 4 1;
#P connect 0 0 2 0;
#P connect 5 0 7 0;
#P connect 4 0 6 0;
#P connect 4 0 5 0;
#P connect 8 0 10 0;
#P connect 6 0 9 0;
#P connect 6 0 8 0;
#P connect 14 0 13 0;
#P connect 11 0 12 0;
#P connect 1 0 0 0;
#P connect 13 0 1 0;
#P connect 9 0 11 0;
#P connect 10 0 9 0;
#P connect 7 0 6 0;
#P connect 3 0 4 0;
#P window clipboard copycount 15;



jml
November 16, 2006 | 6:57 am

well, it’s a nice hack;
but not cross-platform :)

if you aren’t into the filepath thing, you could just include the path in your write message.
here’s the way i do it:

#P window setfont Geneva 9.;
#P window linecount 1;
#P comment 91 124 57 11337737 < < use this;
#P newex 21 221 28 11337737 t b s;
#P newex 21 195 60 11337737 prepend set;
#P newex 21 252 73 11337737 filepath default;
#P newex 21 74 60 11337737 prepend set;
#P button 21 34 15 0;
#P message 21 172 253 11337737 D:/step/step/step/folder;
#P newex 21 55 71 11337737 opendialog fold;
#P newex 39 121 45 11337737 loadbang;
#P comment 280 174 105 11337737 < < once you have this;
#P connect 8 0 6 0;
#P connect 8 1 6 0;
#P connect 7 0 8 0;
#P connect 3 0 7 0;
#P connect 4 0 2 0;
#P connect 5 0 3 0;
#P connect 2 0 5 0;
#P window clipboard copycount 10;

jl


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