<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello ChucKers,<div class=""><br class=""></div><div class="">For the longest time I couldn't figure out how to get envelopes to work correctly as modulators</div><div class=""><br class=""></div><div class="">ADSR env =&gt; blackhole;</div><div class=""><br class=""></div><div class="">spork ~ updateAtSampleRate();</div><div class=""><br class=""></div><div class="">fun void updateAtSampleRate()</div><div class="">{</div><div class="">&nbsp; while (true)</div><div class="">&nbsp; {</div><div class="">&nbsp; &nbsp; 1::samp =&gt; now;</div><div class="">&nbsp; &nbsp; env.last() =&gt; // do something</div><div class="">&nbsp; }</div><div class="">}</div><div class=""><br class=""></div><div class="">It turns out they need a kick in the pants to work correctly, in other words</div><div class=""><br class=""></div><div class="">Step step =&gt; ADSR env =&gt; blackhole;</div><div class="">1.0 =&gt; step.next;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Is this intentional?</div><div class=""><br class=""></div><div class="">Then is there any interest in implementing all the other envelope types (AD, AR, AHDSR, DADSR, DAHDSR)? &nbsp;I could probably do it in ChucK, but it might be better to implement them as chugins or upstream in STK.</div><div class=""><br class=""></div><div class="">In any case, now that I know how to make ADSR envelopes work, I have some pretty awful synthesized drums, just in time for the RPM challenge.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/heuermh/lick/tree/master/lick/kick" class="">https://github.com/heuermh/lick/tree/master/lick/kick</a></div><div class=""><a href="https://github.com/heuermh/lick/tree/master/lick/snare" class="">https://github.com/heuermh/lick/tree/master/lick/snare</a></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;michael</div></body></html>