SPUC
3.0
|
Template for 2nd order allpass filter. More...
#include <allpass_2nd.h>
Public Types | |
typedef mixed_type< Numeric, Coeff >::dtype | sum_type |
Public Member Functions | |
allpass_2nd (Coeff B0, Coeff A0, long b=0) | |
allpass_2nd () | |
void | set_round_bits (long x) |
void | reset () |
void | set_a (Coeff A0) |
void | set_b (Coeff B0) |
Coeff | get_a () |
Coeff | get_b () |
void | set_coeffs (Coeff B0, Coeff A0) |
allpass_2nd (const char *file) | |
Constructor reading coefficients from a file. More... | |
void | print () |
Print out coefficients. More... | |
Numeric | clock (Numeric input) |
Input new sample and calculate output. More... | |
Public Attributes | |
Numeric | fb2 |
Numeric | fb1 |
Numeric | fb0 |
Numeric | scale |
quantiser< Numeric > | Q |
quantiser< Numeric > | OQ |
Protected Attributes | |
long | round_bits |
Coeff | b |
Coeff | a |
Numeric | in [3] |
Template for 2nd order allpass filter.
Template for 2nd order allpass filter
The filter is assumed to be a 2nd order allpass section of the form
typedef mixed_type<Numeric,Coeff>::dtype SPUC::allpass_2nd< Numeric, Coeff >::sum_type |
|
inline |
References SPUC::allpass_2nd< Numeric, Coeff >::b, and SPUC::allpass_2nd< Numeric, Coeff >::reset().
|
inline |
|
inline |
Constructor reading coefficients from a file.
References SPUC::allpass_2nd< Numeric, Coeff >::a, SPUC::allpass_2nd< Numeric, Coeff >::b, and SPUC::allpass_2nd< Numeric, Coeff >::reset().
|
inline |
Input new sample and calculate output.
References SPUC::allpass_2nd< Numeric, Coeff >::fb1, SPUC::allpass_2nd< Numeric, Coeff >::fb2, SPUC::allpass_2nd< Numeric, Coeff >::OQ, and SPUC::allpass_2nd< Numeric, Coeff >::Q.
Referenced by SPUC::nested_iir_allpass_tmp< Numeric, Coeff >::clock(), SPUC::notch_allpass< Numeric, Coeff >::clock(), SPUC::iir_allpass2< Numeric, Coeff >::clock(), SPUC::cutboost< Numeric, Coeff >::clock(), SPUC::nested_shelf_allpass_2< Numeric, Coeff >::clock(), and SPUC::nested_iir_allpass_2< Numeric, Coeff >::clock().
|
inline |
|
inline |
|
inline |
Print out coefficients.
References SPUC::allpass_2nd< Numeric, Coeff >::a, and SPUC::allpass_2nd< Numeric, Coeff >::b.
|
inline |
Referenced by SPUC::allpass_2nd< Numeric, Coeff >::allpass_2nd(), SPUC::nested_iir_allpass_tmp< Numeric, Coeff >::reset(), SPUC::notch_allpass< Numeric, Coeff >::reset(), SPUC::iir_allpass2< Numeric, Coeff >::reset(), SPUC::nested_shelf_allpass_2< Numeric, Coeff >::reset(), SPUC::cutboost< Numeric, Coeff >::reset(), and SPUC::nested_iir_allpass_2< Numeric, Coeff >::reset().
|
inline |
|
inline |
|
inline |
Referenced by SPUC::nested_shelf_allpass_2< Numeric, Coeff >::change(), SPUC::nested_iir_allpass_2< Numeric, Coeff >::change(), SPUC::nested_shelf_allpass_2< Numeric, Coeff >::init(), SPUC::nested_iir_allpass_2< Numeric, Coeff >::init(), SPUC::notch_allpass< Numeric, Coeff >::set_coeffs(), SPUC::cutboost< Numeric, Coeff >::set_coeffs(), and SPUC::cutboost< Numeric, Coeff >::set_freq().
|
inline |
|
protected |
|
protected |
Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb0 |
Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb1 |
Referenced by SPUC::allpass_2nd< Numeric, Coeff >::clock().
Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb2 |
Referenced by SPUC::allpass_2nd< Numeric, Coeff >::clock().
|
protected |
quantiser<Numeric> SPUC::allpass_2nd< Numeric, Coeff >::OQ |
Referenced by SPUC::allpass_2nd< Numeric, Coeff >::clock().
quantiser<Numeric> SPUC::allpass_2nd< Numeric, Coeff >::Q |
Referenced by SPUC::allpass_2nd< Numeric, Coeff >::clock().
|
protected |
Numeric SPUC::allpass_2nd< Numeric, Coeff >::scale |