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

#include <AuLib/BandP.h>

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

Public Member Functions

 BandP (double cf, double bw, uint32_t vframes=def_vframes, double sr=def_sr)
 
const double * process (const double *sig, double cf, double bw)
 
const BandPprocess (const AudioBase &obj, double cf, double bw)
 
- Public Member Functions inherited from AuLib::LowP
 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_bw
 
- Protected Attributes inherited from AuLib::LowP
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 band-pass filter

Constructor & Destructor Documentation

◆ BandP()

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

BandP constructor

cf - centre frequency
bw - bandwidth
vframes - vector size
sr - sampling rate

Member Function Documentation

◆ process() [1/2]

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

process a signal sig with cutoff freq cf and bandwidth bw

◆ process() [2/2]

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

process a signal in obj with cutoff freq cf and bandwidth bw

◆ update()

void AuLib::BandP::update ( )
protectedvirtual

Coefficients update

Reimplemented from AuLib::LowP.

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

Member Data Documentation

◆ m_bw

double AuLib::BandP::m_bw
protected

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