-
Notifications
You must be signed in to change notification settings - Fork 0
/
MidiController.h
56 lines (40 loc) · 1.39 KB
/
MidiController.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
#ifndef _MIDI_CONTROLLER_H_
#define _MIDI_CONTROLLER_H_
#include <Arduino.h>
#include <MIDI.h>
#include "LyraController.h"
class MidiController {
public:
MidiController();
static LyraController *lyraController;
static void initMIDI();
static void setLyraController(LyraController *controller);
static void nextTick();
static void handleNoteOff(byte val1, byte val2, byte val3);
static void handleNoteOn(byte val1, byte val2, byte val3);
static void handleAfterTouchPoly(byte val1, byte val2, byte val3);
static void handleControlChange(byte val1, byte val2, byte val3);
static void handleProgramChange(byte val1, byte val2);
static void handleAfterTouchChannel(byte val1, byte val2);
static void handlePitchBend(byte val1, int val2);
//-----------------------------------------------------------
private:
static void logMidi_1(byte val1, int val2);
static void logMidi_2(byte val1, byte val2);
static void logMidi_3(byte val1, byte val2, byte val3);
};
#endif //_MIDI_CONTROLLER_H_
/* ============================================
//MIDI.setHandleSystemExclusive(
//MIDI.setHandleTimeCodeQuarterFrame(
//MIDI.setHandleSongPosition(
//MIDI.setHandleSongSelect(
//MIDI.setHandleTuneRequest(
//MIDI.setHandleClock(
//MIDI.setHandleStart(
//MIDI.setHandleContinue(
//MIDI.setHandleStop(
//MIDI.setHandleActiveSensing(
//MIDI.setHandleSystemReset(
===============================================
*/