Forums > MaxMSP

Recording Into Buffer (Without Specifying Buffer Size)

January 15, 2014 | 7:05 am

Hey everybody.

The topic title says it all really! I’m writing a patch that allows users to record into a buffer, starting with a toggle on, and ending with a toggle off. This all works fine when specifying the buffer size (buffer myrec~ 10000) but this only allows a limited duration to be recorded.

Initiating the buffer with no duration means that when I record, there is no audio that actually gets recorded into the buffer.

Can anybody help?

– Pasted Max Patch, click to expand. –

January 15, 2014 | 8:10 am

check this thread :

http://cycling74.com/forums/topic/recording-in-a-buffer-which-size-grows-as-the-recording-lasts/

<code>

– Pasted Max Patch, click to expand. –

</code>


January 15, 2014 | 8:13 am

Hmm

seems your pasted patch is empty too. Can you verify that you can open the patch above? If it doesn’t, try re-copying.

A common strategy is to initialise your buffer with a maximum size at the start of each recording, and then crop it as you need.

This demonstrates the concept, but was a rush job so caveat emptor and all that!

<code>

– Pasted Max Patch, click to expand. –

</code>

Brendan


January 15, 2014 | 8:18 am

Perfect work around, the crop message is exactly what I needed. Thankyou both!


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