<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>

</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></blockquote><div><br></div><div>thanks !<br></div><div>yes, with [delay 0] it ensures to get the good result (same block)...<br>(also tried to get an undesired behaviour without [del 0], but didn't succeed !)<br><br></div><div>i already used [delay 0] sometimes, but i don't see where it's role is documented<br></div><div></div><div><br>i already knew [bang~] but with this object my doubt was always : "i know that it will happen *every* block during message-domain computation, but *when* in that block ? relatively to other "not-triggerred" objects like [env~]..."<br></div><div><br></div><div>well, maybe i'm going too far with this... since you gave me a working solution :-)<br><br></div><div>however, also sent this to the pd-list because i wonder if i'm the only one to feel that this issue isn't very intuitive to solve...<br></div><div></div><div></div><br></div><div class="gmail_quote">cheers, <br><br>RaphaĆ«l<br></div></div></div>