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

Detailed Description

Definition at line 25 of file bit_reducer.hpp.

#include <bit_reducer.hpp>

Public Member Functions

void set_bits (float bits)
 
float bits () const
 
float process (float x) const
 Process a single sample.
 
void process (float *buf, uint16_t n) const
 Process a block of samples in-place.
 

Member Function Documentation

◆ set_bits()

void sbl::dsp::primitives::BitReducer::set_bits ( float  bits)
inline

Set quantization depth in bits. Fractional values allowed. Caches the level count internally.

Definition at line 29 of file bit_reducer.hpp.

References bits().

Referenced by sbl::dsp::comp::BitCrusher::process().

◆ bits()

float sbl::dsp::primitives::BitReducer::bits ( ) const
inline

Definition at line 35 of file bit_reducer.hpp.

Referenced by set_bits().

◆ process() [1/2]

float sbl::dsp::primitives::BitReducer::process ( float  x) const
inline

Process a single sample.

Definition at line 38 of file bit_reducer.hpp.

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

◆ process() [2/2]

void sbl::dsp::primitives::BitReducer::process ( float *  buf,
uint16_t  n 
) const
inline

Process a block of samples in-place.

Definition at line 43 of file bit_reducer.hpp.

References process().


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