[4.63] resizing buffer while recording into it
this maybe a stupid quest:
can i dynamically resize a buffer while recording into it from adc?
instead of setting a specific buffer length upon patch load i would rather depend the used buffer length on the length of pressing a record button, to save RAM initially, or to allow for any buffer length needed.
how would i approach this best, preferrably without interrupting reading from a buffer, that is currently as well being recorded into?
thank you very much for any hint!
jrp
Thank you RabidRaja,
i had the double buffer method in mind also and found a thread hinting to a working method here:
https://cycling74.com/forums/index.php?t=msg&goto=155917
Excuse me for not having checked properly before, thank you again,
jrp
Stefan,
when i record into a recbuffer for later looping, then it would be crucial, that the loop starts running as soon as i stopped recording. This works as along as i record into the same buffer that i loop from. If i use a file to record in first, i'd have to open this file in a buffer dedicated to playback, which would take some milliseconds at least i suppose. someone recommended copying a buffer in RAM with peek~. didn't try it yet, but the idea seems faster to me than having to open a file from disk.
happy new year, by the way, stay healthy and clever in 2009!
jrp
Quote: stefantiedje wrote on Fri, 09 January 2009 03:37
----------------------------------------------------
> jayrope schrieb:
> > i had the double buffer method in mind
>
> The solution I came up finally was to record first with sfrecord~ into a
> (temporary) soundfile and then load that into the buffer~.
> Its called recbuffer~. There is also a recbuffers~ which will record
> cyclic into multiple buffers...
>
> Stefan
>
> --
Stephan,
This recbuffers~ looks like something i could use in a project im working on. I did a search of the forum/list but couldnt find it. just found recbuffer~ abd puffer~ abstractions. could you point me in the directiion of this download?
Thanks
Michael