Hi all, I'm reading a drum loop from an array. While playing when i read another loop in to the array it naturaly keeps playing from the phasor's current value. How can i wait the array to be finished reading before writing the new sound file into the array ? Thanks.
You have to know the length of the array. If you know the length you know where the phasor is with respect to the end of the array. Also, if you want to write something into the array, you should do it before phasor reaches the end. Otherwise you'll have to read and write at the same time. Generally i use a different array to write to, and switch to it when phasor has finished reading the first array.
Pierre
2011/5/26 Arda Eden ardaeden@gmail.com
Hi all, I'm reading a drum loop from an array. While playing when i read another loop in to the array it naturaly keeps playing from the phasor's current value. How can i wait the array to be finished reading before writing the new sound file into the array ? Thanks. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You could replace values in the array as they are played, just stagger
a tabwrite~ a sample or more behind the tabread~. Then a tabread~
could start reading the beginning before the end is written. I think
this should work.
.hc
On May 26, 2011, at 5:45 AM, Pierre Massat wrote:
You have to know the length of the array. If you know the length you
know where the phasor is with respect to the end of the array. Also, if you want to write something into the array, you should do
it before phasor reaches the end. Otherwise you'll have to read and
write at the same time. Generally i use a different array to write
to, and switch to it when phasor has finished reading the first array.Pierre
2011/5/26 Arda Eden ardaeden@gmail.com Hi all, I'm reading a drum loop from an array. While playing when i read
another loop in to the array it naturaly keeps playing from the
phasor's current value. How can i wait the array to be finished
reading before writing the new sound file into the array ? Thanks. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste