-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilter.h
More file actions
32 lines (27 loc) · 682 Bytes
/
Copy pathFilter.h
File metadata and controls
32 lines (27 loc) · 682 Bytes
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
#ifndef FILTER_H
#define FILTER_H
#include "Registers.h"
class Filter
{
public:
Filter();
void setCutoffFreq(float freq);
void setResonance(char val);
void setLowPassEnabled(bool enabled);
void setHiPassEnabled(bool enabled);
void setBandPassEnabled(bool enabled);
void set3OffEnabled(bool enabled);
void setVolume(char vol);
void setVoiceFiltered(int voiceNum, bool filter);
Register getCutoffFreqLo();
Register getCutoffFreqHi();
ResonanceFilterRegister getResFilter();
ModeVolumeRegister getModeVol();
private:
Register _cutoffFreqLo;
Register _cutoffFreqHi;
ResonanceFilterRegister _resFilter;
ModeVolumeRegister _modeVol;
void updateModeVol();
};
#endif