forked from happyhappysundays/SparkBox
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSparkStructures.h
More file actions
48 lines (42 loc) · 1.22 KB
/
SparkStructures.h
File metadata and controls
48 lines (42 loc) · 1.22 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
#ifndef SparkStructures_h
#define SparkStructures_h
#define STR_LEN 40
typedef struct {
uint8_t curr_preset;
uint8_t preset_num;
char UUID[STR_LEN];
char Name[STR_LEN];
char Version[STR_LEN];
char Description[STR_LEN];
char Icon[STR_LEN];
float BPM;
struct SparkEffects {
char EffectName[STR_LEN];
bool OnOff;
uint8_t NumParameters;
float Parameters[10];
} effects[7];
uint8_t chksum;
} SparkPreset;
typedef struct {
uint8_t param1;
uint8_t param2;
uint8_t param3;
uint8_t param4;
uint32_t param5;
float val;
char str1[STR_LEN];
char str2[STR_LEN];
bool onoff;
} SparkMessage;
/*
SparkPreset my_preset{0x0,0x7f,"F00DF00D-FEED-0123-4567-987654321004","Paul Preset Test","0.7","Nothing Here","icon.png",120.000000,{
{"bias.noisegate", true, 2, {0.316873, 0.304245}},
{"Compressor", false, 2, {0.341085, 0.665754}},
{"Booster", true, 1, {0.661412}},
{"Bassman", true, 5, {0.768152, 0.491509, 0.476547, 0.284314, 0.389779}},
{"UniVibe", false, 3, {0.500000, 1.000000, 0.700000}},
{"VintageDelay", true, 4, {0.152219, 0.663314, 0.144982, 1.000000}},
{"bias.reverb", true, 7, {0.120109, 0.150000, 0.500000, 0.406755, 0.299253, 0.768478, 0.100000}} },0x00 };
*/
#endif