iir1

Public Member Functions | List of all members
Iir::RBJ::LowShelf Struct Reference

`#include <RBJ.h>`

Inheritance diagram for Iir::RBJ::LowShelf:

## 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 DirectFormI & | getState ()
| gets the delay lines (=state) of the filter
Public Member Functions inherited from Iir::Biquad
complex_t | response (double normalizedFrequency) const
std::vector< PoleZeroPair > | getPoleZeros () 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

  sampleRate | Sampling rate
  cutoffFrequency | Cutoff frequency
  gainDb | Gain in the passband
  shelfSlope | Slope 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

  cutoffFrequency | Normalised cutoff frequency
  gainDb | Gain in the passband
  shelfSlope | Slope between stop/passband. 1 = as steep as it can.

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

- iir/RBJ.h
- iir/RBJ.cpp