-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKThreeFiveFilter.h
50 lines (39 loc) · 1.19 KB
/
KThreeFiveFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// KThreeFiveFilter.h
// MiniSynth
//
// Created by Alec McCormick on 1/9/17.
//
//
#pragma once
#include "Filter.h"
#include "VAOnePoleFilter.h"
class CKThreeFiveFilter : public CFilter
{
protected:
// =============================================================
// --- Variables
// =============================================================
public:
CKThreeFiveFilter(void);
~CKThreeFiveFilter(void);
// =============================================================
// --- Variables
// =============================================================
double m_dK;
double m_dAlpha0;
CVAOnePoleFilter m_LPF1;
CVAOnePoleFilter m_LPF2;
CVAOnePoleFilter m_HPF1;
CVAOnePoleFilter m_HPF2;
// =============================================================
// --- CFilter Overrides
// =============================================================
virtual void reset();
// recalc the coeff
virtual void update();
// do the filter
virtual double doFilter(double xn);
// --- decode the Q value; this can change from filter to filter
virtual void setQControl(double dQControl);
};