Forums > MaxMSP

How long can Max run/record for continuously?

March 3, 2007 | 5:36 pm

Hello
I am new here, although I’ve been using max/MSP for a little while.

I am trying to create an environment in which sound is recorded continuously, for a significant length of time (a number of days, at least).
I don’t need any info on specific objects or anything… this is my question:

Are there any problems with running max continuously? Am I going to run into problems simply because I am expecting max to run permanently for several days? Does anyone have any experiences of running patches continuously and for significant lengths of time?

Furthermore… recording continuously. I am assuming that, if sound is to be contnuously recorded, it will need to be broken up into seperate files every so often. Is there a sensible limit for how long I should record audio into one file, before moving on to a new file?

Apologies if I’ve contravened any forum ettiquete by bursting in here with my question.

Any thoughts greatly appreciated.
thanks
sam


March 3, 2007 | 6:02 pm

On 03-mars-07, at 18:36, sam wrote:

> Are there any problems with running max continuously?

Max shouldn’t be a problem, but some objects may use more and more
memory and never release it…
But recording soundfiles shouldn’t be a problem.

It’s anyway a good practice to restart your computer once a while
(every week or so?)

> Am I going to run into problems simply because I am expecting max to
> run permanently for several days? Does anyone have any experiences of
> running patches continuously and for significant lengths of time?

I have a patch running since 2 years…

> Furthermore… recording continuously. I am assuming that, if sound is
> to be contnuously recorded, it will need to be broken up into seperate
> files every so often.

Your OS probably has a file length limit. Isn’t it 2GB on MacOSX (or
was it under MacOS9) ? So you should indeed break your files.

And anyway, in case of a crash, you may recover more datas if your save
short files.

> Apologies if I’ve contravened any forum ettiquete by bursting in here
> with my question.

That’s why this list is for, isn’t it?

p

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie

http://users.skynet.be/crfmw/max


March 3, 2007 | 7:57 pm

I have done a lot of overnight recording on my MBP and found there is a file size limit. 2GB rings a bell but I can’t remember for sure. If you are going to build start and stop recording into your patch I recommend using the cputimer object. Here is a little patch I made that starts a new file every 50 minutes. It only does 10 files, but that could be changed.

I know its a little sloppy.

#P window setfont "Sans Serif" 9.;
#P window linecount 3;
#P comment 222 22 100 196617 make this a subpatch and put the signal in the two inlets;
#P button 20 48 44 0;
#P toggle 115 116 15 0;
#P window linecount 1;
#N vpatcher 151 44 1479 873;
#P origin 62 0;
#P outlet 725 579 15 0;
#P inlet 541 62 15 0;
#P outlet 239 406 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 257 220 67 196617 delay 10000;
#P button 546 99 15 0;
#P button 586 136 15 0;
#P number 721 214 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1031 330 62 196617 open ten.aif;
#P newex 1031 307 52 196617 select 10;
#P message 963 327 66 196617 open nine.aif;
#P newex 963 304 46 196617 select 9;
#P message 891 327 70 196617 open eight.aif;
#P newex 891 304 46 196617 select 8;
#P message 813 328 74 196617 open seven.aif;
#P newex 813 305 46 196617 select 7;
#P message 745 328 62 196617 open six.aif;
#P newex 745 305 46 196617 select 6;
#P message 673 329 66 196617 open five.aif;
#P newex 673 306 46 196617 select 5;
#P message 604 329 67 196617 open four.aif;
#P newex 604 306 46 196617 select 4;
#P message 527 328 72 196617 open three.aif;
#P newex 527 305 46 196617 select 3;
#P message 460 329 65 196617 open two.aif;
#P newex 460 306 46 196617 select 2;
#P message 391 329 63 196617 open one.aif;
#P newex 391 306 46 196617 select 1;
#N counter;
#X flags 0 0;
#P newobj 546 179 66 196617 counter;
#P newex 104 203 67 196617 delay 70000;
#P newex 162 109 67 196617 delay 20000;
#P outlet 299 657 15 0;
#P outlet 61 424 15 0;
#P inlet 17 28 15 0;
#P connect 4 0 1 0;
#P connect 0 0 1 0;
#P connect 0 0 4 0;
#P connect 0 0 3 0;
#P connect 29 0 30 0;
#P connect 28 0 29 0;
#P connect 25 0 2 0;
#P connect 23 0 2 0;
#P connect 21 0 2 0;
#P connect 19 0 2 0;
#P connect 17 0 2 0;
#P connect 15 0 2 0;
#P connect 13 0 2 0;
#P connect 11 0 2 0;
#P connect 9 0 2 0;
#P connect 7 0 2 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 5 0 8 0;
#P connect 8 0 9 0;
#P connect 5 0 10 0;
#P connect 10 0 11 0;
#P connect 31 0 28 0;
#P connect 28 0 5 0;
#P connect 3 0 5 0;
#P connect 27 0 5 3;
#P connect 5 0 12 0;
#P connect 12 0 13 0;
#P connect 5 0 14 0;
#P connect 14 0 15 0;
#P connect 5 0 26 0;
#P fasten 4 0 32 0 109 479 730 479;
#P connect 5 0 16 0;
#P connect 16 0 17 0;
#P connect 5 0 18 0;
#P connect 18 0 19 0;
#P connect 5 0 20 0;
#P connect 20 0 21 0;
#P connect 5 0 22 0;
#P connect 22 0 23 0;
#P connect 5 0 24 0;
#P connect 24 0 25 0;
#P pop;
#P newobj 560 186 67 196617 patcher files;
#P button 411 106 15 0;
#P newex 334 313 52 196617 select 50;
#P button 318 85 15 0;
#P button 365 181 15 0;
#P button 320 181 15 0;
#N vpatcher 525 182 715 430;
#N comlet interval in ms is reported here;
#P outlet 66 173 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 96 82 13 196617 b;
#P newex 96 104 46 196617 cpuclock;
#P newex 66 143 27 196617 – 0.;
#P newex 48 82 13 196617 b;
#P newex 48 104 46 196617 cpuclock;
#N comlet bang stops timing and reports interval;
#P inlet 96 58 15 0;
#N comlet bang starts timing interval;
#P inlet 48 58 15 0;
#P connect 0 0 3 0;
#P connect 3 0 2 0;
#P connect 5 0 4 0;
#P connect 4 0 7 0;
#P connect 2 0 4 1;
#P connect 1 0 6 0;
#P connect 6 0 5 0;
#P pop;
#P newobj 320 202 55 196617 p cputimer;
#P toggle 318 122 15 0;
#P newex 318 142 70 196617 metro 10000;
#N vpatcher 10 59 410 359;
#P window setfont "Sans Serif" 9.;
#P newex 119 141 141 196617 expr ($f1% 60000.) / 1000.;
#P newex 76 143 27 196617 int;
#P newex 14 131 27 196617 int;
#P newex 76 117 159 196617 expr ($f1% 3600000.) / 60000.;
#P newex 12 90 105 196617 expr $f1 / 3600000.;
#P outlet 169 199 15 0;
#P outlet 106 197 15 0;
#P outlet 42 197 15 0;
#P inlet 96 59 15 0;
#P connect 0 0 4 0;
#P connect 4 0 6 0;
#P connect 6 0 1 0;
#P connect 0 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 2 0;
#P connect 0 0 8 0;
#P connect 8 0 3 0;
#P pop;
#P newobj 309 258 69 196617 p ms_to_hms;
#P flonum 374 282 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 337 282 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 300 282 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 320 236 109 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 156 197 64 196617 sfrecord~ 2;
#P inlet 210 65 15 0;
#P inlet 156 67 15 0;
#P window linecount 2;
#P comment 81 23 100 196617 the big button starts it;
#P fasten 17 1 18 0 584 355 87 355 87 84 120 84;
#P fasten 17 1 14 0 485 229 323 229;
#P fasten 15 0 16 0 339 347 467 347 467 105 416 105;
#P fasten 15 0 17 0 339 335 514 335 514 141 565 141;
#P connect 14 0 10 0;
#P fasten 14 0 12 0 323 112 302 112 302 170 325 170;
#P fasten 17 0 18 0 565 375 77 375 77 93 120 93;
#P fasten 17 2 3 0 603 214 645 214 645 166 223 166 161 166;
#P connect 18 0 3 0;
#P connect 1 0 3 0;
#P connect 2 0 3 1;
#P connect 8 0 5 0;
#P connect 4 0 8 0;
#P fasten 17 3 14 0 622 225 667 225 667 93 667 63 323 63;
#P connect 16 0 10 0;
#P connect 10 0 9 0;
#P connect 12 0 11 0;
#P connect 11 0 4 0;
#P connect 6 0 15 0;
#P connect 8 1 6 0;
#P fasten 9 0 13 0 323 171 370 171;
#P connect 13 0 11 1;
#P connect 8 2 7 0;
#P fasten 19 0 17 1 25 159 595 159 622 159;
#P window clipboard copycount 21;

Andrew


March 3, 2007 | 8:07 pm

wow,
thankyou both very much.
Andrew, sorry if I’m being stupid, but how do I get the patch from that code?

cheers
sam


March 3, 2007 | 8:44 pm

On 3 mars 07, at 21:07, sam wrote:

> wow,
> thankyou both very much.
> Andrew, sorry if I’m being stupid, but how do I get the patch from
> that code?

- select the text
- copy
- new from clipboard in the Max File’s menu (requires 4.5.5 or higher).

ej


March 3, 2007 | 9:46 pm

Quote: Emmanuel Jourdan wrote on Sat, 03 March 2007 16:44
—————————————————-
> On 3 mars 07, at 21:07, sam wrote:
>
> > wow,
> > thankyou both very much.
> > Andrew, sorry if I’m being stupid, but how do I get the patch from
> > that code?
>
> – select the text
> – copy
> – new from clipboard in the Max File’s menu (requires 4.5.5 or higher).
>
> ej
>
—————————————————-

cheers!


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