forked from psemiletov/eko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfxset.h
More file actions
274 lines (174 loc) · 5.01 KB
/
Copy pathfxset.h
File metadata and controls
274 lines (174 loc) · 5.01 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
#ifndef FXSET_H
#define FXSET_H
#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QStandardItemModel>
#include <QModelIndex>
#include <QTreeView>
#include <QDoubleSpinBox>
#include <QComboBox>
#include <QVBoxLayout>
#include <QDial>
#include <cmath>
#include "floatbuffer.h"
#include "fx-filter.h"
#include "afx.h"
class CFxSimpleAmp: public AFx
{
Q_OBJECT
public:
float gain;
CFxSimpleAmp();
~CFxSimpleAmp();
QLabel *label;
QDial *dial_gain;
AFx* self_create();
size_t execute (float **input, float **output, size_t frames);
QString save_params_to_string();
void load_params_from_string (const QString &s);
static QString get_modulename() {return QString (tr ("Simple Amp"));};
static AFx* create_self() {return new CFxSimpleAmp;}
public slots:
void dial_gain_valueChanged (int value);
};
class CFxSimpleOverdrive: public AFx
{
Q_OBJECT
public:
float gain;
float level;
QDial *dial_gain;
QDial *dial_level;
CFxSimpleOverdrive();
~CFxSimpleOverdrive();
AFx* self_create();
size_t execute (float **input, float **output, size_t frames);
QString save_params_to_string();
void load_params_from_string (const QString &s);
static QString get_modulename() {return QString (tr ("Simple Overdrive"));};
static AFx* create_self() {return new CFxSimpleOverdrive;}
public slots:
void dial_gain_valueChanged (int value);
void dial_level_valueChanged (int value);
};
class CFxDelay: public AFx
{
Q_OBJECT
public:
QLabel *label;
CFloatBuffer *fb;
QDoubleSpinBox *spb_mixlevel;
QDoubleSpinBox *spb_time;
float mixlevel;
float delay_msecs;
CFxDelay();
~CFxDelay();
AFx* self_create();
size_t execute (float **input, float **output, size_t frames);
void reset_params (size_t srate, size_t ch);
QString save_params_to_string();
void load_params_from_string (const QString &s);
static QString get_modulename() {return QString (tr ("Simple delay"));};
static AFx* create_self() {return new CFxDelay;}
public slots:
void spb_mixlevel_changed (double value);
void spb_time_changed (double value);
};
class CFxSimpleFilter: public AFx
{
Q_OBJECT
public:
QDoubleSpinBox *dsb_cutoff_freq;
QDoubleSpinBox *dsb_reso;
QComboBox *cmb_filter_mode;
CFilter filter;
CFxSimpleFilter();
QString save_params_to_string();
void load_params_from_string (const QString &s);
static QString get_modulename() {return QString (tr ("Simple Filter"));};
static AFx* create_self() {return new CFxSimpleFilter;}
AFx* self_create();
size_t execute (float **input, float **output, size_t frames);
void reset_params (size_t srate, size_t ch);
public slots:
void cmb_filter_mode_currentIndexChanged (int index);
void dsb_cutoff_valueChanged (double d);
void dsb_reso_valueChanged (double d);
};
class CFxMetaluga: public AFx
{
Q_OBJECT
public:
CFilter filter;
float gain;
float drive;
float tone;
float level;
QDial *dial_gain;
QDial *dial_drive;
QDial *dial_tone;
QDial *dial_level;
CFxMetaluga();
~CFxMetaluga();
AFx* self_create();
static QString get_modulename() {return QString (tr ("Metaluga (overdrive/dist pedal)"));};
static AFx* create_self() {return new CFxMetaluga;}
QString save_params_to_string();
void load_params_from_string (const QString &s);
size_t execute (float **input, float **output, size_t frames);
void reset_params (size_t srate, size_t ch);
public slots:
void dial_gain_valueChanged (int value);
void dial_drive_valueChanged (int value);
void dial_tone_valueChanged (int value);
void dial_level_valueChanged (int value);
};
class CFxJest: public AFx
{
Q_OBJECT
public:
CFilter filter;
float gain;
float drive;
float tone;
float level;
QDial *dial_gain;
QDial *dial_drive;
QDial *dial_tone;
QDial *dial_level;
CFxJest();
QString save_params_to_string();
void load_params_from_string (const QString &s);
AFx* self_create();
static QString get_modulename() {return QString (tr ("Jest' (overdrive/dist)"));};
static AFx* create_self() {return new CFxJest;}
size_t execute (float **input, float **output, size_t frames);
void reset_params (size_t srate, size_t ch);
public slots:
void dial_gain_valueChanged (int value);
void dial_drive_valueChanged (int value);
void dial_tone_valueChanged (int value);
void dial_level_valueChanged (int value);
};
class CFxVynil: public AFx
{
Q_OBJECT
public:
QDial *dial_scratches_amount;
QDoubleSpinBox *spb_mixlevel;
float mixlevel;
float cutoff;
CFxVynil();
QString save_params_to_string();
void load_params_from_string (const QString &s);
static QString get_modulename() {return QString (tr ("Vynil Taste"));};
static AFx* create_self() {return new CFxVynil;}
AFx* self_create();
size_t execute (float **input, float **output, size_t frames);
void reset_params (size_t srate, size_t ch);
public slots:
void dial_scratches_amount_valueChanged (int value);
void spb_mixlevel_changed (double value);
};
#endif // FXSET_H