Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sbl::dsp::ParameterInterpolator Class Reference

#include <param_interp.hpp>

Collaboration diagram for sbl::dsp::ParameterInterpolator:

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
 
ParameterInterpolatoroperator= (const ParameterInterpolator &)=delete
 
float next ()
 Get next interpolated value.
 
float value () const
 Current value (without advancing)
 
float increment () const
 Per-sample increment.
 

Detailed Description

Definition at line 27 of file param_interp.hpp.

Constructor & Destructor Documentation

◆ ParameterInterpolator() [1/3]

sbl::dsp::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 37 of file param_interp.hpp.

◆ ParameterInterpolator() [2/3]

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

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

Definition at line 44 of file param_interp.hpp.

◆ ~ParameterInterpolator()

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

Definition at line 50 of file param_interp.hpp.

◆ ParameterInterpolator() [3/3]

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

Member Function Documentation

◆ increment()

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

Per-sample increment.

Definition at line 71 of file param_interp.hpp.

◆ next()

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

Get next interpolated value.

Definition at line 61 of file param_interp.hpp.

◆ operator=()

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

◆ value()

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

Current value (without advancing)

Definition at line 68 of file param_interp.hpp.


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