writesf~ creates a subthread whose task is to write audio streams to disk. You need not provide any disk access time between &quot;open&quot; and &quot;start&quot;, but between &quot;stop&quot; and the next &quot;open&quot; you must give the object time to flush all the output to disk.<br>
<br>(from writesf~ help)<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 4:12 AM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I forgot to mention that i can&#39;t use sfplay~ since PdDroidParty doesn&#39;t support externals...<div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/9/11 Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@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,<br><br>I m trying to write a multitrack recorder based on writesf~ and readsf~ . I m faced with a serious issue... There seems to be some latency either when writing to a file or reading from it (i can&#39;t tell). This means that i can&#39;t record a second track on top of another as an overdub and playback both. <br>


Assuming that Pd&#39;s diplayed latency in the audio settings is right (???), that is 100ms, i tried triggering the readsf~ after a 100 ms-long delay, to no avail. <br>I thought it would be a piece of cake to program this, but well, apparently it&#39;s not...?<br>


Needless to say that i can&#39;t use table as i plan to use it for possibly long recordings (my goal is to use it on a phone with PdDroidParty). <br><br>So here&#39;s the question : is there any latency when writing or reading to a file, and if yes, is it measurable and foreseeable? <br>


<br>Thanks!<br><font color="#888888"><br>Pierre<br><br><br>
</font></blockquote></div><br>
</div></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" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>