Cosmetics.
This commit is contained in:
parent
c155dde281
commit
21b1e76e95
|
|
@ -1,6 +1,6 @@
|
||||||
/*!
|
/*!
|
||||||
* @file MIDI.cpp
|
* @file MIDI.cpp
|
||||||
* Project MIDI Library
|
* Project Arduino MIDI Library
|
||||||
* @brief MIDI Library for the Arduino
|
* @brief MIDI Library for the Arduino
|
||||||
* @version 3.2
|
* @version 3.2
|
||||||
* @author Francois Best
|
* @author Francois Best
|
||||||
|
|
|
||||||
22
src/MIDI.h
22
src/MIDI.h
|
|
@ -1,11 +1,11 @@
|
||||||
/*!
|
/*!
|
||||||
* @file MIDI.h
|
* @file MIDI.h
|
||||||
* Project MIDI Library
|
* Project Arduino MIDI Library
|
||||||
* @brief MIDI Library for the Arduino
|
* @brief MIDI Library for the Arduino
|
||||||
* Version 3.2
|
* @version 3.2
|
||||||
* @author Francois Best
|
* @author Francois Best
|
||||||
* @date 24/02/11
|
* @date 24/02/11
|
||||||
* License GPL Forty Seven Effects - 2011
|
* license GPL Forty Seven Effects - 2011
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIB_MIDI_H_
|
#ifndef LIB_MIDI_H_
|
||||||
|
|
@ -31,11 +31,11 @@
|
||||||
#define COMPILE_MIDI_IN 1 // Set this setting to 1 to use the MIDI input.
|
#define COMPILE_MIDI_IN 1 // Set this setting to 1 to use the MIDI input.
|
||||||
#define COMPILE_MIDI_OUT 1 // Set this setting to 1 to use the MIDI output.
|
#define COMPILE_MIDI_OUT 1 // Set this setting to 1 to use the MIDI output.
|
||||||
#define COMPILE_MIDI_THRU 1 // Set this setting to 1 to use the MIDI Soft Thru feature
|
#define COMPILE_MIDI_THRU 1 // Set this setting to 1 to use the MIDI Soft Thru feature
|
||||||
// Please note that the Thru will work only when both COMPILE_MIDI_IN and COMPILE_MIDI_OUT set to 1.
|
// Please note that the Thru will work only when both COMPILE_MIDI_IN and COMPILE_MIDI_OUT set to 1.
|
||||||
|
|
||||||
|
|
||||||
#define USE_SERIAL_PORT Serial // Change the number (to Serial1 for example) if you want
|
#define USE_SERIAL_PORT Serial // Change the number (to Serial1 for example) if you want
|
||||||
// to use a different serial port for MIDI I/O.
|
// to use a different serial port for MIDI I/O.
|
||||||
|
|
||||||
#define USE_SOFTWARE_SERIAL 1 // Set to 1 to use SoftwareSerial instead of native serial ports.
|
#define USE_SOFTWARE_SERIAL 1 // Set to 1 to use SoftwareSerial instead of native serial ports.
|
||||||
#define SOFTSERIAL_RX_PIN 1 // This pin number will be used for MIDI Input
|
#define SOFTSERIAL_RX_PIN 1 // This pin number will be used for MIDI Input
|
||||||
|
|
@ -43,12 +43,12 @@
|
||||||
|
|
||||||
|
|
||||||
#define USE_RUNNING_STATUS 1 // Running status enables short messages when sending multiple values
|
#define USE_RUNNING_STATUS 1 // Running status enables short messages when sending multiple values
|
||||||
// of the same type and channel.
|
// of the same type and channel.
|
||||||
// Set to 0 if you have troubles with controlling you hardware.
|
// Set to 0 if you have troubles with controlling you hardware.
|
||||||
|
|
||||||
|
|
||||||
#define USE_CALLBACKS 1 // Set this to 1 if you want to use callback handlers (to bind your functions to the library).
|
#define USE_CALLBACKS 1 // Set this to 1 if you want to use callback handlers (to bind your functions to the library).
|
||||||
// To use the callbacks, you need to have COMPILE_MIDI_IN set to 1
|
// To use the callbacks, you need to have COMPILE_MIDI_IN set to 1
|
||||||
|
|
||||||
#define USE_1BYTE_PARSING 1 // Each call to MIDI.read will only parse one byte (might be faster).
|
#define USE_1BYTE_PARSING 1 // Each call to MIDI.read will only parse one byte (might be faster).
|
||||||
|
|
||||||
|
|
@ -136,7 +136,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ####### OUTPUT COMPILATION BLOCK ####### */
|
/* ####### OUTPUT COMPILATION BLOCK ####### */
|
||||||
#if COMPILE_MIDI_OUT
|
#if COMPILE_MIDI_OUT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
@ -174,7 +174,7 @@ private:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ####### INPUT COMPILATION BLOCK ####### */
|
/* ####### INPUT COMPILATION BLOCK ####### */
|
||||||
#if COMPILE_MIDI_IN
|
#if COMPILE_MIDI_IN
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
@ -286,7 +286,7 @@ private:
|
||||||
#endif // COMPILE_MIDI_IN
|
#endif // COMPILE_MIDI_IN
|
||||||
|
|
||||||
|
|
||||||
/* ####### THRU COMPILATION BLOCK ####### */
|
/* ####### THRU COMPILATION BLOCK ####### */
|
||||||
#if (COMPILE_MIDI_IN && COMPILE_MIDI_OUT && COMPILE_MIDI_THRU) // Thru
|
#if (COMPILE_MIDI_IN && COMPILE_MIDI_OUT && COMPILE_MIDI_THRU) // Thru
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue