Exponential envelopes tend to produce more natural sounds.
The [curve~] object generates exponential or logarithmic envelopes.
In addition to target and duration parameters, the [curve~] object takes a “curve” parameter that controls the rate of increase/decrease of the envelope. A value of 0 produces linear line segments. A value between 0 and 1 produces an exponential curve, while values between 0 and -1 produce logarithmic curves.
The [curve~] object does not work with the [function] object. The example above prints the envelope results to a [table] but editing of the envelope shape must be performed by modification of the breakpoints in the messages.