Arduino MIDI Library
Version 5.0.1
|
MIDI Library for the Arduino. More...
#include "MIDI.h"
Go to the source code of this file.
Functions | |
BEGIN_MIDI_NAMESPACE 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. More... | |
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. More... | |
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.cpp.
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 |
Definition at line 87 of file MIDI.cpp.
BEGIN_MIDI_NAMESPACE 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 |
Definition at line 46 of file MIDI.cpp.