Re: [PD] using tabwrite~ for a circular buffer?

2017-09-13 Thread Johnny Mauser via Pd-list
Funny incident as i was searching for this today as well.
I indeed used a delay line in combinatin with tabsend~ and a banged switch~
to be able to have an up to date table of 8192points every 40ms at a
samlingrate of 44.1k. Hope this gives any clues, esle i could give an
example tomorrow.

Best,

Johnny

Am 14.09.2017 2:16 vorm. schrieb "Alexandre Torres Porres" :

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


Re: [PD] using tabwrite~ for a circular buffer?

2017-09-13 Thread Alexandre Torres Porres
What about using delay lines Ali? Those are circular buffers...

cheers

2017-09-13 19:13 GMT-03:00 Miller Puckette :

> Here's what I do (probably not the only way but it works):  if you
> want the most recent 10 seconds of input available in a contiguous
> stretch in an array, make an array big enough to hold 20 seconds, and
> using two tabwrite~ objects, alternatively bang one or the other every
> 10 seconds.  At any moment the stretch of the array between the two
> tabwrite~ pointers (which you can find using "timer") is 10 seconds
> long and contains the most recent input samples.
>
> cheers
> Miller
>
> On Wed, Sep 13, 2017 at 05:31:55PM -0400, Ali Momeni wrote:
> > hello all,
> > is there a way to use tabwrite~ for a circular buffer?
> >
> > in other words, is there a way to make tabwrite~ go around and start
> > recording in the beginning of the table, once it has reached the end?
> >
> > i have done some searching and found this thread:
> > https://forum.pdpatchrepo.info/topic/8260/creating-a-
> live-input-circular-buffer-using-array
> >
> > but there seem to be no resolution;  i realize that you can do this with
> a
> > different method of writing into tables that's driven by events, but i'd
> > like to do it with tabwrite~ and all signals.
> >
> > thanks!
> >
> > -ali
>
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] using tabwrite~ for a circular buffer?

2017-09-13 Thread Miller Puckette
Here's what I do (probably not the only way but it works):  if you
want the most recent 10 seconds of input available in a contiguous
stretch in an array, make an array big enough to hold 20 seconds, and
using two tabwrite~ objects, alternatively bang one or the other every
10 seconds.  At any moment the stretch of the array between the two
tabwrite~ pointers (which you can find using "timer") is 10 seconds
long and contains the most recent input samples.

cheers
Miller

On Wed, Sep 13, 2017 at 05:31:55PM -0400, Ali Momeni wrote:
> hello all,
> is there a way to use tabwrite~ for a circular buffer?
> 
> in other words, is there a way to make tabwrite~ go around and start
> recording in the beginning of the table, once it has reached the end?
> 
> i have done some searching and found this thread:
> https://forum.pdpatchrepo.info/topic/8260/creating-a-live-input-circular-buffer-using-array
> 
> but there seem to be no resolution;  i realize that you can do this with a
> different method of writing into tables that's driven by events, but i'd
> like to do it with tabwrite~ and all signals.
> 
> thanks!
> 
> -ali

> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list