-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFcManager.h
More file actions
51 lines (41 loc) · 1.15 KB
/
FcManager.h
File metadata and controls
51 lines (41 loc) · 1.15 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
49
50
51
#pragma once
#include <AxeFxControl.h>
#include "ProtocolType.h"
#include "FootController.h"
class AxePreset;
//commands
enum Command {
PRESET_DOWN,
PRESET_UP,
SCENE_DOWN,
SCENE_UP,
SCENE_CHANGE,
EFFECT_TOGGLE,
MIDI_PC,
MIDI_CC,
__COMMAND_COUNT
};
/** Simple Foot controller Manager class for fractal products
* In future we could derive it from a controller base class for a complete controller agnostic lib and device!
*/
class FcManager : public FootController {
public:
FcManager();
void init() override;
void update() override;
void doSceneChange(byte scene);
void handleExpressionPedals();
private:
void initButtons();
void handleEvents();
void handleLayoutChange();
void notifyPresetChanged(AxePreset preset);
static void onPresetChange(AxePreset preset);
static void onTunerData(const char *note, const byte string, const byte fineTune);
static void onTunerStatus(bool engaged);
static void onSceneName(const SceneNumber number, const char* name, const byte length);
static void onPresetChanging(const PresetNumber number);
// TODO:
static void onSystemChange();
static void onTapTempo();
};