I m curious to know which object you would recommend instead of threshold~ (the delay way is obviously not feasible as soon as you need to change the speed of phasor~ during palyback).<br><br>Pierre<br><br><div class="gmail_quote">
2011/9/20 Roman Haefeli <span dir="ltr">&lt;<a href="mailto:reduzent@gmail.com">reduzent@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;">
On Mon, 2011-09-19 at 14:00 -0700, Jonathan Wilkes wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt;________________________________<br>
&gt; &gt;From: tim vets &lt;<a href="mailto:timvets@gmail.com">timvets@gmail.com</a>&gt;<br>
&gt; &gt;To: Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;; James Dunn &lt;<a href="mailto:james@4thharmonic.com">james@4thharmonic.com</a>&gt;; pd-list &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>

&gt; &gt;Sent: Monday, September 19, 2011 4:08 PM<br>
&gt; &gt;Subject: Re: [PD] stop sample playback when phasor~ reset?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;When you use phasor~, you normally already know how long it will take for the sound to be finished playing (because you set its frequency to play it back at the proper speed)<br>
&gt; &gt;Store the information about the sound loaded (or recorded) and use that to stop the playback after one play duration.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;[del &lt;time&gt;]<br>
&gt; &gt;|<br>
&gt; &gt;[t  b  b]<br>
&gt; &gt;|        |<br>
&gt; &gt;[0(     [0(<br>
&gt; &gt;[        |<br>
&gt; &gt;[phasor]<br>
&gt;<br>
&gt; What&#39;s the benefit of this over a line~ based approach?<br>
&gt;<br>
<br>
[line~] is inferior to [phasor~] in that it only starts a ramp on block<br>
boundaries. Using [vline~] seems to me most flexible in terms of sample<br>
playback as it can start a ramp even in-between samples.<br>
<br>
Using [threshold~] or any other method to detect the reset of [phasor~]<br>
is not feasible, because of two reasons:<br>
 * [threshold] (but also [snapshot~]) output the bang only at block<br>
bounaries, so the detection is not very precise<br>
 * Whenever the the audio domain (a signal) causes an event in the<br>
message domain (that&#39;s what [threshold~] and [snapshot~] are for), the<br>
event is at least one block late.<br>
<br>
There is still one advantage of [phasor~] over [vline~]: The speed of<br>
the [phasor~] can be changed at signal rate, so one can create<br>
continuous pitch changes when playing the sample. That&#39;s not possible<br>
with [vline~].<br>
<font color="#888888"><br>
Roman<br>
<br>
<br>
</font></blockquote></div><br>