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

Detailed Description

Definition at line 13 of file crossfade_ramp.hpp.

#include <crossfade_ramp.hpp>

Public Member Functions

void begin (float target, uint16_t n)
 Start a block that ends at target after n steps.
 
float next ()
 The value for the next sample.
 
void end ()
 Close the block exactly on its target, so rounding never drifts.
 
float value () const
 
void reset (float value)
 

Member Function Documentation

◆ begin()

void sbl::dsp::primitives::CrossfadeRamp::begin ( float  target,
uint16_t  n 
)
inline

Start a block that ends at target after n steps.

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

Definition at line 18 of file crossfade_ramp.hpp.

Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::process().

◆ next()

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

The value for the next sample.

Definition at line 24 of file crossfade_ramp.hpp.

Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::process().

◆ end()

void sbl::dsp::primitives::CrossfadeRamp::end ( )
inline

Close the block exactly on its target, so rounding never drifts.

Definition at line 27 of file crossfade_ramp.hpp.

Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::process().

◆ value()

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

Definition at line 29 of file crossfade_ramp.hpp.

Referenced by reset().

◆ reset()

void sbl::dsp::primitives::CrossfadeRamp::reset ( float  value)
inline

Definition at line 30 of file crossfade_ramp.hpp.

References value().

Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::reset().


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