Control Surface master
MIDI Control Surface library for Arduino
MIDIReadEvent.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#include <Settings/NamespaceSettings.hpp>
7
9
11enum class MIDIReadEvent : uint8_t {
12 NO_MESSAGE = 0,
13 CHANNEL_MESSAGE = 1,
14 SYSEX_MESSAGE = 2,
16 SYSEX_CHUNK = 4,
18};
19
20inline Print &operator<<(Print &p, MIDIReadEvent evt) {
21 switch (evt) {
23 return p << F("NO_MESSAGE");
25 return p << F("CHANNEL_MESSAGE");
27 return p << F("SYSEX_MESSAGE");
29 return p << F("REALTIME_MESSAGE");
31 return p << F("SYSEX_CHUNK");
33 return p << F("SYSCOMMON_MESSAGE");
34 default:
35 return p << F("<Invalid MIDIReadEvent>");
36 }
37}
38
MIDIReadEvent
Values returned by the MIDI reading functions.
@ CHANNEL_MESSAGE
A MIDI Channel message was received.
@ SYSEX_CHUNK
An incomplete System Exclusive message.
@ SYSCOMMON_MESSAGE
A MIDI System Common message was received.
@ NO_MESSAGE
No new messages were received.
@ SYSEX_MESSAGE
A MIDI System Exclusive message was received.
@ REALTIME_MESSAGE
A MIDI Real-Time message was received.
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Print & operator<<(Print &os, Quaternion e)
Printing.
Definition: Quaternion.cpp:28