FastLED 3.9.7
|
MIDI Library for the Arduino.
Project Arduino MIDI Library
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file MIDI.h.
#include "midi_Defs.h"
#include "midi_Platform.h"
#include "midi_Settings.h"
#include "midi_Message.h"
#include "serialMIDI.h"
#include "MIDI.hpp"
Go to the source code of this file.
Classes | |
class | MidiInterface< Transport, _Settings, _Platform > |
The main class for MIDI handling. It is templated over the type of serial port to provide abstraction from the hardware interface, meaning you can use HardwareSerial, SoftwareSerial or ak47's Uart classes. The only requirement is that the class implements the begin, read, write and available methods. More... | |
Macros | |
#define | MIDI_LIBRARY_VERSION 0x050000 |
#define | MIDI_LIBRARY_VERSION_MAJOR 5 |
#define | MIDI_LIBRARY_VERSION_MINOR 0 |
#define | MIDI_LIBRARY_VERSION_PATCH 0 |
Functions | |
unsigned | encodeSysEx (const byte *inData, byte *outSysEx, unsigned inLength, bool inFlipHeaderBits=false) |
Encode System Exclusive messages. SysEx messages are encoded to guarantee transmission of data bytes higher than 127 without breaking the MIDI protocol. Use this static method to convert the data you want to send. | |
unsigned | decodeSysEx (const byte *inSysEx, byte *outData, unsigned inLength, bool inFlipHeaderBits=false) |
Decode System Exclusive messages. SysEx messages are encoded to guarantee transmission of data bytes higher than 127 without breaking the MIDI protocol. Use this static method to reassemble your received message. | |
unsigned decodeSysEx | ( | const byte * | inSysEx, |
byte * | outData, | ||
unsigned | inLength, | ||
bool | inFlipHeaderBits ) |
Decode System Exclusive messages. SysEx messages are encoded to guarantee transmission of data bytes higher than 127 without breaking the MIDI protocol. Use this static method to reassemble your received message.
inSysEx | The SysEx data received from MIDI in. |
outData | The output buffer where to store the decrypted message. |
inLength | The length of the input buffer. |
inFlipHeaderBits | True for Korg and other who store MSB in reverse order |
unsigned encodeSysEx | ( | const byte * | inData, |
byte * | outSysEx, | ||
unsigned | inLength, | ||
bool | inFlipHeaderBits ) |
Encode System Exclusive messages. SysEx messages are encoded to guarantee transmission of data bytes higher than 127 without breaking the MIDI protocol. Use this static method to convert the data you want to send.
inData | The data to encode. |
outSysEx | The output buffer where to store the encoded message. |
inLength | The length of the input buffer. |
inFlipHeaderBits | True for Korg and other who store MSB in reverse order |