Control Surface pin-t-adl
MIDI Control Surface library for Arduino
USBMIDI_MIDIUSB.hpp
Go to the documentation of this file.
2#include <Settings/NamespaceSettings.hpp>
3
4#include <MIDIUSB.h>
5
7
11 midiEventPacket_t midipacket = MidiUSB.read();
12 return {{midipacket.header, midipacket.byte1, midipacket.byte2,
13 midipacket.byte3}};
14 }
16 midiEventPacket_t msg{d.data[0], d.data[1], d.data[2], d.data[3]};
17 MidiUSB.sendMIDI(msg);
18 }
19 void sendNow() { MidiUSB.flush(); }
20 bool preferImmediateSend() { return true; }
21};
22
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
T data[N]
Definition: Array.hpp:37
MIDIUSBPacket_t read()
void write(MIDIUSBPacket_t d)