Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
T data[N]
Definition Array.hpp:33
void write(MIDIUSBPacket_t d)