From 8ee40445f41881aae12e6602b56ff97e240915a6 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Thu, 13 Feb 2014 21:44:27 +0100 Subject: [PATCH] Doc. --- src/MIDI.hpp | 15 ++++----------- src/midi_Settings.h | 4 ++++ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 52e2ac4..9233fa8 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -1092,24 +1092,17 @@ void MidiInterface::turnThruOff() // This method is called upon reception of a message // and takes care of Thru filtering and sending. +// - All system messages (System Exclusive, Common and Real Time) are passed +// to output unless filter is set to Off. +// - Channel messages are passed to the output whether their channel +// is matching the input channel and the filter setting template void MidiInterface::thruFilter(Channel inChannel) { - - /* - This method handles Soft-Thru filtering. - - Soft-Thru filtering: - - All system messages (System Exclusive, Common and Real Time) are passed to output unless filter is set to Off - - Channel messages are passed to the output whether their channel is matching the input channel and the filter setting - - */ - // If the feature is disabled, don't do anything. if (!mThruActivated || (mThruFilterMode == Off)) return; - // First, check if the received message is Channel if (mMessage.type >= NoteOff && mMessage.type <= PitchBend) { diff --git a/src/midi_Settings.h b/src/midi_Settings.h index 0bb5869..16e2504 100644 --- a/src/midi_Settings.h +++ b/src/midi_Settings.h @@ -70,6 +70,10 @@ // of the same type and channel. // Set to 0 if you have troubles controlling your hardware. #define MIDI_USE_RUNNING_STATUS 1 + +// Setting this to 1 will make MIDI.read parse only one byte of data for each +// call when data is available. This can speed up your application if receiving +// a lot of traffic, but might induce MIDI Thru and treatment latency. #define MIDI_USE_1BYTE_PARSING 1 #define MIDI_BAUDRATE 31250