help with buffer length in groove patch
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.
thanks for your help.
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 ;)
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.