-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbluemchen.h
37 lines (29 loc) · 843 Bytes
/
bluemchen.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
#pragma once
#define HW_TYPE kxmx::Bluemchen
#include "kxmx_bluemchen.h"
#include "params.h"
#include "MidiMsgHandler.h"
#include "EventQueue.h"
#include "grnltr.h"
#include "status.h"
#define MAX_STRING 11 // 10 chars 6px wide + terminating \0
#define LONG_PRESS 512
#define EXTRA_LONG_PRESS (LONG_PRESS * 3)
#define DOUBLE_CLICK 500
extern float sample_bpm;
extern MidiMsgHandler<HW_TYPE> mmh;
extern EventQueue<QUEUE_LENGTH> eq;
extern char dir_names[MAX_DIRS][MAX_DIR_LENGTH];
extern uint8_t dir_count;
extern int8_t cur_dir;
extern kxmx::Bluemchen hw;
float hw_init();
void hw_start(AudioHandle::AudioCallback cb);
void UpdateEncoder(int8_t cur_page);
void UpdateUI(int8_t cur_page);
void Status(status_t status);
typedef struct {
char const *page;
char const *param[2];
EventQueue<QUEUE_LENGTH>::event events[2];
} page_t;