Hi Roman,
It would be pretty easy to modify this to have a separate C (curve) parameter for attack and decay/release (or even separate C's for decay and release as well, if one were so inclined). I considered doing this, but didn't do it for the selfish reason that my envelope UI's are getting pretty cluttered as it is! Maybe I could do a thing where if you didn't specify values for C(decay) and C(release), they'd be equal to C(attack) by default.
The quartic(ish) curve I use for C of < 1 actually sounds pretty good for attack, actually. It is thinner and sharper for fast values of A, and has a nice, natural rise for slower attacks. I like using the "fatter" (C > 1) envelopes for contrast; they carry a lot more energy under the curve. Poor old linear sounds pretty boring, but it comes in handy as a reference.
Thanks for writing, Roman.
Phil
Roman Haefeli wrote:
cool work! thanks for sharing it!
personally, i like a logarithmic curve the most for decay and release (this is also, how decays happen to be in nature [e.g a bell]), though otoh, a logarithmic curve doesn't make much sense for attack, if applied to the amplitude (nothing happens for a long period and then suddenly the sound comes). how about using a separate c parameter for the attack, so that one could have fat (for attack) and hollow (for decay) at the same time?
roman