SPUC  3.0
Public Member Functions | Public Attributes | List of all members
SPUC::allpass< Numeric, Coeff > Class Template Reference

Template Class for allpass filter consisting of several stages of 1st order allpass sections. More...

#include <allpass.h>

Public Member Functions

 allpass (std::vector< Coeff > &design, int n)
 ord = Filter order More...
 
Coeff get_coefficient (int i)
 
 allpass (long n=1)
 ord = Filter order More...
 
void init (std::vector< Coeff > &design, int n, int d=2)
 
 ~allpass ()
 Destructor. More...
 
void reset ()
 Reset history. More...
 
void set_coeffs (std::vector< Coeff > &design, int d=2)
 Set 1st order ALLPASS coefficients. More...
 
Numeric clock (Numeric in)
 Clock in sample and get output. More...
 

Public Attributes

long stages
 
std::vector< allpass_1
< Numeric, Coeff > > 
ap
 

Detailed Description

template<class Numeric, class Coeff = float_type>
class SPUC::allpass< Numeric, Coeff >

Template Class for allpass filter consisting of several stages of 1st order allpass sections.

Author
Tony Kirke

Constructor & Destructor Documentation

template<class Numeric, class Coeff = float_type>
SPUC::allpass< Numeric, Coeff >::allpass ( std::vector< Coeff > &  design,
int  n 
)
inline

ord = Filter order

References SPUC::allpass< Numeric, Coeff >::set_coeffs().

Here is the call graph for this function:

template<class Numeric, class Coeff = float_type>
SPUC::allpass< Numeric, Coeff >::allpass ( long  n = 1)
inline

ord = Filter order

template<class Numeric, class Coeff = float_type>
SPUC::allpass< Numeric, Coeff >::~allpass ( )
inline

Destructor.

Member Function Documentation

template<class Numeric, class Coeff = float_type>
Numeric SPUC::allpass< Numeric, Coeff >::clock ( Numeric  in)
inline
template<class Numeric, class Coeff = float_type>
Coeff SPUC::allpass< Numeric, Coeff >::get_coefficient ( int  i)
inline

References SPUC::allpass< Numeric, Coeff >::get_coefficient().

Referenced by SPUC::allpass< Numeric, Coeff >::get_coefficient().

Here is the call graph for this function:

template<class Numeric, class Coeff = float_type>
void SPUC::allpass< Numeric, Coeff >::init ( std::vector< Coeff > &  design,
int  n,
int  d = 2 
)
inline
template<class Numeric, class Coeff = float_type>
void SPUC::allpass< Numeric, Coeff >::reset ( )
inline
template<class Numeric, class Coeff = float_type>
void SPUC::allpass< Numeric, Coeff >::set_coeffs ( std::vector< Coeff > &  design,
int  d = 2 
)
inline

Set 1st order ALLPASS coefficients.

References SPUC::allpass< Numeric, Coeff >::init(), and SPUC::allpass< Numeric, Coeff >::stages.

Referenced by SPUC::allpass< Numeric, Coeff >::allpass(), and SPUC::allpass< Numeric, Coeff >::init().

Here is the call graph for this function:

Member Data Documentation

template<class Numeric, class Coeff = float_type>
std::vector<allpass_1<Numeric,Coeff> > SPUC::allpass< Numeric, Coeff >::ap
template<class Numeric, class Coeff = float_type>
long SPUC::allpass< Numeric, Coeff >::stages

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