<div dir="ltr">Maybe I'm not getting anything related about this topic... but what about using the end "bang" 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"><<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>></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>
> 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'd make two modifications<br>
to the previously posted patch. Use the '-maxsize ' flag for the message<br>
to [soundfiler] in order to allow bigger tables. Then, I'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'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'000'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'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>
> -----Original Message-----<br>
> 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>
> Sent: Tuesday, January 22, 2013 4:04 PM<br>
> To: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
> Subject: Re: [PD] Simplest way for looping soudfiles<br>
><br>
><br>
><br>
> On Die, 2013-01-22 at 20:50 +0000, Pagano, Patrick wrote:<br>
> > Can people share their opinions on the simplest way to create<br>
> > a looping soundfile.<br>
><br>
> [r playagain]<br>
> |<br>
> [open /path/to/your/file.wav, 1(<br>
> |<br>
> [readsf~ ]<br>
> |<br>
> [s playagain]<br>
><br>
><br>
> Roman<br>
><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <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 -> <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>