<div dir="ltr"><div>First multiply the gain by some envelope, as in the manual (pg 165):<br></div><div>STK - Envelopes</div>Envelope<br>• STK envelope base class.<br><br>Unit Generators<br>• see examples/<a href="http://sixty.ck">sixty.ck</a><br>This class implements a simple envelope<br>generator which is capable of ramping to<br>a target value by a specified \e rate.<br>It also responds to simple \e keyOn and<br>\e keyOff messages, ramping to 1.0 on<br>keyOn and to 0.0 on keyOff.<br>by Perry R. Cook and Gary P. Scavone, 1995 - 2002.<br>[ctrl param]<br><br>.keyOn (int, WRITE only) ramp to 1.0<br>.keyOff (int, WRITE only) ramp to 0.0<br>.target (float, READ/WRITE) ramp to arbitrary value<br>.time (float, READ/WRITE) time to reach target (in second)<br>.duration (dur, READ/WRITE) time to reach target<br>.rate (float, READ/WRITE) rate of change<br>.value (float, READ/WRITE) set immediate value</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 30, 2020 at 3:34 PM Claudio Donaggio &lt;<a href="mailto:claudiodonaggio83@gmail.com">claudiodonaggio83@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><div style="width:328px;margin:16px 0px"><div><br><br>Hi all!<br>I was wondering if there is a way to smoothly fade out a shred. Example: from command line you add a shred with chuck + <a href="http://shred.ck/" style="text-decoration-line:none;color:rgb(66,133,244)" target="_blank">shred.ck</a> and remove it with chuck - 1. But when you remove the shred or replace it gets cut off instantly. I am sure there is a way to dinamically scale the gain from 1 to 0 smoothly before remove the shred, but I do not have a clue on how to go about it...<br>Thanks!<br>Claudio<br><br>Inviato dal mio dispositivo mobile Huawei</div></div><div style="height:0px"></div></div><br></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>