-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvectorprocessingtab.h
More file actions
69 lines (52 loc) · 1.53 KB
/
Copy pathvectorprocessingtab.h
File metadata and controls
69 lines (52 loc) · 1.53 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef VECTORPROCESSINGTAB_H
#define VECTORPROCESSINGTAB_H
#include <QWidget>
#include <vector>
#include <QString>
class QComboBox;
class QSlider;
class QSpinBox;
class QPushButton;
class QTextEdit;
class QLabel;
class QGroupBox;
class SynthEngine;
class UniversalScope;
class VectorProcessingTab : public QWidget {
Q_OBJECT
public:
explicit VectorProcessingTab(SynthEngine* ghostSynth, QWidget *parent = nullptr);
~VectorProcessingTab() override;
private slots:
void onGenerate();
void togglePlay(bool checked);
void onTopologyChanged(int index);
void onExperimentChanged(int index);
void onNormalizeKernel();
void updateUI();
private:
void setupUI();
QString generateProcessor(QString baseCode, int experiment, bool isIIR, bool isNightly);
SynthEngine* m_ghostSynth = nullptr;
UniversalScope* m_scope = nullptr;
QSlider* m_kernelSliders[16];
QLabel* m_kernelLabels[16];
QPushButton* m_btnNormalize;
std::vector<double> m_kernel;
QComboBox* m_cmbInputSource;
QComboBox* m_cmbExperiment;
QComboBox* m_cmbTopology;
QComboBox* m_cmbSyntax;
QSpinBox* m_spinTapSpacing;
QLabel* m_lblCaution;
QLabel* m_lblIntegrateNote;
QLabel* m_lblDspNote1;
QLabel* m_lblDspNote2;
QTextEdit* m_txtInputO1;
QTextEdit* m_txtInputO2;
QTextEdit* m_txtOutputO1;
QTextEdit* m_txtOutputO2;
QPushButton* m_btnGenerate;
QPushButton* m_btnPlay;
};
#endif // VECTORPROCESSINGTAB_H