Low Pass Filter

Overview

Low pass second-order IIR (Infinite Impulse Response) filter. This filter is embodied by the lowpass class.

Include

#include <q/fx/biquad.hpp>

Declaration

struct lowpass : biquad
{
         lowpass(frequency f, float sps, double q = 0.707);
   void  config(frequency f, float sps, double q = 0.707)
};

Expressions

In addition to valid expressions for biquad, lowpass allows these expressions.

Notation

lp

Object of type lowpass.

f

Object of type frequency.

sps

Floating point value representing samples per second.

q

Q or quality factor.

a [, b, c, d]

Required a, optional b, c, d.

Constructor

Expression Semantics

lowpass(f, sps [, q])

Construct a lowpass from f, sps and optional q (defaults to 0.707).

C++ brace initialization may also be used.

Mutators

Expression Semantics

lp.config(f, sps [, q])

Configure a lowpass from f, sps and optional q (defaults to 0.707).