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::SmoothedPort Class Reference

Detailed Description

Definition at line 17 of file smoothed_port.hpp.

#include <smoothed_port.hpp>

Public Member Functions

void set_time_ms (float ms, float rate_hz)
 Settling time, at the rate the smoother is advanced at (per sample here).
 
void set (float target)
 The port's setter stores here; nothing moves until advance().
 
float target () const
 
float advance (uint16_t n)
 Advance by a block: the smoothed value to apply for this block.
 
float value () const
 
void reset ()
 Snap to the target: what reset() does, so ports start where they were set.
 

Member Function Documentation

◆ set_time_ms()

void sbl::dsp::primitives::SmoothedPort::set_time_ms ( float  ms,
float  rate_hz 
)
inline

Settling time, at the rate the smoother is advanced at (per sample here).

Note
All public methods are ISR-safe — bounded computation, no I/O.

Definition at line 22 of file smoothed_port.hpp.

References sbl::dsp::primitives::ParameterSmoother::set_time_ms().

Referenced by sbl::dsp::pm::BowSet::BowSet(), and sbl::dsp::pm::BowSet::reset().

◆ set()

◆ target()

float sbl::dsp::primitives::SmoothedPort::target ( ) const
inline

Definition at line 26 of file smoothed_port.hpp.

Referenced by set().

◆ advance()

float sbl::dsp::primitives::SmoothedPort::advance ( uint16_t  n)
inline

◆ value()

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

◆ reset()

void sbl::dsp::primitives::SmoothedPort::reset ( )
inline

Snap to the target: what reset() does, so ports start where they were set.

Definition at line 37 of file smoothed_port.hpp.

References sbl::dsp::primitives::ParameterSmoother::reset().

Referenced by sbl::dsp::pm::BowSet::BowSet(), and sbl::dsp::pm::BowSet::reset().


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