-
Notifications
You must be signed in to change notification settings - Fork 0
/
commons.h
99 lines (85 loc) · 2.23 KB
/
commons.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
#ifndef COMMONS_H
#define COMMONS_H
// AMPERO STOMP 2 MIDI Control Information
#define VL_SLOT_ON 62;
#define VL_SLOT_OFF 65;
const int CC_SLOT_A[] = { 48, 49, 50, 51, 52, 53 };
const int CC_SLOT_B[] = { 54, 55, 56, 57, 58, 59 };
#define PATCH_UP 27;
#define PATCH_DOWN 26;
const int DISPLAYS_N_BUTTONS = 8;
String displayText[DISPLAYS_N_BUTTONS];
bool buttonStates[DISPLAYS_N_BUTTONS] = {false};
bool reloadDisplay = true;
int currentPatch = 0;
// A B C D E F G H
int buttonActions[DISPLAYS_N_BUTTONS] = {1, 2, 3, 4, 6, 7, 8, 9};
struct Stomp
{
String name;
int action;
bool state;
int type;
};
Stomp presets[DISPLAYS_N_BUTTONS];
#endif
/*
Bank MSB
P00-1 ~ P42-2 CC=0 VL=0-127
P42-3 ~ P85-1 CC=1 VL=0-127
P85-2 ~ P99-3 CC=2 VL=0-43
const decode = (a, b) => {
if ((a>99)||(b>3)) return undefined
let cc = 0,
calculated = (a * 3 + b - 1);
if (calculated > 127) {
cc++;
calculated = calculated - 128;
}
if (calculated > 127) {
cc++;
calculated = calculated - 128;
}
return [cc, calculated]
}
MOD Green 78 107 84
DYN Light Blue 64 99 117
DRIVE Red 126 78 78
FREQ Purple 56 58 95
WAH Purple 74 60 92
PRE Green 63 97 96
AMP Blue 51 67 88
IR Gray 73 73 73
CAB Brown 113 84 56
const char effects[] = "{ \
\"Compressor\": \"RRGGBB\", \
\"Boost\": \"RRGGBB\", \
\"Noise Gate\": \"RRGGBB\", \
\"FREQ\": \"RRGGBB\", \
\"Acoustic\": \"RRGGBB\", \
\"Filter\": \"RRGGBB\", \
\"Auto Filter\": \"RRGGBB\", \
\"Pitch\": \"RRGGBB\", \
\"Special\": \"RRGGBB\", \
\"WAH\": \"RRGGBB\", \
\"Overdrive\": \"RRGGBB\", \
\"FUZZ\": \"RRGGBB\", \
\"Distortion\": \"RRGGBB\", \
\"Bass Drive\": \"RRGGBB\", \
\"AMP\": \"RRGGBB\", \
\"Power Amp\": \"RRGGBB\", \
\"PRE AMP\": \"RRGGBB\", \
\"CAB\": \"RRGGBB\", \
\"IR\": \"RRGGBB\", \
\"EQ\": \"RRGGBB\", \
\"Chorus\": \"RRGGBB\", \
\"Flanger\": \"RRGGBB\", \
\"Vibrato\": \"RRGGBB\", \
\"Phaser\": \"RRGGBB\", \
\"Tremolo\": \"RRGGBB\", \
\"Rotary\": \"RRGGBB\", \
\"Expanding\": \"RRGGBB\", \
\"Slow Attack\": \"RRGGBB\", \
\"Delay\": \"RRGGBB\", \
\"Rever\": \"RRGGBB\" }";
*/