<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>You could replace values in the array as they are played, just stagger a tabwrite~ a sample or more behind the tabread~. &nbsp;Then a tabread~ could start reading the beginning before the end is written. &nbsp;I think this should work.</div><div><br></div><div>.hc</div><br><div><div>On May 26, 2011, at 5:45 AM, Pierre Massat wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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.<br>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.<br> <br>Pierre<br><br><div class="gmail_quote">2011/5/26 Arda Eden <span dir="ltr">&lt;<a href="mailto:ardaeden@gmail.com">ardaeden@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi all,<br> 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.<br> _______________________________________________<br> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br> UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br> </blockquote></div><br> _______________________________________________<br><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br style="font-family: Tahoma; "></div><div>----------------------------------------------------------------------------</div><div><br style="font-family: Tahoma; "></div><div>There is no way to peace, peace is the way. &nbsp; &nbsp;&nbsp; &nbsp;-A.J. Muste</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>