<div dir="ltr">What about using delay lines Ali? Those are circular buffers...<div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-13 19:13 GMT-03:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's what I do (probably not the only way but it works):  if you<br>
want the most recent 10 seconds of input available in a contiguous<br>
stretch in an array, make an array big enough to hold 20 seconds, and<br>
using two tabwrite~ objects, alternatively bang one or the other every<br>
10 seconds.  At any moment the stretch of the array between the two<br>
tabwrite~ pointers (which you can find using "timer") is 10 seconds<br>
long and contains the most recent input samples.<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Wed, Sep 13, 2017 at 05:31:55PM -0400, Ali Momeni wrote:<br>
> hello all,<br>
> is there a way to use tabwrite~ for a circular buffer?<br>
><br>
> in other words, is there a way to make tabwrite~ go around and start<br>
> recording in the beginning of the table, once it has reached the end?<br>
><br>
> i have done some searching and found this thread:<br>
> <a href="https://forum.pdpatchrepo.info/topic/8260/creating-a-live-input-circular-buffer-using-array" rel="noreferrer" target="_blank">https://forum.pdpatchrepo.<wbr>info/topic/8260/creating-a-<wbr>live-input-circular-buffer-<wbr>using-array</a><br>
><br>
> but there seem to be no resolution;  i realize that you can do this with a<br>
> different method of writing into tables that's driven by events, but i'd<br>
> like to do it with tabwrite~ and all signals.<br>
><br>
> thanks!<br>
><br>
> -ali<br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</blockquote></div><br></div>