Skip to content

Class daisysp::Decimator

ClassList > daisysp > Decimator

More...

  • #include <decimator.h>

Public Functions

Type Name
Decimator ()
float GetBitcrushFactor ()
int GetBitsToCrush ()
float GetDownsampleFactor ()
bool GetSmoothCrushing ()
void Init ()
float Process (float input)
void SetBitcrushFactor (float bitcrush_factor)
void SetBitsToCrush (const uint8_t & bits)
void SetDownsampleFactor (float downsample_factor)
void SetSmoothCrushing (bool smooth_crushing)
~Decimator ()

Detailed Description

Performs downsampling and bitcrush effects

Public Functions Documentation

function Decimator

inline daisysp::Decimator::Decimator () 

function GetBitcrushFactor

inline float daisysp::Decimator::GetBitcrushFactor () 

Returns current setting of bitcrush


function GetBitsToCrush

inline int daisysp::Decimator::GetBitsToCrush () 

Returns current bitcrush setting in bits


function GetDownsampleFactor

inline float daisysp::Decimator::GetDownsampleFactor () 

Returns current setting of downsample


function GetSmoothCrushing

inline bool daisysp::Decimator::GetSmoothCrushing () 

Returns current setting of smooth crushing


function Init

void daisysp::Decimator::Init () 

Initializes downsample module


function Process

float daisysp::Decimator::Process (
    float input
) 

Applies downsample and bitcrush effects to input signal.

Returns:

one sample. This should be called once per sample period.


function SetBitcrushFactor

inline void daisysp::Decimator::SetBitcrushFactor (
    float bitcrush_factor
) 

Sets amount of bitcrushing Input range: 0...1.0


function SetBitsToCrush

inline void daisysp::Decimator::SetBitsToCrush (
    const  uint8_t & bits
) 

Sets the exact number of bits to crush and disables smooth crushing 0-16 bits


function SetDownsampleFactor

inline void daisysp::Decimator::SetDownsampleFactor (
    float downsample_factor
) 

Sets amount of downsample Input range:


function SetSmoothCrushing

inline void daisysp::Decimator::SetSmoothCrushing (
    bool smooth_crushing
) 

Sets the smooth crushing on or off true/false


function ~Decimator

inline daisysp::Decimator::~Decimator () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/decimator.h