forked from ToninoTarsi/TTSparkFootCtrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Spark.h
61 lines (49 loc) · 1.67 KB
/
Spark.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
#ifndef Spark_h
#define Spark_h
#include "SparkIO.h"
// variables required to track spark state and also for communications generally
unsigned int cmdsub;
SparkMessage msg;
SparkPreset preset;
SparkPreset presets[6];
enum spark_status_values {SPARK_DISCONNECTED, SPARK_CONNECTED, SPARK_COMMUNICATING, SPARK_SYNCING, SPARK_SYNCED};
spark_status_values spark_state;
unsigned long spark_ping_timer;
bool spark_state_tracker_start();
bool update_spark_state();
void update_ui();
void change_comp_model(char *new_eff);
void change_drive_model(char *new_eff);
void change_amp_model(char *new_eff);
void change_mod_model(char *new_eff);
void change_delay_model(char *new_eff);
void change_noisegate_onoff(bool onoff);
void change_comp_onoff(bool onoff);
void change_drive_onoff(bool onoff);
void change_amp_onoff(bool onoff);
void change_mod_onoff(bool onoff);
void change_delay_onoff(bool onoff);
void change_reverb_onoff(bool onoff);
void change_noisegate_toggle();
void change_comp_toggle();
void change_drive_toggle();
void change_amp_toggle();
void change_mod_toggle();
void change_delay_toggle();
void change_reverb_toggle();
void change_noisegate_param(int param, float val);
void change_comp_param(int param, float val);
void change_drive_param(int param, float val);
void change_amp_param(int param, float val);
void change_mod_param(int param, float val);
void change_delay_param(int param, float val);
void change_reverb_param(int param, float val);
void change_hardware_preset(int pres_num);
void change_custom_preset(SparkPreset *preset, int pres_num);
void tuner_on_off(bool on_off);
#define AMP_GAIN 0
#define AMP_TREBLE 1
#define AMP_MID 2
#define AMP_BASS 3
#define AMP_MASTER 4
#endif