|
iPlug2 - C++ Audio Plug-in Framework
|
A ControlRamp describes one value changing over time. More...
#include <ControlRamp.h>
Public Types | |
| template<size_t N> | |
| using | RampArray = std::array< ControlRamp, N > |
Public Member Functions | |
| void | Clear () |
| bool | IsNonzero () const |
| void | Write (float *buffer, int startIdx, int nFrames) |
| Writes the ramp signal to an output buffer. More... | |
Public Attributes | |
| double | startValue |
| double | endValue |
| int | transitionStart |
| int | transitionEnd |
A ControlRamp describes one value changing over time.
It can be easily converted into a signal for more processing, or if sample accuracy is not needed, just the end value can be used. It describes a piecewise function in three pieces: from [0, startValue] to [transitionStart, startValue] from [transitionStart, startValue] to [transitionEnd, endValue] from [transitionEnd, endValue] to [blockSize, endValue]
Definition at line 32 of file ControlRamp.h.
| using ControlRamp::RampArray = std::array<ControlRamp, N> |
Definition at line 75 of file ControlRamp.h.
|
inline |
Definition at line 39 of file ControlRamp.h.
|
inline |
Definition at line 45 of file ControlRamp.h.
|
inline |
Writes the ramp signal to an output buffer.
| buffer | Pointer to the start of an output buffer. |
| startIdx | Sample index of the start of the desired write within the buffer. |
| nFrames | The number of samples to be written. |
Definition at line 54 of file ControlRamp.h.
| double ControlRamp::endValue |
Definition at line 35 of file ControlRamp.h.
| double ControlRamp::startValue |
Definition at line 34 of file ControlRamp.h.
| int ControlRamp::transitionEnd |
Definition at line 37 of file ControlRamp.h.
| int ControlRamp::transitionStart |
Definition at line 36 of file ControlRamp.h.