| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
    7 #include <Settings/SettingsWrapper.hpp> 
   29         while (
stream.available() > 0) {
 
   30             uint8_t midiByte = 
stream.read();
 
   41     void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2,
 
   42                   uint8_t cn)
 override {
 
   50     void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t cn)
 override {
 
   57     void sendImpl(
const uint8_t *data, 
size_t length, uint8_t cn)
 override {
 
   59         stream.write(data, length);
 
   63     void sendImpl(uint8_t rt, uint8_t cn)
 override {
 
  147 #if !defined(TEENSYDUINO) ||                                                   \ 
  148     (defined(TEENSYDUINO) && defined(TEENSY_SERIALUSB_ENABLED)) 
  172 #if defined(__AVR__) || (defined(TEENSYDUINO) && TEENSYDUINO != 147) ||        \ 
  173     (defined(TEENSYDUINO) && !defined(__IMXRT1052__) &&                        \ 
  174      !defined(__IMXRT1062__)) 
  176 #include <SoftwareSerial.h> 
  
A class for MIDI interfaces sending and receiving MIDI messages over a SoftwareSerial interface.
 
A wrapper class for MIDI interfaces sending and receiving MIDI messages over a Serial port of class T...
 
constexpr unsigned long HAIRLESS_BAUD
The baud rate to use for Hairless MIDI.
 
SoftwareSerialMIDI_Interface(SoftwareSerial &serial, unsigned long baud)
Create a SoftwareSerialMIDI_Interface on the given SoftwareSerial interface with the given baud rate.
 
An abstract class for MIDI interfaces.
 
MIDI_read_t parse(uint8_t midibyte)
 
USBSerialMIDI_Interface(unsigned long baud)
Construct a USBSerialMIDI_Interface with the given baud rate.
 
void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t cn) override
Low-level function for sending a 2-byte MIDI message.
 
void sendImpl(const uint8_t *data, size_t length, uint8_t cn) override
Low-level function for sending a system exclusive MIDI message.
 
#define BEGIN_CS_NAMESPACE
 
A class for MIDI interfaces sending and receiving MIDI messages over the Serial port of the USB conne...
 
StreamMIDI_Interface(Stream &stream)
Construct a StreamMIDI_Interface on the given Stream.
 
SerialMIDI_Interface(T &serial, unsigned long baud)
Create a new MIDI Interface on the given Serial interface with the given baud rate.
 
MIDI_read_t read() override
 
A class for MIDI Interfaces sending and receiving data over the USB Serial CDC connection for the use...
 
HairlessMIDI_Interface()
Construct a HairlessMIDI_Interface.
 
HardwareSerialMIDI_Interface(HardwareSerial &serial, unsigned long baud)
Construct a new MIDI Interface on the given HardwareSerial interface with the given baud rate.
 
A class for MIDI interfaces sending and receiving MIDI messages over a Serial port of class T.
 
void sendImpl(uint8_t rt, uint8_t cn) override
Low-level function for sending a single-byte MIDI message.
 
void begin() override
Start the Serial interface at the predefined baud rate.
 
A class for MIDI interfaces sending and receiving MIDI messages over a Stream.
 
void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2, uint8_t cn) override
Low-level function for sending a 3-byte MIDI message.