sfrecord~ problems

Apr 9, 2006 at 10:10pm

sfrecord~ problems

Hi,

I’m having wierd problems and I’ve isolated the issue to the simple example attached.

This patch should record/create a new 1 sec aiff every 3 seconds… most of the time it does this but often seemingly random files will be zero kb.. or are just tiny or corrupted in some way.

Leaving this patch running for more than a couple of hours will repeatedly cause my install of max to crash. (using internal soundcard/mic to test). I’m not running out of disk space or coming close.

e.g I just ran it.. it froze after creating 45 files.. no’s 22 + 23 were 4kb instead of the expected 176kb. (It’s different files corrupted everytime)

I’m running:
OSX 10.4.3
1.5ghz Powerbook, 1gb ram, 20gb spare on the drive.
Max/MSP 4.5.7.

Hope someone can test this simple patch for me.

Thanks

Steve

max v2;
#N vpatcher 251 141 922 680;
#P window setfont “Sans Serif” 9.;
#P newex 101 149 62 196617 prepend set;
#P button 101 82 15 0;
#P newex 101 122 76 196617 opendialog fold;
#P newex 348 216 49 196617 delay 20;
#P number 554 135 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 554 113 15 0;
#P newex 135 216 49 196617 delay 50;
#P newex 210 216 49 196617 delay 40;
#P newex 270 216 49 196617 delay 30;
#P toggle 270 124 14 0;
#P newex 231 462 31 196617 adc~;
#P message 135 403 67 196617 record 1000;
#P newex 210 403 131 196617 pack open s aiff;
#P newex 270 378 51 196617 tosymbol;
#P newex 270 174 64 196617 metro 3000;
#P message 270 278 322 196617 HD:/Output/;
#P message 348 308 40 196617 Tester;
#N counter;
#X flags 0 0;
#P newobj 426 308 66 196617 counter;
#P newex 270 355 167 196617 sprintf %s%s%ld.aiff;
#P newex 210 489 64 196617 sfrecord~ 2;
#P comment 97 40 100 196617 1) set path;
#P comment 266 92 100 196617 2) Toggle on to Go;
#P window linecount 2;
#P comment 408 469 181 196617 Warning , this patch will keep creating new aiffs forever until stopped…;
#P window linecount 1;
#P comment 525 92 100 196617 (reset counter);
#P connect 22 0 21 0;
#P connect 21 0 23 0;
#P connect 9 0 17 0;
#P connect 17 0 12 0;
#P connect 9 0 16 0;
#P connect 16 0 11 0;
#P connect 13 0 4 0;
#P connect 11 0 4 0;
#P connect 12 0 4 0;
#P connect 13 1 4 1;
#P connect 14 0 9 0;
#P connect 9 0 15 0;
#P connect 15 0 8 0;
#P fasten 23 0 8 0 106 184 265 184 265 265 275 265;
#P lcolor 4;
#P connect 8 0 5 0;
#P connect 5 0 10 0;
#P connect 10 0 11 1;
#P connect 9 0 20 0;
#P connect 20 0 7 0;
#P connect 7 0 5 1;
#P fasten 9 0 6 0 431 213;
#P connect 6 0 5 2;
#P connect 19 0 6 2;
#P connect 18 0 19 0;
#P pop;

#25320
Apr 22, 2006 at 8:28pm

Do you want to create specificly sepeate files? or were u intending to make them all into one big one at the end.
Either way I’d reccomend you use Record~ with buffer~. If you turn append on, you can automate it so that it will continue to record until stopped. I did this for a project a few weeks back recording from a television signal. It recorded 2 second files every 5 seconds happily for 4 hours straight without dying. All you need to then is feed write to buffer, and you should (touch wood) have a zero free lag free aiff.
Hope this helps.
T

#74436

You must be logged in to reply to this topic.