iir1
Loading...
Searching...
No Matches
Iir::RBJ::LowShelf Struct Reference

#include <RBJ.h>

Inheritance diagram for Iir::RBJ::LowShelf:
Iir::RBJ::RBJbase Iir::Biquad

Public Member Functions

void setupN (double cutoffFrequency, double gainDb, double shelfSlope=1)
void setup (double sampleRate, double cutoffFrequency, double gainDb, double shelfSlope=1)
Public Member Functions inherited from Iir::RBJ::RBJbase
template<typename Sample>
Sample filter (Sample s)
 filter operation
void reset ()
 resets the delay lines to zero
const DirectFormIgetState ()
 gets the delay lines (=state) of the filter
Public Member Functions inherited from Iir::Biquad
complex_t response (double normalizedFrequency) const
std::vector< PoleZeroPairgetPoleZeros () const
double getA0 () const
double getA1 () const
double getA2 () const
double getB0 () const
double getB1 () const
double getB2 () const
template<class StateType>
double filter (double s, StateType &state) const
void setCoefficients (double a0, double a1, double a2, double b0, double b1, double b2)
void setOnePole (complex_t pole, complex_t zero)
void setTwoPole (complex_t pole1, complex_t zero1, complex_t pole2, complex_t zero2)
void setPoleZeroPair (const PoleZeroPair &pair)
void setIdentity ()
void applyScale (double scale)

Detailed Description

Low shelf: 0db in the stopband and gainDb in the passband.

Member Function Documentation

◆ setup()

void Iir::RBJ::LowShelf::setup ( double sampleRate,
double cutoffFrequency,
double gainDb,
double shelfSlope = 1 )
inline

Calculates the coefficients

Parameters
sampleRateSampling rate
cutoffFrequencyCutoff frequency
gainDbGain in the passband
shelfSlopeSlope between stop/passband. 1 = as steep as it can.

◆ setupN()

void Iir::RBJ::LowShelf::setupN ( double cutoffFrequency,
double gainDb,
double shelfSlope = 1 )

Calculates the coefficients

Parameters
cutoffFrequencyNormalised cutoff frequency
gainDbGain in the passband
shelfSlopeSlope between stop/passband. 1 = as steep as it can.

The documentation for this struct was generated from the following files: