Forums > MaxMSP

Re: Re: Re: Record into a buffer without knowing how long it is going to be

April 11, 2008 | 1:01 pm

11/04/08, kl. 13:54 +0200 , skrev Phil:

>That seems to work well but i still have to specify the "replace" file
>in the buffer`.
>
>I’d imagine i’d need to try and re-write the quickie so it automatically
>looks for the file ive just recorded. Any ideas how i might do that?

this should give you some ideas:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 51 301 40 196617 adc~ 1;
#P user ezdac~ 153 60 197 93 0;
#P message 405 376 30 196617 read;
#P newex 315 374 81 196617 prepend replace;
#P toggle 21 66 15 0;
#P message 36 302 14 196617 0;
#P newex 389 320 44 196617 del 100;
#P message 21 302 14 196617 1;
#P newex 21 269 44 196617 del 100;
#P newex 21 97 41 196617 sel 1 0;
#P newex 315 421 76 196617 buffer~ myrec;
#P window linecount 0;
#P message 315 347 314 196617;
#P window linecount 1;
#P newex 315 320 62 196617 prepend set;
#P newex 315 294 57 196617 route open;
#P newex 218 222 67 196617 unpack 0 0 0;
#P newex 48 135 30 196617 t b b;
#P message 219 178 30 196617 time;
#P newex 124 262 147 196617 sprintf open %s%ld%ld%ld.aif;
#P newex 219 200 40 196617 date;
#P newex 51 346 55 196617 sfrecord~;
#P window linecount 0;
#P message 48 200 161 196617;
#P window linecount 1;
#P newex 406 94 62 196617 prepend set;
#P newex 355 39 73 196617 loadmess path;
#N thispatcher;
#Q end;
#P newobj 355 65 61 196617 thispatcher;
#P window linecount 2;
#P comment 42 63 100 196617 record and load into buffer~ when stop;
#P window linecount 1;
#P comment 20 25 266 196617 Save re-open. Don’t use spaces in your filepath.;
#P connect 21 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 18 0;
#P connect 16 1 20 0;
#P connect 16 0 10 0;
#P connect 10 0 5 0;
#P connect 4 0 5 0;
#P connect 18 0 6 0;
#P connect 20 0 6 0;
#P connect 25 0 6 0;
#P fasten 8 0 6 0 129 338 56 338;
#P connect 5 0 8 0;
#P connect 11 0 8 1;
#P connect 11 1 8 2;
#P connect 7 1 11 0;
#P connect 10 1 9 0;
#P connect 9 0 7 0;
#P connect 11 2 8 3;
#P fasten 8 0 12 0 129 286 320 286;
#P connect 12 0 13 0;
#P connect 19 0 14 0;
#P connect 13 0 14 0;
#P connect 14 0 22 0;
#P connect 22 0 15 0;
#P fasten 23 0 15 0 410 396 320 396;
#P connect 3 0 2 0;
#P fasten 16 1 19 0 394 201;
#P connect 2 1 4 0;
#P window clipboard copycount 26;


Viewing 1 post (of 1 total)