Ardour  9.0-pre0-427-gd2a3450e2f
Filter Class Reference

#include <Filter.h>

Classes

struct  Parameters
 

Public Member Functions

 Filter (Parameters params)
 
 ~Filter ()
 
void reset ()
 
void process (const double *const __restrict in, double *const __restrict out, const int n)
 
int getOrder () const
 

Private Member Functions

 Filter (const Filter &)
 
Filteroperator= (const Filter &)
 

Private Attributes

int m_order
 
int m_sz
 
std::vector< double > m_a
 
std::vector< double > m_b
 
std::vector< double > m_bufa
 
std::vector< double > m_bufb
 
int m_offa
 
int m_offb
 
int m_offmax
 
bool m_fir
 

Detailed Description

Definition at line 20 of file Filter.h.

Constructor & Destructor Documentation

◆ Filter() [1/2]

Filter::Filter ( Parameters  params)

Construct an IIR filter with numerators b and denominators a. The filter will have order b.size()-1. To make an FIR filter, leave the vector a in the param struct empty. Otherwise, a and b must have the same number of values.

◆ ~Filter()

Filter::~Filter ( )

◆ Filter() [2/2]

Filter::Filter ( const Filter )
private

Member Function Documentation

◆ getOrder()

int Filter::getOrder ( ) const
inline

Definition at line 49 of file Filter.h.

◆ operator=()

Filter& Filter::operator= ( const Filter )
private

◆ process()

void Filter::process ( const double *const __restrict  in,
double *const __restrict  out,
const int  n 
)

Filter the input sequence

  • in of length
  • n samples, and write the resulting
  • n samples into
  • out. There must be enough room in
  • out for
  • n samples to be written.

◆ reset()

void Filter::reset ( )

Member Data Documentation

◆ m_a

std::vector<double> Filter::m_a
private

Definition at line 54 of file Filter.h.

◆ m_b

std::vector<double> Filter::m_b
private

Definition at line 55 of file Filter.h.

◆ m_bufa

std::vector<double> Filter::m_bufa
private

Definition at line 56 of file Filter.h.

◆ m_bufb

std::vector<double> Filter::m_bufb
private

Definition at line 57 of file Filter.h.

◆ m_fir

bool Filter::m_fir
private

Definition at line 61 of file Filter.h.

◆ m_offa

int Filter::m_offa
private

Definition at line 58 of file Filter.h.

◆ m_offb

int Filter::m_offb
private

Definition at line 59 of file Filter.h.

◆ m_offmax

int Filter::m_offmax
private

Definition at line 60 of file Filter.h.

◆ m_order

int Filter::m_order
private

Definition at line 52 of file Filter.h.

◆ m_sz

int Filter::m_sz
private

Definition at line 53 of file Filter.h.


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