23 lines
574 B
C++
23 lines
574 B
C++
/*
|
|
* @file biquad.h
|
|
*
|
|
* @date Sep 10, 2016
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// todo: narrow this dependency further? only 'bi_quard_s' is needed, should it be extracted / moved to a smaller header?
|
|
// todo: do we need to make code generation smarted and produce a larger number of smaller headers instead of one monster header?
|
|
#include "engine_configuration.h"
|
|
|
|
class Biquad {
|
|
public:
|
|
Biquad();
|
|
void initValue(float input, bi_quard_s *settings);
|
|
float getValue(float input);
|
|
|
|
float a0, a1, a2, b1, b2;
|
|
float z1, z2;
|
|
};
|