-
Notifications
You must be signed in to change notification settings - Fork 1
/
Globals.h
executable file
·230 lines (209 loc) · 3.16 KB
/
Globals.h
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
#ifndef __globals_h__
#define __globals_h__
#define VERSION "1.3"
#define WAVETABLESIZE 200
const float Pi = 3.14159265358979323f;
#define NUMOFVOICES 11
//#define _fabsf(fv) (fv<0)?(-fv):(fv)
#define _fabsf(fv) fabsf(fv)
/*
This cute little trick helps to prevent the infamous Pentium
normalization effect.
Use this macro whenever you have an feedback float variable
which is expected to return decreasingly small values.
*/
#define DENORMAL(fv) (_fabsf(fv)<.000001f)?0:(fv)
/*
ID and Effect name are used by the host application to distinguish
between plugins. You can register a specific ID through a Steinberg
service.
*/
#define MY_ID 'FLP5'
#define EFFECT_NAME "AZR3"
#define VENDOR_STRING "Rumpelrausch Taips"
#define PRODUCT_STRING "AZR3"
#define LAST_PARAM n_3_sustain
enum
{
W_SINE=0,
W_SINE1,
W_SINE2,
W_SINE3,
W_TRI,
W_SAW,
W_NUMOF
};
enum // bitmap indices
{
b_panelfx=0,
b_panelvoice,
b_cknob,
b_dbblack,
b_dbwhite,
b_dbbrown,
b_inside,
b_miniledred,
b_minioffon,
b_onoffgreen,
b_vonoff,
b_yellow,
b_vu,
kNumBitmaps,
};
enum
{
kNumPrograms = 32,
kNumOutputs = 2,
// The parameters
// The order shows how the code has grown in time...
n_mono=0,
n_click,
n_bender,
n_shape,
n_perc,
n_percvol,
n_percfade,
n_vol1,
n_vol2,
n_vol3,
n_master,
//11
n_1_perc,
n_1_db1,
n_1_db2,
n_1_db3,
n_1_db4,
n_1_db5,
n_1_db6,
n_1_db7,
n_1_db8,
n_1_db9,
//21
n_1_vibrato,
n_1_vstrength,
n_1_vmix,
n_2_perc,
n_2_db1,
n_2_db2,
n_2_db3,
n_2_db4,
n_2_db5,
n_2_db6,
//31
n_2_db7,
n_2_db8,
n_2_db9,
n_2_vibrato,
n_2_vstrength,
n_2_vmix,
n_3_perc,
n_3_db1,
n_3_db2,
n_3_db3,
//41
n_3_db4,
n_3_db5,
n_mrvalve,
n_drive,
n_set,
n_tone,
n_mix,
n_speakers,
n_speed,
n_l_slow,
//51
n_l_fast,
n_u_slow,
n_u_fast,
n_belt,
n_spread,
n_complex,
n_pedalspeed,
n_splitpoint,
n_sustain,
n_1_sustain,
n_2_sustain,
n_3_sustain,
kNumParams,
n_1_midi,
n_2_midi,
n_3_midi,
n_vu,
n_compare,
n_save,
n_display,
n_redraw,
n_setprogname,
n_param_is_manual,
n_splash,
n_voicemode,
n_fxmode,
n_split,
n_output,
kNumControls,
n_mute
};
// Let's be friendly and do at least some GUI-less support...
static char labels[kNumParams][16]=
{
"Mono ",
"Click ",
"Bender ",
"Shape ",
"Percussn",
"Perc-Vol",
"PercFade",
"Vol 1 ",
"Vol 2 ",
"Vol 3 ",
"Master ",
"1/ Perc ",
"1/ 16 ",
"1/ 5 1/3",
"1/ 8 ",
"1/ 4 ",
"1/ 2 2/3",
"1/ 2 ",
"1/ 1 3/5",
"1/ 1 1/3",
"1/ 1 ",
"1/ Vbrto",
"1/ VStr ",
"1/ VMix ",
"2/ Perc ",
"2/ 16 ",
"2/ 5 1/3",
"2/ 8 ",
"2/ 4 ",
"2/ 2 2/3",
"2/ 2 ",
"2/ 1 3/5",
"2/ 1 1/3",
"2/ 1 ",
"2/ Vbrto",
"2/ VStr ",
"2/ VMix ",
"3/ Perc ",
"3/ 16 ",
"3/ 5 1/3",
"3/ 8 ",
"3/ 4 ",
"3/ 2 2/3",
"Mr.Valve",
"Drive ",
"Set ",
"Tone ",
"Mix ",
"Speakers",
"Speed ",
"Lowrslow",
"Lowrfast",
"Upprslow",
"Upprfast",
"Belt ",
"Spread ",
"Complex ",
"PdlSpeed",
"SplitPnt",
};
#endif