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-buf...
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
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-buf...
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
What about using delay lines Ali? Those are circular buffers...
cheers
2017-09-13 19:13 GMT-03:00 Miller Puckette msp@ucsd.edu:
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
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" <porres@gmail.com
:
What about using delay lines Ali? Those are circular buffers...
cheers
2017-09-13 19:13 GMT-03:00 Miller Puckette msp@ucsd.edu:
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