JUCE
|
Utility class for linearly smoothed values like volume etc. More...
Public Member Functions | |
LinearSmoothedValue () noexcept | |
Constructor. More... | |
LinearSmoothedValue (FloatType initialValue) noexcept | |
Constructor. More... | |
void | reset (double sampleRate, double rampLengthInSeconds) noexcept |
Reset to a new sample rate and ramp length. More... | |
void | setValue (FloatType newValue) noexcept |
Set a new target value. More... | |
FloatType | getNextValue () noexcept |
Compute the next value. More... | |
bool | isSmoothing () const noexcept |
Returns true if the current value is currently being interpolated. More... | |
FloatType | getTargetValue () const noexcept |
Returns the target value towards which the smoothed value is currently moving. More... | |
Utility class for linearly smoothed values like volume etc.
that should not change abruptly but as a linear ramp, to avoid audio glitches.
|
noexcept |
Constructor.
|
noexcept |
Constructor.
|
noexcept |
Reset to a new sample rate and ramp length.
|
noexcept |
Set a new target value.
|
noexcept |
Compute the next value.
|
noexcept |
Returns true if the current value is currently being interpolated.
|
noexcept |
Returns the target value towards which the smoothed value is currently moving.