Recording Into Buffer (Without Specifying Buffer Size)

Jan 15, 2014 at 7:05am

Recording Into Buffer (Without Specifying Buffer Size)

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. –
#278284
Jan 15, 2014 at 8:10am

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>

#278292
Jan 15, 2014 at 8:13am

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

#278293
Jan 15, 2014 at 8:18am

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

#278294

You must be logged in to reply to this topic.