[chuck-users] ADSR release time

Manfred Brockhaus manfred.brockhaus at chello.at
Thu Sep 15 07:32:17 EDT 2005


I'm wondering how to handle ADSR release time correctly.
In theory the following should work:

sinosc s => ADSR e => dac;
s.freq(1000);

e.attackTime(0.1);
e.decayTime(0.2);
e.sustainLevel(0.5);
e.releaseTime(0.01 => float r);

e.keyOn(1);
1::second => now;
e.keyOff(1);
r::second => now;

However, for small values like 0.01 above I get a click at the end.
Any ideas?

-mb



More information about the chuck-users mailing list