<div dir="ltr">Maybe I&#39;m not getting anything related about this topic... but what about using the end &quot;bang&quot; that many audio-file-playing-externals feature?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 22, 2013 at 10:48 PM, Roman Haefeli <span dir="ltr">&lt;<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Die, 2013-01-22 at 21:09 +0000, Pagano, Patrick wrote:<br>
&gt; Not Sure that one will not loop properly because of the need for an open message each time.<br>
<br>
</div>You are indeed right. It is not the proper way to do it. Even the<br>
help-file of [readsf~] states it. However, in practice it usually works<br>
flawlessly (probably nowadays disks seem fast enough and there is enough<br>
memory for fs caches). Simply try it with the help of [readsf~ ].<br>
<br>
Also the table based approach works, though I&#39;d make two modifications<br>
to the previously posted patch. Use the &#39;-maxsize &#39; flag for the message<br>
to [soundfiler] in order to allow bigger tables. Then, I&#39;d get rid of<br>
[tabread4~], as it is not needed when you only want to play at original<br>
speed. Actually, I even wouldn&#39;t use [tabread~ ], because for very large<br>
tables, the index from [phasor~ ] or [line~ ] will not be precise enough<br>
to hit every sample after position 16&#39;000&#39;000 (limit of the 32bit<br>
floating point format). If you use [tabplay~], it is as simple my<br>
previous example with [readsf~ ]:<br>
<br>
<br>
[r playagain]<br>
|<br>
[tabplay yourpreviouslyfilledtable]<br>
                                  |<br>
                                  [s playagain]<br>
<br>
<br>
IIRC, [tabplay~] doesn&#39;t suffer from that precision problem described<br>
before.<br>
<span class="HOEnZb"><font color="#888888"><br>
Roman<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a> [mailto:<a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a>] On Behalf Of Roman Haefeli<br>
&gt; Sent: Tuesday, January 22, 2013 4:04 PM<br>
&gt; To: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt; Subject: Re: [PD] Simplest way for looping soudfiles<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Die, 2013-01-22 at 20:50 +0000, Pagano, Patrick wrote:<br>
&gt; &gt;         Can people share their opinions on the simplest way to create<br>
&gt; &gt;         a looping soundfile.<br>
&gt;<br>
&gt; [r playagain]<br>
&gt; |<br>
&gt; [open /path/to/your/file.wav, 1(<br>
&gt; |<br>
&gt; [readsf~ ]<br>
&gt;          |<br>
&gt;          [s playagain]<br>
&gt;<br>
&gt;<br>
&gt; Roman<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; 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>
<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>̉scar Martínez Carmona<br>
</div>