Forums > MaxMSP

sfrecord~ / record~ & buffer~

October 25, 2008 | 4:32 am

I usually use sfrecord~ but for this patch i find myself needing a way
to pause the recording.

sfrecord~ doesn’t have a pause message so i just though i would use
record~ & buffer~ the problems is that i need the ability to write the
file and with record~ and buffer~ I am finding that i have to set some
very large buffer size, which is less than ideal because when i use
the patch to make small recordings i then have to deal with the vast
zero padding at the end of the sound file, if i make the buffer too
small …. you get the picture, I don’t want to manage buffer sizes
for every eventuality.

So it seems like i am sunk since what i need is a record object that
is not fixed in size, but that also allows me to pause while capturing
audio, much like if you were going to use max as a portable voice

on Mac OS X 10.5 intel, Max/MSP 4.x no jitter.

Any ideas?


October 25, 2008 | 3:56 pm

i think your best bet is to use a separate record buffer sized as large as necessary for the longest recording you will make.

then when the recording is done, you copy only the recorded samples to a new buffer~, which has peen sized to the exact length of the recording.

look at peek~, it handles the copying. you will also have to make use of the record~ sync outlet, and the mstosamps~ object.

October 25, 2008 | 8:51 pm

You might want to check out Nao Tokui’s [slice~] external for calculating how much of the massive [buffer~] you used in recording. Other than that I would agree with what Robert has suggested.


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

Forums > MaxMSP