std1.0.0-beta-7 SafeC docs

std :: dsp::comb

Struct std::CombFF

#include <std/dsp/comb.h> source

struct CombFF {
    &double history;
    unsigned long delay;
    unsigned long pos;
    double gain;
}

Fields

§&double historysource

ring buffer, length 'delay'

§unsigned long delaysource
§unsigned long possource
§double gainsource

Methods

§double process(double x)source · definition
§void reset()source · definition
§void process_block([]const double in, []double out)source · definition

out may alias in

§static struct CombFF new([]double history, double gain)source · definition

'history' is the caller's ring buffer of 'delay' samples, zeroed.

delay = history.len