#include <allpass_2nd.h>
Collaboration diagram for SPUC::allpass_2nd< Numeric, Coeff >:

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) |
| void | set_coeffs (Coeff B0, Coeff A0) |
| allpass_2nd (const char *file) | |
| Constructor reading coefficients from a file. | |
| void | print () |
| Print out coefficients. | |
| Numeric | clock (Numeric input) |
| Input new sample and calculate output. | |
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] |
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 |
| SPUC::allpass_2nd< Numeric, Coeff >::allpass_2nd | ( | Coeff | B0, | |
| Coeff | A0, | |||
| long | b = 0 | |||
| ) | [inline] |
| SPUC::allpass_2nd< Numeric, Coeff >::allpass_2nd | ( | ) | [inline] |
| SPUC::allpass_2nd< Numeric, Coeff >::allpass_2nd | ( | const char * | file | ) | [inline] |
Constructor reading coefficients from a file.
| Numeric SPUC::allpass_2nd< Numeric, Coeff >::clock | ( | Numeric | input | ) | [inline] |
Input new sample and calculate output.
| void SPUC::allpass_2nd< Numeric, Coeff >::print | ( | ) | [inline] |
Print out coefficients.
| void SPUC::allpass_2nd< Numeric, Coeff >::reset | ( | ) | [inline] |
| void SPUC::allpass_2nd< Numeric, Coeff >::set_a | ( | Coeff | A0 | ) | [inline] |
| void SPUC::allpass_2nd< Numeric, Coeff >::set_b | ( | Coeff | B0 | ) | [inline] |
| void SPUC::allpass_2nd< Numeric, Coeff >::set_coeffs | ( | Coeff | B0, | |
| Coeff | A0 | |||
| ) | [inline] |
| void SPUC::allpass_2nd< Numeric, Coeff >::set_round_bits | ( | long | x | ) | [inline] |
Coeff SPUC::allpass_2nd< Numeric, Coeff >::a [protected] |
Coeff SPUC::allpass_2nd< Numeric, Coeff >::b [protected] |
| Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb0 |
| Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb1 |
| Numeric SPUC::allpass_2nd< Numeric, Coeff >::fb2 |
Numeric SPUC::allpass_2nd< Numeric, Coeff >::in[3] [protected] |
| quantiser<Numeric> SPUC::allpass_2nd< Numeric, Coeff >::OQ |
| quantiser<Numeric> SPUC::allpass_2nd< Numeric, Coeff >::Q |
long SPUC::allpass_2nd< Numeric, Coeff >::round_bits [protected] |
| Numeric SPUC::allpass_2nd< Numeric, Coeff >::scale |
1.4.7