I suppose I'll chime in my support for this functionality, as it makes sense, though it does seem like it'd be harder to implement.<br><br>-Kevin<br><br><div class="gmail_quote">On Wed, Jun 18, 2008 at 10:13 PM, mike clemow <<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">+1<br>
<br>
Yes, I think that makes much more sense, for what it's worth.<br>
<br>
-mike<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Jun 18, 2008 at 9:03 PM, Kassen <<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>> wrote:<br>
> Fellow ChucKists,<br>
><br>
> Envelope.rate() is a read-write function so I thought I'd try to use it to<br>
> detect the current movement of a envelope, like this:<br>
> =========================================<br>
> Envelope e => blackhole;<br>
><br>
> e.value(0);<br>
> e.duration(second);<br>
><br>
> e.target(1);<br>
><br>
> now + 3::second => time later;<br>
> while(now <later)<br>
> {<br>
> <<<e.rate()>>>;<br>
> 10::ms => now;<br>
> }<br>
> ================<br>
><br>
> It now turns out that .rate(), when read from, reports the rate of change<br>
> Envelope had when it was last set to a target, not necessarily it's current<br>
> rate of change (which may well be 0).<br>
><br>
> I'd like to propose this behaviour to be changed towards Envelope always<br>
> reporting it's current rate of change.<br>
><br>
> Because Envelope is a part of the STK we may need to be careful with that<br>
> as other Ugens inherit from it so such changes might affect those. Still;<br>
> there are a few STK Ugens that are on The List to have a look at because of<br>
> their envelope (probably ADSR) based behaviour anyway. Stricktly speaking<br>
> this change could break some ChucK code as well but I find it hard to<br>
> imagine situations where the current behaviour is more usefull then my<br>
> proposed change.<br>
><br>
> Yours,<br>
> Kas.<br>
><br>
</div></div>> _______________________________________________<br>
> chuck-users mailing list<br>
> <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
<a href="http://semiotech.org" target="_blank">http://semiotech.org</a><br>
<a href="http://deadlylittlepills.com/michael" target="_blank">http://deadlylittlepills.com/michael</a><br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</font></blockquote></div><br>