AuLib  1.0beta
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AuLib::LowP Class Reference

#include <AuLib/LowP.h>

Inheritance diagram for AuLib::LowP:
Inheritance graph
[legend]
Collaboration diagram for AuLib::LowP:
Collaboration graph
[legend]

Public Member Functions

 LowP (double cf, uint32_t vframes=def_vframes, double sr=def_sr)
 
const double * process (const double *sig, double cf)
 
const LowPprocess (const AudioBase &obj, double cf)
 
const LowPoperator() (const AudioBase &obj, double cf)
 
- Public Member Functions inherited from AuLib::Iir
 Iir (const double *a, const double *b, uint32_t vframes=def_vframes, double sr=def_sr)
 
 Iir (uint32_t vframes=def_vframes, double sr=def_sr)
 
const double * process (const double *sig)
 
const double * process (const double *sig, const double *a, const double *b)
 
const Iirprocess (const AudioBase &obj)
 
const Iirprocess (const AudioBase &obj, const double *c, bool iir=true)
 
const Iirprocess (const AudioBase &obj, const double *a, const double *b)
 
const Iiroperator() (const AudioBase &obj)
 
template<typename T >
const Iiroperator() (const AudioBase &obj, T a)
 
template<typename T , typename U >
const Iiroperator() (const AudioBase &obj, T a, U b)
 
- Public Member Functions inherited from AuLib::AudioBase
 AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr)
 
virtual const AudioBaseoperator*= (double scal)
 
virtual const AudioBaseoperator*= (const double *sig)
 
virtual const AudioBaseoperator*= (const AudioBase &obj)
 
virtual const AudioBaseoperator+= (double offs)
 
virtual const AudioBaseoperator+= (const double *sig)
 
virtual const AudioBaseoperator+= (const AudioBase &obj)
 
double & operator[] (uint32_t ndx)
 
const double & operator[] (uint32_t ndx) const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const AudioBaseset (const AudioBase &obj)
 
const AudioBaseset (const double *sig)
 
const double * set (double v)
 
double set (double v, uint32_t p)
 
 operator const std::vector< double > & () const
 
 operator const double * () const
 
const double * vector () const
 
double vector (uint32_t frndx, uint32_t chn) const
 
uint32_t vframes (uint32_t frames)
 
uint32_t resize_exact (uint32_t frames)
 
uint32_t vframes () const
 
uint32_t vsamps () const
 
uint32_t nchnls () const
 
uint32_t sr () const
 
uint32_t error () const
 
virtual const char * error_message () const
 

Protected Member Functions

virtual void update ()
 
- Protected Member Functions inherited from AuLib::Iir
virtual const double * dsp (const double *sig)
 

Protected Attributes

double m_freq
 
- Protected Attributes inherited from AuLib::Iir
double m_del [2]
 
double m_a [3]
 
double m_b [2]
 
double m_scal
 
- Protected Attributes inherited from AuLib::AudioBase
uint32_t m_nchnls
 
uint32_t m_vframes
 
std::vector< double > m_vector
 
double m_sr
 
uint32_t m_error
 

Additional Inherited Members

- Public Types inherited from AuLib::AudioBase
typedef std::vector< double >::iterator iterator
 
typedef std::vector< double >::const_iterator const_iterator
 

Detailed Description

2nd-order Butterworth low-pass filter

Constructor & Destructor Documentation

◆ LowP()

AuLib::LowP::LowP ( double  cf,
uint32_t  vframes = def_vframes,
double  sr = def_sr 
)
inline

LowP constructor

cf - cutoff freq
vframes - vector size
sr - sampling rate

Member Function Documentation

◆ operator()()

const LowP& AuLib::LowP::operator() ( const AudioBase obj,
double  cf 
)
inline

◆ process() [1/2]

const double* AuLib::LowP::process ( const double *  sig,
double  cf 
)
inline

process a signal sig with cutoff freq cf

◆ process() [2/2]

const LowP& AuLib::LowP::process ( const AudioBase obj,
double  cf 
)
inline

process a signal in obj with cutoff freq cf

◆ update()

void AuLib::LowP::update ( )
protectedvirtual

Coefficients update

Reimplemented from AuLib::Iir.

Reimplemented in AuLib::BandP, AuLib::ResonR, AuLib::ResonZ, AuLib::BandR, and AuLib::HighP.

Member Data Documentation

◆ m_freq

double AuLib::LowP::m_freq
protected

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