|
LMMS
|
Algorithm for a constant time linear ramp. More...
#include <inertia.h>
Public Member Functions | |
| linear_ramp (int _ramp_len) | |
| Construct for given ramp length. | |
| void | set_length (int _ramp_len) |
| Change ramp length. | |
| int | length () |
| void | start_ramp (float start, float end) |
| float | ramp (float value) |
| Return value after single step. | |
| float | ramp_many (float value, int count) |
| Return value after many steps. | |
Public Attributes | |
| int | ramp_len |
| float | mul |
| float | delta |
Algorithm for a constant time linear ramp.
|
inline |
Construct for given ramp length.
|
inline |
|
inline |
Return value after single step.
|
inline |
Return value after many steps.
|
inline |
| float dsp::linear_ramp::delta |
| float dsp::linear_ramp::mul |
| int dsp::linear_ramp::ramp_len |