that sounds like a re-blocking delay, rather than anything to do with vline~<br><br><br><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 8:42 AM, Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
<br>
<br>
<br>
----- Original Message -----<br>
&gt; From: Roman Haefeli &lt;<a href="mailto:reduzent@gmail.com">reduzent@gmail.com</a>&gt;<br>
&gt; To: Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
</div><div><div></div><div class="h5">&gt; Cc: pd-list &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>
&gt; Sent: Tuesday, September 20, 2011 6:05 PM<br>
&gt; Subject: Re: [PD] stop sample playback when phasor~ reset?<br>
&gt;<br>
&gt; On Tue, 2011-09-20 at 11:59 -0700, Jonathan Wilkes wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;  ----- Original Message -----<br>
&gt;&gt;  &gt; From: Roman Haefeli &lt;<a href="mailto:reduzent@gmail.com">reduzent@gmail.com</a>&gt;<br>
&gt;&gt;  &gt; To: Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
&gt;&gt;  &gt; Cc: tim vets &lt;<a href="mailto:timvets@gmail.com">timvets@gmail.com</a>&gt;; Pierre Massat<br>
&gt; &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<br>
&gt; &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>
&gt;&gt;  &gt; Sent: Tuesday, September 20, 2011 3:35 AM<br>
&gt;&gt;  &gt; Subject: Re: [PD] stop sample playback when phasor~ reset?<br>
&gt;&gt;  &gt;<br>
&gt;&gt;  &gt; On Mon, 2011-09-19 at 14:00 -0700, Jonathan Wilkes wrote:<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;&gt;  &gt;________________________________<br>
&gt;&gt;  &gt;&gt;  &gt;From: tim vets &lt;<a href="mailto:timvets@gmail.com">timvets@gmail.com</a>&gt;<br>
&gt;&gt;  &gt;&gt;  &gt;To: Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;; James Dunn<br>
&gt;&gt;  &gt; &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;  &gt;&gt;  &gt;Sent: Monday, September 19, 2011 4:08 PM<br>
&gt;&gt;  &gt;&gt;  &gt;Subject: Re: [PD] stop sample playback when phasor~ reset?<br>
&gt;&gt;  &gt;&gt;  &gt;<br>
&gt;&gt;  &gt;&gt;  &gt;<br>
&gt;&gt;  &gt;&gt;  &gt;When you use phasor~, you normally already know how long it<br>
&gt; will take<br>
&gt;&gt;  &gt; for the sound to be finished playing (because you set its frequency to<br>
&gt; play it<br>
&gt;&gt;  &gt; back at the proper speed)<br>
&gt;&gt;  &gt;&gt;  &gt;Store the information about the sound loaded (or recorded)<br>
&gt; and use that<br>
&gt;&gt;  &gt; to stop the playback after one play duration.<br>
&gt;&gt;  &gt;&gt;  &gt;<br>
&gt;&gt;  &gt;&gt;  &gt;<br>
&gt;&gt;  &gt;&gt;  &gt;[del &lt;time&gt;]<br>
&gt;&gt;  &gt;&gt;  &gt;|<br>
&gt;&gt;  &gt;&gt;  &gt;[t  b  b]<br>
&gt;&gt;  &gt;&gt;  &gt;|        |<br>
&gt;&gt;  &gt;&gt;  &gt;[0(     [0(<br>
&gt;&gt;  &gt;&gt;  &gt;[        |<br>
&gt;&gt;  &gt;&gt;  &gt;[phasor]<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;&gt;  What&#39;s the benefit of this over a line~ based approach?<br>
&gt;&gt;  &gt;&gt;<br>
&gt;&gt;  &gt;<br>
&gt;&gt;  &gt; [line~] is inferior to [phasor~] in that it only starts a ramp on<br>
&gt; block<br>
&gt;&gt;  &gt; boundaries. Using [vline~] seems to me most flexible in terms of<br>
&gt; sample<br>
&gt;&gt;  &gt; playback as it can start a ramp even in-between samples.<br>
&gt;&gt;<br>
&gt;&gt;  That depends on how one uses [phasor~].  In the example above the initial<br>
&gt;&gt;  ramp must start on a block boundary-- whatever is triggering [del<br>
&gt; &lt;time&gt;] must<br>
&gt;&gt;  also send the relevent frequency to [phasor~] for playing the sound stored<br>
&gt; in the<br>
&gt;&gt;  array.  Those actions must happen with control objects, which means they<br>
&gt; will<br>
&gt;&gt;  affect the signal objects at the beginning of the next block.<br>
&gt;&gt;<br>
&gt;&gt;  However, for the ramp at the end of playback [phasor~] as used above can<br>
&gt;&gt;  produce a ramp that begins/ends in the middle of a block ( [vline~] too),<br>
&gt;&gt;  whereas [line~] cannot.  Of course I&#39;m just talking about situations<br>
&gt; implied<br>
&gt;&gt;  by the example above, where the user is just triggering events sporadically<br>
&gt;<br>
&gt;&gt;  using control objects.<br>
&gt;<br>
&gt; What do you mean by &#39;triggering events sporadically using control<br>
&gt; objects&#39;? Aren&#39;t [delay] and [metro] also control objects? If those are<br>
&gt; generating the event, you have more precise timing than only block<br>
&gt; boundaries. We actually don&#39;t know what would be triggering the [del] in<br>
&gt; the above patch (or probably I missed it?).<br>
&gt;<br>
&gt; Either way, the above patch would convert the precise timing to only<br>
&gt; block boundaries timing because the frequency inlet of [phasor~] only<br>
&gt; evaluates control messages on block boundaries.<br>
&gt;<br>
&gt; Using [vline~ ], however, would actually use the precise timing of the<br>
&gt; event.<br>
&gt;<br>
&gt;<br>
&gt;&gt;   Neither [line~] nor [vline~] will trigger a ramp in the<br>
&gt;&gt;  middle of the current block, so if you&#39;re rule is &quot;IF sample<br>
&gt; playback THEN<br>
&gt;&gt;  [vline~] &gt; [line~]&quot; there are probably times you&#39;re wasting<br>
&gt; cpu.<br>
&gt;<br>
&gt; Sorry, if I am missing your point, but how do you know that [vline~ ]<br>
&gt; wouldn&#39;t trigger a ramp in the middle of block in this case?<br>
<br>
</div></div>I didn&#39;t write that [vline~] cannot trigger a ramp in the middle of a block-- it<br>
obviously can.  I wrote that neither object can start a ramp in the middle of<br>
the current block.  In fact, [line~] will almost always trigger sooner than<br>
[vline~], because [line~] starts the ramp immediately at the next block, and<br>
[vline~] at minimum will be delayed exactly one block.<br>
<br>
I have an example patch that shows this but for some reason I can&#39;t attach<br>
it in Yahoo mail.  But just make a simple amplitude envelop inside a<br>
subpatch with a large blocksize (greater than one second will do), then<br>
try triggering your envelope using [vline~].<br>
<font color="#888888"><br>
-Jonathan<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; Roman<br>
&gt;<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>