2016-09-10 13:03:27 -07:00
|
|
|
/*
|
|
|
|
* @file biquad.h
|
|
|
|
*
|
|
|
|
* @date Sep 10, 2016
|
2017-01-03 03:05:22 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
2016-09-10 13:03:27 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLLERS_MATH_BIQUAD_H_
|
|
|
|
#define CONTROLLERS_MATH_BIQUAD_H_
|
|
|
|
|
2016-09-17 12:02:55 -07:00
|
|
|
#include "engine.h"
|
|
|
|
|
2016-09-10 13:03:27 -07:00
|
|
|
class Biquad {
|
|
|
|
public:
|
|
|
|
Biquad();
|
2017-05-15 20:33:22 -07:00
|
|
|
void initValue(float input DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2016-09-10 13:03:27 -07:00
|
|
|
float getValue(float input);
|
|
|
|
|
|
|
|
float a0, a1, a2, b1, b2;
|
|
|
|
float z1, z2;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* CONTROLLERS_MATH_BIQUAD_H_ */
|