Forums > MaxMSP

dynamic buffers…?

Apr 11 2006 | 12:42 am


I’ve been experimenting trying to record into a buffer without a preset file length and ican’t seem to do so. if i resize the buffer afterwards to match the record time then the buffer seems to clear. does anyone know of any way to change the buffer length without clearing it, or perhaps to record into a buffer that doen’t have a fixed length. I’m rather new to all this i’m afraid

thankyou in advance

Apr 11 2006 | 2:07 am

If you pass -1 as the buffer size and it should grow as needed when
using the read command, but I don’t think that the buffer object can
do what you’re asking. Generally when I want to record something of
arbitrary length, I just punt it to disk with sfrecord~, then when
recording is over you can load it into your buffer~ with the read

Otherwise just pick a really really big number for the buffer size, on
OS X you shouldn’t actually be wasting memory until you use each 4k
memory page by writing to it.


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

Forums > MaxMSP