-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilterbox.h
More file actions
41 lines (38 loc) · 920 Bytes
/
filterbox.h
File metadata and controls
41 lines (38 loc) · 920 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
33
34
35
36
37
38
39
40
41
#ifndef FILTER_BOX_H
#define FILTER_BOX_H
#include "filter.h"
#include "notefactory.h"
#include <QGridLayout>
#include <QGroupBox>
#include <QLabel>
#include <QObject>
#include <QSlider>
#include <QWidget>
#include <string>
class FilterBox : public QGroupBox {
Q_OBJECT
public:
FilterBox(Filter *filter, LFO *lfo, NoteFactory *noteFactory,
QWidget *parent);
virtual ~FilterBox() override {}; // Ensure virtual destructor
public slots:
void setCutoff(int value);
void setResonance(int value);
void setCutoffLfoAmount(int i);
void setCutoffEnvAmount(int i);
private:
Filter *filter;
LFO *lfo;
NoteFactory *noteFactory;
QGridLayout layout;
QLabel filterLabel;
QSlider cutoffSelect;
QLabel cutoffLabel;
QSlider resonanceSelect;
QLabel resonanceLabel;
QLabel cutoffLfoLabel;
QSlider cutoffLfoAmountSelect;
QLabel cutoffEnvLabel;
QSlider cutoffEnvAmountSelect;
};
#endif