2008/6/19 kevin <
vacillates@gmail.com>:
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.
Not by much, I think. This is the "essence" of Envelope, it comes from Ugen_stk.cpp, starts at line 6972;
=============================-
MY_FLOAT Envelope :: tick(void)
{
if (state) {
if (target > value) {
value += rate;
if (value >= target) {
value = target;
state = 0;
}
}
else {
value -= rate;
if (value <= target) {
value = target;
state = 0;
}
}
}
return value;
}
============