Exponential envelope segment for smoothing out value changes. More...
#include <Envelope.h>
Inherits Ts.
Public Member Functions | |
| SegExp (T len, T crv=-3, T start=1, T end=0) | |
| bool | done () const |
| Returns whether envelope is done. | |
| T | operator() () |
| Generate next value. | |
| void | operator= (T v) |
| Set new end value. Start value is set to current value. | |
| void | curve (T v) |
| Set curvature. Negative gives faster change, positive gives slower change. | |
| void | period (T v) |
| Set length in domain units. | |
| void | set (T len, T crv) |
| Set length and curvature. | |
Exponential envelope segment for smoothing out value changes.
| SegExp | ( | T | len, |
| T | crv = -3, |
||
| T | start = 1, |
||
| T | end = 0 |
||
| ) |
| [in] | len | Length of segment in domain units |
| [in] | crv | Curvature of segment |
| [in] | start | Start value |
| [in] | end | End value |