21#ifndef SBL_DSP_PRIMITIVES_PARAMETER_INTERPOLATOR_HPP_
22#define SBL_DSP_PRIMITIVES_PARAMETER_INTERPOLATOR_HPP_
41 , increment_((target - *state) / static_cast<float>(frames))
48 , increment_((target - start) / static_cast<float>(frames))
69 float value()
const {
return value_; }
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.
float value() const
Current value (without advancing)
ParameterInterpolator(const ParameterInterpolator &)=delete
ParameterInterpolator & operator=(const ParameterInterpolator &)=delete
float increment() const
Per-sample increment.
float next()
Get next interpolated value.
Stateful, single-concern building blocks.