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

#include <slew.hpp>

Collaboration diagram for sbl::dsp::SlewLimiter:

Public Member Functions

void set_rise_rate (uint32_t rate)
 Set maximum increase per sample.
 
void set_fall_rate (uint32_t rate)
 Set maximum decrease per sample.
 
void set_rate (uint32_t rate)
 Set both rise and fall rates to the same value.
 
Sample process (Sample target)
 Process one sample toward target with rate limiting.
 
Sample value () const
 Current output value.
 
void reset ()
 Reset to zero.
 
void reset (Sample initial)
 Reset to a specific value.
 

Detailed Description

Definition at line 23 of file slew.hpp.

Member Function Documentation

◆ process()

Sample sbl::dsp::SlewLimiter::process ( Sample  target)
inline

Process one sample toward target with rate limiting.

Parameters
targetTarget value
Returns
Rate-limited output

Definition at line 41 of file slew.hpp.

◆ reset() [1/2]

void sbl::dsp::SlewLimiter::reset ( )
inline

Reset to zero.

Definition at line 68 of file slew.hpp.

◆ reset() [2/2]

void sbl::dsp::SlewLimiter::reset ( Sample  initial)
inline

Reset to a specific value.

Definition at line 71 of file slew.hpp.

◆ set_fall_rate()

void sbl::dsp::SlewLimiter::set_fall_rate ( uint32_t  rate)
inline

Set maximum decrease per sample.

Definition at line 31 of file slew.hpp.

◆ set_rate()

void sbl::dsp::SlewLimiter::set_rate ( uint32_t  rate)
inline

Set both rise and fall rates to the same value.

Definition at line 34 of file slew.hpp.

◆ set_rise_rate()

void sbl::dsp::SlewLimiter::set_rise_rate ( uint32_t  rate)
inline

Set maximum increase per sample.

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

Definition at line 28 of file slew.hpp.

◆ value()

Sample sbl::dsp::SlewLimiter::value ( ) const
inline

Current output value.

Definition at line 65 of file slew.hpp.


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