19 #include "Properties.h"
24 const static int ORDER_PLUS_ONE = 3;
25 double in_[ORDER_PLUS_ONE];
53 double tick(
double input);
56 virtual void print()
const = 0;
67 #ifndef __INTEL_COMPILER
72 in_[0] = input +
b1_ * in_[1] +
b2_ * in_[2];
73 out_ =
a0_ * in_[0] +
a1_ * in_[1] +
a2_ * in_[2];
78 #ifndef __INTEL_COMPILER
79 TTZeroDenormal(in_[2]);
80 TTZeroDenormal(in_[1]);
static const double MAX_
Max gain value.
double a2_
Filter coefficient.
double sr_
Pi divided by the sample rate.
double tick(double input)
Given an input sample, returns a filtered output sample.
virtual void print() const =0
Prints information about the given filter.
Filter()
Class constructor.
double percentToGain(double gainPercentage)
Convert percentage to linear gain.
static const double MIN_
Min gain value.
virtual ~Filter()
Virtual destructor.
void clear()
Reinitialize filter's memory.
double b1_
Filter coefficient.
double b2_
Filter coefficient.
double a1_
Filter coefficient.
double a0_
Filter coefficient.