sst-filters
Filters submodule for the Surge Synthesizer
Public Member Functions | List of all members
HalfRateFilter Class Reference

Public Member Functions

 HalfRateFilter (int M, bool steep)
 Implement a half rate up/down filter. More...
 
void process_block (float *floatL, float *floatR, int nsamples)
 
void process_block_D2 (float *floatL, float *floatR, int nsamples, float *outL=0, float *outR=0)
 
void process_block_U2 (float *floatL_in, float *floatR_in, float *floatL, float *floatR, int nsamples)
 
void load_coefficients ()
 
void set_coefficients (float *cA, float *cB)
 
void reset ()
 

Constructor & Destructor Documentation

◆ HalfRateFilter()

HalfRateFilter ( int  M,
bool  steep 
)

Implement a half rate up/down filter.

Parameters
MThe size of the FIR. Range from 1 to halfrate_max_M
steepSteepness. Set false for softer slopes, more attenuation and less stopband ripple

References HalfRateFilter::load_coefficients(), M, and HalfRateFilter::reset().

Member Function Documentation

◆ process_block()

void process_block ( float *  floatL,
float *  floatR,
int  nsamples 
)

References N.

◆ process_block_D2()

void process_block_D2 ( float *  floatL,
float *  floatR,
int  nsamples,
float *  outL = 0,
float *  outR = 0 
)

◆ process_block_U2()

void process_block_U2 ( float *  floatL_in,
float *  floatR_in,
float *  floatL,
float *  floatR,
int  nsamples 
)

◆ load_coefficients()

void load_coefficients ( )

◆ set_coefficients()

void set_coefficients ( float *  cA,
float *  cB 
)

◆ reset()

void reset ( )

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