Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::dsp::primitives::ParameterInterpolator Class Reference

Detailed Description

Definition at line 28 of file parameter_interpolator.hpp.

#include <parameter_interpolator.hpp>

Public Member Functions

 ParameterInterpolator (float *state, float target, uint16_t frames)
 Construct interpolator for a block.
 
 ParameterInterpolator (float start, float target, uint16_t frames)
 Non-owning constructor (no write-back on destruction)
 
 ~ParameterInterpolator ()
 
 ParameterInterpolator (const ParameterInterpolator &)=delete
 
ParameterInterpolator & operator= (const ParameterInterpolator &)=delete
 
float next ()
 Get next interpolated value.
 
float value () const
 Current value (without advancing)
 
float increment () const
 Per-sample increment.
 

Constructor & Destructor Documentation

◆ ParameterInterpolator() [1/3]

sbl::dsp::primitives::ParameterInterpolator::ParameterInterpolator ( float *  state,
float  target,
uint16_t  frames 
)
inline

Construct interpolator for a block.

Note
All public methods are ISR-safe — bounded computation, no I/O.
Parameters
statePointer to persistent state (read on entry, written on exit)
targetTarget value for end of block
framesNumber of samples in the block (must be > 0)

Definition at line 38 of file parameter_interpolator.hpp.

◆ ParameterInterpolator() [2/3]

sbl::dsp::primitives::ParameterInterpolator::ParameterInterpolator ( float  start,
float  target,
uint16_t  frames 
)
inline

Non-owning constructor (no write-back on destruction)

Definition at line 45 of file parameter_interpolator.hpp.

◆ ~ParameterInterpolator()

sbl::dsp::primitives::ParameterInterpolator::~ParameterInterpolator ( )
inline

Definition at line 51 of file parameter_interpolator.hpp.

◆ ParameterInterpolator() [3/3]

sbl::dsp::primitives::ParameterInterpolator::ParameterInterpolator ( const ParameterInterpolator &  )
delete

Member Function Documentation

◆ operator=()

ParameterInterpolator & sbl::dsp::primitives::ParameterInterpolator::operator= ( const ParameterInterpolator &  )
delete

◆ next()

float sbl::dsp::primitives::ParameterInterpolator::next ( )
inline

Get next interpolated value.

Definition at line 62 of file parameter_interpolator.hpp.

Referenced by sbl::dsp::widgets::Shaper::process().

◆ value()

float sbl::dsp::primitives::ParameterInterpolator::value ( ) const
inline

Current value (without advancing)

Definition at line 69 of file parameter_interpolator.hpp.

◆ increment()

float sbl::dsp::primitives::ParameterInterpolator::increment ( ) const
inline

Per-sample increment.

Definition at line 72 of file parameter_interpolator.hpp.


The documentation for this class was generated from the following file: