|
|
| LinearSmoothedValue (FloatType initialValue, const int rampSteps) |
| |
|
bool | isSmoothing () const noexcept |
| | Returns true if the current value is currently being interpolated.
|
| |
|
FloatType | getCurrentValue () const noexcept |
| | Returns the current value to the ramp.
|
| |
|
FloatType | getTargetValue () const noexcept |
| | Returns the target value towards which the smoothed value is currently moving.
|
| |
| void | reset (FloatType newValue) noexcept |
| | Reset the currentValue, targetValue and ramp count. More...
|
| |
| void | setRampLength (const int numSteps) noexcept |
| | Set a new ramp length in samples. More...
|
| |
| void | setTargetValue (FloatType newValue) noexcept |
| | Set the next value to ramp towards. More...
|
| |
| FloatType | getNextValue () noexcept |
| | Compute the smoothed value. More...
|
| |
template<std::floating_point FloatType>
class ame::LinearSmoothedValue< FloatType >
Smooth values linearly.
- Template Parameters
-