expcurve
Generates a normalised exponential curve in range 0 to 1 of arbitrary steepness.
It is based on the Max / MSP work of Eric Singer (c) 1994. Steepness index less than 1.0 would result in Not-a-Number errors and cause unstable behavior so is treated as if it were 1.
The formula used to calculate the curve is:
where x is equal to kindex and y is equal to ksteepness.
Syntax
Performance
kindex -- Index value. Expected range 0 to 1.
ksteepness -- Steepness of the generated curve. Values closer to 1.0 result in a straighter line while larger values steepen the curve.
kout -- Scaled output.
Examples
Here is an example of the expcurve opcode. It uses the file expcurve.csd.
See also
Linear and Exponential Generators
Credits
Author: David Akbari
October
2006
Range check introduced in 6.16 by John ffitch