<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I would like it to be inside Pure Data without the use of externals.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I am quite aware of the externals, but I am curious on how people have done it without an external<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></a></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> ̉scar Martínez Carmona [mailto:xamps23@gmail.com]
<br>
<b>Sent:</b> Tuesday, January 22, 2013 5:11 PM<br>
<b>To:</b> Roman Haefeli<br>
<b>Cc:</b> Pagano, Patrick; pd-list@iem.at<br>
<b>Subject:</b> Re: [PD] Simplest way for looping soudfiles<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Maybe I'm not getting anything related about this topic... but what about using the end &quot;bang&quot; that many audio-file-playing-externals feature?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Tue, Jan 22, 2013 at 10:48 PM, Roman Haefeli &lt;<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>&gt; wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On Die, 2013-01-22 at 21:09 &#43;0000, Pagano, Patrick wrote:<br>
&gt; Not Sure that one will not loop properly because of the need for an open message each time.<o:p></o:p></p>
</div>
<p class="MsoNormal">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>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [s playagain]<br>
<br>
<br>
IIRC, [tabplay~] doesn't suffer from that precision problem described<br>
before.<br>
<span style="color:#888888"><br>
<span class="hoenzb">Roman</span></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><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 &#43;0000, Pagano, Patrick wrote:<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Can people share their opinions on the simplest way to create<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; 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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[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><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
̉scar Martínez Carmona<o:p></o:p></p>
</div>
</div>
</body>
</html>