expon
Trace an exponential curve between specified points.
Syntax
Initialization
ia -- starting value. Zero is illegal for exponentials.
ib -- value after idur seconds. For exponentials, must be non-zero and must agree in sign with ia.
idur -- duration in seconds of the segment. A zero or negative value skips initialization, preserving the current value and rate during reinitialization.
Performance
The first output is ia. The magnitude changes by a constant factor at each audio sample or control cycle. For example, a curve from 1 to 4 passes through 2 halfway through idur. Both endpoints can also be negative; the curve stays on the same side of zero.
If the note lasts longer than idur, the curve continues past ib at the same exponential rate. If the note ends sooner, the curve stops at that point.
Examples
Here is an example of the expon opcode. It uses the file expon.csd.