<div dir="ltr">nevermind, I thought it was for feedback, but I see what it looks like now</div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-16 13:04 GMT-02:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">> <span style="color:rgb(80,0,80);font-size:12.8000001907349px"> seems similar to  the one used to make delay line</span><br style="color:rgb(80,0,80);font-size:12.8000001907349px"><span style="color:rgb(80,0,80);font-size:12.8000001907349px">> shorter than one block.</span><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div></span><div><span style="font-size:12.8000001907349px"><font color="#000000">and how is that trick? :)</font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-16 11:41 GMT-02:00 IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On 12/15/2014 11:53 PM, Raphaël Ilias wrote:<br>
> Ok, I get the trick, it seems similar to  the one used to make delay line<br>
> shorter than one block.<br>
> However, I still feel that an object "give-me-RMS enveloppe-on-bang" (for<br>
> the last N samples or blocks) would appear to me an easier way to handle<br>
> this case.<br>
> If it doesn't exist, I'll try to build something like this... one day !<br>
> Many thanks !<br>
<br>
</span>oh, but that is just trivial:<br>
<br>
messages and signals are always calculated one after each other (first<br>
all messages; once they are done, signals are processed).<br>
<br>
so an even easier way would be to use a latch ([f]) and [bang~]+[del 0]<br>
to do the calculation in msg-domain.<br>
[bang~] will output a bang before each signal block (or after; it really<br>
will trigger a bang before the *next* signal block).<br>
unfortunately, this bang can happen before or after the events sent out<br>
by [env~], so we need to make sure to get an event *after* all [env~]s<br>
have triggered.<br>
the simplest way to achieve this is by using an additional [delay 0],<br>
which will schedule an event at the same logical time NOW but after all<br>
events already scheduled for NOW (e.g. those from [env~]).<br>
<br>
see attached patch. (in the attached patch i wasn't able to trigger an<br>
undesired behaviour without the [delay 0]; however i haven't tried hard<br>
and i'm pretty sure that you *can*; thus you should use [del 0])<br>
<br>
<br>
mfgadsr<br>
<span><font color="#888888">IOhannes<br>
</font></span><br></div></div><span class="">_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.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></span></blockquote></div></div>
</blockquote></div></div>