46template <
typename FloatType>
59 this->
target = initialValue;
86 void reset (
double sampleRate,
double rampLengthInSeconds)
noexcept
88 jassert (sampleRate > 0 && rampLengthInSeconds >= 0);
89 reset ((
int) std::floor (rampLengthInSeconds * sampleRate));
95 void reset (
int numSteps)
noexcept
111 if (newValue == this->
target)
160 auto rN = (
FloatType) std::pow (
r, numSamples);
#define noexcept
Definition DistrhoDefines.h:72
static Type decibelsToGain(Type decibels, Type minusInfinityDb=Type(defaultMinusInfinitydB))
Definition juce_Decibels.h:42
FloatType target
Definition juce_SmoothedValue.h:164
FloatType currentValue
Definition juce_SmoothedValue.h:163
bool isSmoothing() const noexcept
Definition juce_SmoothedValue.h:63
int countdown
Definition juce_SmoothedValue.h:165
SmoothedValueBase()=default
void setCurrentAndTargetValue(FloatType newValue)
Definition juce_SmoothedValue.h:75
typename FloatTypeHelper< LogRampedValue< FloatType > >::Type FloatType
Definition juce_SmoothedValue.h:55
FloatType temp
Definition juce_LogRampedValue.h:185
int stepsToTarget
Definition juce_LogRampedValue.h:184
FloatType r
Definition juce_LogRampedValue.h:185
FloatType getNextValue() noexcept
Definition juce_LogRampedValue.h:131
void reset(double sampleRate, double rampLengthInSeconds) noexcept
Definition juce_LogRampedValue.h:86
void setLogParameters(FloatType midPointAmplitudedB, bool rateOfChangeShouldIncrease) noexcept
Definition juce_LogRampedValue.h:73
FloatType B
Definition juce_LogRampedValue.h:182
FloatType d
Definition juce_LogRampedValue.h:185
FloatType skip(int numSamples) noexcept
Definition juce_LogRampedValue.h:150
LogRampedValue(FloatType initialValue) noexcept
Definition juce_LogRampedValue.h:55
void reset(int numSteps) noexcept
Definition juce_LogRampedValue.h:95
void updateRampParameters()
Definition juce_LogRampedValue.h:170
void setTargetValue(FloatType newValue) noexcept
Definition juce_LogRampedValue.h:109
FloatType source
Definition juce_LogRampedValue.h:185
bool increasingRateOfChange
Definition juce_LogRampedValue.h:181
Definition juce_AudioBlock.h:29
Definition carla_juce.cpp:31
constexpr Type jmap(Type value0To1, Type targetRangeMin, Type targetRangeMax)
Definition juce_MathsFunctions.h:120
static float D(float x)
Definition tap_tubewarmth.c:156