Skip to content

daisysp::Comb

More...

#include <comb.h>

Public Functions

Name
Comb()
~Comb()
void Init(float sample_rate, float * buff, size_t size)
float Process(float in)
void SetPeriod(float looptime)
void SetFreq(float freq)
void SetRevTime(float revtime)

Detailed Description

class daisysp::Comb;

Comb filter module

Original author(s) :

Ported from soundpipe by Ben Sergentanis, May 2020

Public Functions Documentation

function Comb

inline Comb()

function ~Comb

inline ~Comb()

function Init

void Init(
    float sample_rate,
    float * buff,
    size_t size
)

Parameters:

  • sample_rate - The sample rate of the audio engine being run.
  • buff - input buffer, kept in either main() or global space
  • size - size of buff

Initializes the Comb module.


function Process

float Process(
    float in
)

processes the comb filter


function SetPeriod

void SetPeriod(
    float looptime
)

Sets the period of the comb filter in seconds


function SetFreq

inline void SetFreq(
    float freq
)

Sets the frequency of the comb filter in Hz


function SetRevTime

inline void SetRevTime(
    float revtime
)

Sets the decay time of the comb filter

---

Updated on 2024-01-03 at 19:38:46 +0000