40 , increment_((target - *state) / static_cast<float>(frames))
47 , increment_((target - start) / static_cast<float>(frames))
68 float value()
const {
return value_; }
float value() const
Current value (without advancing)
ParameterInterpolator & operator=(const ParameterInterpolator &)=delete
float next()
Get next interpolated value.
ParameterInterpolator(const ParameterInterpolator &)=delete
float increment() const
Per-sample increment.
ParameterInterpolator(float start, float target, uint16_t frames)
Non-owning constructor (no write-back on destruction)
ParameterInterpolator(float *state, float target, uint16_t frames)
Construct interpolator for a block.
DSP atoms for audio signal processing.