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

Detailed Description

Definition at line 21 of file folder.hpp.

#include <folder.hpp>

Public Member Functions

float process (float x)
 Process a single sample — fold x into [-1, 1] via triangle-wave reflection.
 
void process (float *buf, uint16_t frames)
 Process a block in-place.
 

Static Public Member Functions

static float fold (float x)
 The fold function, available for math use (e.g., WavefoldAA antiderivatives)
 

Member Function Documentation

◆ process() [1/2]

float sbl::dsp::primitives::Folder::process ( float  x)
inline

Process a single sample — fold x into [-1, 1] via triangle-wave reflection.

Definition at line 24 of file folder.hpp.

References fold().

◆ process() [2/2]

void sbl::dsp::primitives::Folder::process ( float *  buf,
uint16_t  frames 
)
inline

Process a block in-place.

Definition at line 27 of file folder.hpp.

References fold().

◆ fold()

static float sbl::dsp::primitives::Folder::fold ( float  x)
inlinestatic

The fold function, available for math use (e.g., WavefoldAA antiderivatives)

Definition at line 34 of file folder.hpp.

Referenced by process(), sbl::dsp::comp::WavefoldAA::process(), and process().


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