DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::Decimator Class Reference

#include <decimator.h>

Public Member Functions

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

Detailed Description

Performs downsampling and bitcrush effects

Member Function Documentation

◆ GetBitcrushFactor()

float daisysp::Decimator::GetBitcrushFactor ( )
inline

Returns current setting of bitcrush

◆ GetBitsToCrush()

int daisysp::Decimator::GetBitsToCrush ( )
inline

Returns current bitcrush setting in bits

◆ GetDownsampleFactor()

float daisysp::Decimator::GetDownsampleFactor ( )
inline

Returns current setting of downsample

◆ GetSmoothCrushing()

bool daisysp::Decimator::GetSmoothCrushing ( )
inline

Returns current setting of smooth crushing

◆ Init()

void Decimator::Init ( )

Initializes downsample module

◆ Process()

float Decimator::Process ( float input)

Applies downsample and bitcrush effects to input signal.

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

◆ SetBitcrushFactor()

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

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

◆ SetBitsToCrush()

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

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

◆ SetDownsampleFactor()

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

Sets amount of downsample Input range:

◆ SetSmoothCrushing()

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

Sets the smooth crushing on or off true/false


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