Forums > Max For Live

help with buffer length in groove patch

March 2, 2011 | 1:25 pm

hello. i am new to max. i have made a patch in maxforlive using buffer~ and groove~. it seems to work ok but i would like to know if it is possible to set the buffer size based on how long you record for. right now i have a buffer of 2000, which seems to mean i can only record for that amount of time. can i set it so i can record for more or less in realtime depending on how long i record for?

i have included the patch.

– Pasted Max Patch, click to expand. –

thanks for your help.

  1. groove1.amxd

March 2, 2011 | 7:19 pm

I don’t think that’s possible. with buffer~ you set aside a certain amount of memory (RAM) to record to. Once that’s set you can’t change it (well, you can, but you loose what you have already recorded). If you don’t know your recording length ahead of time use sfrecord~ to write to disk rather than RAM. Then when recording is done you can open the file into a buffer~ object and still use groove~.

that’s one way of doing it anyway ;)

March 3, 2011 | 10:40 am

Just wanted to mention that writing to disk with sfrecord~ and open the file into a buffer can be automated, ie. hidden from the user.

– Pasted Max Patch, click to expand. –

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