forked from Manuel-K/shruthi-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib_labels.cpp
295 lines (277 loc) · 6.7 KB
/
lib_labels.cpp
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
// Shruthi-Editor: An unofficial Editor for the Shruthi hardware synthesizer. For
// informations about the Shruthi, see <http://www.mutable-instruments.net/shruthi1>.
//
// Copyright (C) 2011 Manuel Krönig
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "lib_labels.h"
#include <QStringList>
// ******************************************
QStringList Labels::ModulationSource = QStringList()
// ******************************************
<<"Lfo 1"
<<"Lfo 2"
<<"Step Seq"
<<"Step Seq 1"
<<"Step Seq 2"
<<"Arpeggiator"
<<"Mod Wheel"
<<"Aftertouch"
<<"Pitch-Bend"
<<"Offset"
<<"CV 1"
<<"CV 2"
<<"CV 3"
<<"CV 4"
<<"CC A (16)"
<<"CC B (17)"
<<"CC C (18)"
<<"CC D (19)"
<<"Noise"
<<"Env 1"
<<"Env 2"
<<"Velocity"
<<"Random"
<<"Note (Pitch)"
<<"Gate"
<<"Audio"
<<"Operator 1"
<<"Operator 2";
// ******************************************
QStringList Labels::ModulationDestination = QStringList()
// ******************************************
<<"Filter cutoff"
<<"VCA gain"
<<"Osc 1 Param"
<<"Osc 2 Param"
<<"Osc 1 Pitch"
<<"Osc 2 Pitch"
<<"Osc 1+2 Pitch"
<<"Osc 1+2 Fine"
<<"Oscillator Mix"
<<"Noise Volume"
<<"Sub-Osc Vol"
<<"Resonance"
<<"CV 1"
<<"CV 2"
<<"Attack"
<<"Lfo 1"
<<"Lfo 2";
// ******************************************
QStringList Labels::PatchParameter = QStringList();
// ******************************************
// <<"PRM_OSC_SHAPE_1"
// <<"PRM_OSC_PARAMETER_1"
// <<"PRM_OSC_RANGE_1"
// <<"PRM_OSC_OPTION_1"
//
// <<"PRM_OSC_SHAPE_2"
// <<"PRM_OSC_PARAMETER_2"
// <<"PRM_OSC_RANGE_2"
// <<"PRM_OSC_OPTION_2"
//
// <<"PRM_MIX_BALANCE"
// <<"PRM_MIX_SUB_OSC"
// <<"PRM_MIX_NOISE"
// <<"PRM_MIX_SUB_OSC_SHAPE"
//
// <<"PRM_FILTER_CUTOFF"
// <<"PRM_FILTER_RESONANCE"
// <<"PRM_FILTER_ENV"
// <<"PRM_FILTER_LFO"
//
// <<"PRM_ENV_ATTACK_1"
// <<"PRM_ENV_DECAY_1"
// <<"PRM_ENV_SUSTAIN_1"
// <<"PRM_ENV_RELEASE_1"
//
// <<"PRM_ENV_ATTACK_2"
// <<"PRM_ENV_DECAY_2"
// <<"PRM_ENV_SUSTAIN_2"
// <<"PRM_ENV_RELEASE_2"
//
// <<"PRM_LFO_WAVE_1"
// <<"PRM_LFO_RATE_1"
// <<"PRM_LFO_ATTACK_1"
// <<"PRM_LFO_RETRIGGER_1"
//
// <<"PRM_LFO_WAVE_2"
// <<"PRM_LFO_RATE_2"
// <<"PRM_LFO_ATTACK_2"
// <<"PRM_LFO_RETRIGGER_2"
//
// <<"PRM_MOD_SOURCE"
// <<"PRM_MOD_DESTINATION"
// <<"PRM_MOD_AMOUNT"
// <<"PRM_MOD_ROW"
//
// <<"PRM_FILTER_CUTOFF_2 = 84"
// <<"PRM_FILTER_RESONANCE_2 = 85"
// <<"PRM_FILTER_MODE_1 = 92"
// <<"PRM_FILTER_MODE_2 = 93"
//
// <<"PRM_OP_OP1 = 94"
// <<"PRM_OP_OP2 = 95"
// <<"PRM_OP_OPERATOR = 96"
// <<"PRM_OP_ROW = 97";
// ******************************************
QStringList Labels::OscillatorAlgorithm = QStringList()
// ******************************************
<<"Silence"
<<"Sawtooth"
<<"Square wave"
<<"Triangle"
<<"Phase-dist saw (filter sweep)"
<<"Phase-dist saw (res filter sweep)"
<<"Phase-dist resonant triangle"
<<"Phase-dist trapezoidal creature"
<<"Phase-distortion/self-sync trick"
<<"4 detuned sawtooths" //Stack of 4 detuned sawtooth waves
<<"Minimal 2-operators FM"
<<"Waves"
<<"Tampur"
<<"Digital"
<<"Metal"
<<"Bowed"
<<"Slap"
<<"Organ"
<<"Male"
<<"User wavetable"
<<"Bitwise anarchy"
<<"Bit-crushed" // sine and triangle wave
<<"Naive square wave"
<<"Filtered noise generator"
<<"Vowel" //Low-tech formant synthesis
<<"Bellish"
<<"Polated"
<<"Cello"
<<"Clipsweep"
<<"Female"
<<"Fmntvocal"
<<"Formant2"
<<"Reso3hp"
<<"Electp"
<<"Vibes";
// ******************************************
QStringList Labels::SubOscillatorAlgorithm = QStringList()
// ******************************************
<<"square, 1 octave below"
<<"triangle, 1 octave below"
<<"25% pulse, 1 octave below"
<<"square, 2 octaves below"
<<"triangle, 2 octaves below"
<<"25% pulse, 2 octaves below"
<<"discrete click"
<<"glitch"
<<"blow"
<<"high-pitched click"
<<"low-pitched discontinuity";
// ******************************************
QStringList Labels::LfoWave = QStringList()
// ******************************************
<<"Triangle"
<<"Square"
<<"Sample&Hold"
<<"Ramp"
<<"Step"
<<"Wave 1"
<<"Wave 2"
<<"Wave 3"
<<"Wave 4"
<<"Wave 5"
<<"Wave 6"
<<"Wave 7"
<<"Wave 8"
<<"Wave 9"
<<"Wave 10"
<<"Wave 11"
<<"Wave 12"
<<"Wave 13"
<<"Wave 14"
<<"Wave 15"
<<"Wave 16";
// ******************************************
QStringList Labels::LfoMode = QStringList()
// ******************************************
<<"Free"
<<"Slave"
<<"Master";
// ******************************************
QStringList Labels::Status = QStringList()
// ******************************************
<<"OFF"
<<"ON";
// ******************************************
QStringList Labels::Operator = QStringList()
// ******************************************
<<"Sum"
<<"Sync"
<<"Ring modulation"
<<"XOR"
<<"Fuzz"
<<">>4"
<<">>8";
// ******************************************
QStringList Labels::CvOperator = QStringList()
// ******************************************
<<"Off"
<<"Sum"
<<"Product"
<<"Max"
<<"Min"
<<"XOR"
<<">="
<<"<=";
// ******************************************
QStringList Labels::MainFilterMode = QStringList()
// ******************************************
<<"Lowpass"
<<"Bandpass"
<<"Highpass";
// ******************************************
QStringList Labels::SecondaryFilterMode = QStringList()
// ******************************************
<<"Lowpass (parallel)"
<<"Bandpass (parallel)"
<<"Highpass (parallel)"
<<"Lowpass (serial)"
<<"Bandpass (serial)"
<<"Highpass (serial)";
// ******************************************
QStringList Labels::LFORate = QStringList()
// ******************************************
<<"x1"
<<"x2"
<<"x3"
<<"x4"
<<"x5"
<<"x6"
<<"x7"
<<"x8"
<<"x9"
<<"x10"
<<"x11"
<<"x12"
<<"x13"
<<"x14"
<<"x15"
<<"x16";
// ******************************************
QString Labels::LfoRateFormatter(int value) { // used for labels
// ******************************************
if (value < 16)
return LFORate.at(value);
else
return QString("%1").arg(value-16);
}