If you are interested in saving yourself the headache (I was wanting to do the same thing last summer) you can just use the susloop~ external from bsaylor.<br><br><div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">
Mikael Gunnerås</b> &lt;<a href="mailto:m.gunneras@bredband.net">m.gunneras@bredband.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="purple" lang="SV">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Maybe I haven't looked
hard enough but I just haven't been able to find any examples on building
a sample playback engine<span>&nbsp; </span>that will allow
for sample-start, loop-start and loop-end positions to be set. The question is what
would be the easiest way to achieve this.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I have been thinking about
ways to achieve the sample clock driver but since I'm new to PD perhaps my
thinking is too complex.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">My ideas have been:</span></font></p>

<ol start="1" type="1">
 <li><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Should I try generating the sample clock
     driver using two phasor~ objects where one phasor~ handles sample-start 'til
     loop-end and let the other one (loop-start 'til loop-end) kick in
     once the first one has completed it's first and single run.</span></font></li>
 <li><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Perhaps using a vline~ for the first part
     instead of a phasor~</span></font></li>
 <li><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Simply using one phasor~ object and offsetting
     the start value of it's second cycle to the loop-start position</span></font></li>
 <li><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Simply using a vline~ object and "loop
     it" with a different start position the second time onwards.</span></font></li>
</ol>

<p style="margin-left: 18pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I suppose I would have to use
the samphold~ object to make the shift between phasor~ or vline~ or just to offset
the start position of a phasors~ second cycle.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Any ideas or examples on how
to best achieve this would be more than welcome.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">/Mikael</span></font></p>

</div>

</div>


<br>_______________________________________________<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br><br>++++<br><a href="http://pocketkm.blogspot.com">http://pocketkm.blogspot.com</a>