Skip to content

Class daisysp::Bitcrush

ClassList > daisysp > Bitcrush

More...

  • #include <bitcrush.h>

Public Functions

Type Name
Bitcrush ()
void Init (float sample_rate)
float Process (float in)
void SetBitDepth (int bitdepth)
void SetCrushRate (float crushrate)
~Bitcrush ()

Detailed Description

Bitcrush module

Public Functions Documentation

function Bitcrush

inline daisysp::Bitcrush::Bitcrush () 

function Init

void daisysp::Bitcrush::Init (
    float sample_rate
) 

Initializes the bitcrush module.

Parameters:

  • sample_rate - The sample rate of the audio engine being run.

function Process

float daisysp::Bitcrush::Process (
    float in
) 

bit crushes and downsamples the input


function SetBitDepth

inline void daisysp::Bitcrush::SetBitDepth (
    int bitdepth
) 

adjusts bitdepth

Parameters:

  • bitdepth : Sets bit depth, 0...16

function SetCrushRate

inline void daisysp::Bitcrush::SetCrushRate (
    float crushrate
) 

adjusts the downsampling frequency

Parameters:

  • crushrate : Sets rate to downsample to, 0...SampleRate

function ~Bitcrush

inline daisysp::Bitcrush::~Bitcrush () 


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