|
| LogRampedValue ()=default |
| Constructor. More...
|
|
| LogRampedValue (FloatType initialValue) noexcept |
| Constructor. More...
|
|
void | setLogParameters (FloatType midPointAmplitudedB, bool rateOfChangeShouldIncrease) noexcept |
| Sets the behaviour of the log ramp. More...
|
|
void | reset (double sampleRate, double rampLengthInSeconds) noexcept |
| Reset to a new sample rate and ramp length. More...
|
|
void | reset (int numSteps) noexcept |
| Set a new ramp length directly in samples. More...
|
|
void | setTargetValue (FloatType newValue) noexcept |
| Set a new target value. More...
|
|
FloatType | getNextValue () noexcept |
| Compute the next value. More...
|
|
FloatType | skip (int numSamples) noexcept |
| Skip the next numSamples samples. More...
|
|
| SmoothedValueBase ()=default |
| Constructor. More...
|
|
bool | isSmoothing () const noexcept |
| Returns true if the current value is currently being interpolated. More...
|
|
FloatType | getCurrentValue () const noexcept |
| Returns the current value of the ramp. More...
|
|
FloatType | getTargetValue () const noexcept |
| Returns the target value towards which the smoothed value is currently moving. More...
|
|
void | setCurrentAndTargetValue (FloatType newValue) |
| Sets the current value and the target value. More...
|
|
void | applyGain (FloatType *samples, int numSamples) noexcept |
| Applies a smoothed gain to a stream of samples S[i] *= gain. More...
|
|
void | applyGain (FloatType *samplesOut, const FloatType *samplesIn, int numSamples) noexcept |
| Computes output as a smoothed gain applied to a stream of samples. More...
|
|
void | applyGain (AudioBuffer< FloatType > &buffer, int numSamples) noexcept |
| Applies a smoothed gain to a buffer.
|
|
template<typename FloatType>
class juce::dsp::LogRampedValue< FloatType >
Utility class for logarithmically smoothed linear values.
Logarithmically smoothed values can be more relevant than linear ones for specific cases such as algorithm change smoothing, using two of them in opposite directions.
The gradient of the logarithmic/exponential slope can be configured by calling LogRampedValue::setLogParameters.
- See also
- SmoothedValue
Definition at line 52 of file juce_LogRampedValue.h.