thanks for the suggestion Patrice.<div>I was trying something with expr~.</div><div>I find it hard to achieve the same accuracy as bonk~</div><div>also, I think that the crackles must be caused by something further downstream in my patch, where the bonk~ objects&#39; bangs get sent to...</div>

<div><br><br><div class="gmail_quote">2010/4/9  <span dir="ltr">&lt;<a href="mailto:colet.patrice@free.fr">colet.patrice@free.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

 for detecting levels with periodic signals, using [env~] and messaging system seems to make it, like attached example</blockquote></div><br></div>