Skip to content

Class daisysp::SampleRateReducer

ClassList > daisysp > SampleRateReducer

Sample rate reducer. More...

  • #include <sampleratereducer.h>

Public Functions

Type Name
void Init ()
float Process (float in)
SampleRateReducer ()
void SetFreq (float frequency)
~SampleRateReducer ()

Detailed Description

Author:

Ben Sergentanis

Date:

Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/fx/sample_rate_reducer.h to an independent module. Original code written by Emilie Gillet in 2014.

Public Functions Documentation

function Init

void daisysp::SampleRateReducer::Init () 

Initialize the module


function Process

float daisysp::SampleRateReducer::Process (
    float in
) 

Get the next floating point sample

Parameters:

  • in Sample to be processed.

function SampleRateReducer

inline daisysp::SampleRateReducer::SampleRateReducer () 

function SetFreq

void daisysp::SampleRateReducer::SetFreq (
    float frequency
) 

Set the new sample rate.

Parameters:

  • frequency over 0-1. 1 is full quality, .5 is half sample rate, etc.

function ~SampleRateReducer

inline daisysp::SampleRateReducer::~SampleRateReducer () 


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