[PD] Loop record using arrays?

Frank Barknecht fbar at footils.org
Thu Nov 15 23:39:39 CET 2007

Tim Flood hat gesagt: // Tim Flood wrote:

> I am working on a patch that uses several short sample buffers to
> record live audio input. By default, recording stops once the end of
> the buffer is reached. But what if you want to do loop recording in
> which new audio data overwrites the old data on each pass? Is this
> possible using the standard vanilla pd objects [tabread4~],
> [tabwrite~] [array]?

Yes, no problem. Just start writing at the beginning again when you've
reached the end of the array. When reading, make sure you're not
reading over the sample where you're currently recording as that will
click. See attached example for a quick example.

 Frank Barknecht                                     _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tabwriteread.pd
Type: application/puredata
Size: 1977 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20071115/9d5635a8/attachment.bin>

More information about the Pd-list mailing list