From d688030c14af12c209020e04f65ca3b7199a06a0 Mon Sep 17 00:00:00 2001 From: Eric Bateman Date: Sun, 11 Aug 2019 00:34:40 -0700 Subject: [PATCH 1/3] debugging --- .DS_Store | Bin 0 -> 6148 bytes src/MIDI.hpp | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9a874b5768f336915163bb88cd434575b859f936 GIT binary patch literal 6148 zcmeH~Jr2S!425ml0g0s}V-^m;4I%_5-~tF3k&vj^b9A16778<}(6eNJu~Vz<8=6`~ zboab&MFtUB!i}=AFfm2m$tVxGT*u4pe81nUlA49C} z?O@64YO)2RT{MRe%{!}2F))pG(Sih~)xkgosK7*lF7m<7{{#Hn{6A@7N(HFEpDCdI z{::send(MidiType inType, inChannel == MIDI_CHANNEL_OMNI || inType < 0x80) { + Serial.print("invalch: "); Serial.println(inType); return; // Don't send anything } if (inType <= PitchBend) // Channel messages { + Serial.print("chmsg: "); Serial.println(inType); // Protection: remove MSBs on data inData1 &= 0x7f; inData2 &= 0x7f; @@ -175,6 +178,7 @@ void MidiInterface::send(MidiType inType, } else if (inType >= Clock && inType <= SystemReset) { + Serial.print("sendRT: "); Serial.println(inType); sendRealTime(inType); // System Real-time and 1 byte. } } From dac0862657fe3adef0f6f3ca07c39fd4bf4203ed Mon Sep 17 00:00:00 2001 From: Eric Bateman Date: Sun, 11 Aug 2019 00:58:17 -0700 Subject: [PATCH 2/3] Update MIDI.hpp --- src/MIDI.hpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/MIDI.hpp b/src/MIDI.hpp index fd87d33..99e348a 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -26,7 +26,6 @@ */ #pragma once -#pragma message ("git clone MIDI.hpp" ) BEGIN_MIDI_NAMESPACE @@ -136,18 +135,15 @@ void MidiInterface::send(MidiType inType, DataByte inData2, Channel inChannel) { - // Then test if channel is valid - if (inChannel >= MIDI_CHANNEL_OFF || - inChannel == MIDI_CHANNEL_OMNI || - inType < 0x80) - { - Serial.print("invalch: "); Serial.println(inType); - return; // Don't send anything - } - if (inType <= PitchBend) // Channel messages { - Serial.print("chmsg: "); Serial.println(inType); + // Then test if channel is valid + if (inChannel >= MIDI_CHANNEL_OFF || + inChannel == MIDI_CHANNEL_OMNI || + inType < 0x80) + { + return; // Don't send anything + } // Protection: remove MSBs on data inData1 &= 0x7f; inData2 &= 0x7f; @@ -178,7 +174,6 @@ void MidiInterface::send(MidiType inType, } else if (inType >= Clock && inType <= SystemReset) { - Serial.print("sendRT: "); Serial.println(inType); sendRealTime(inType); // System Real-time and 1 byte. } } From 843a9e5d8d949f4e9bcc37d9314f24cf90ed62d0 Mon Sep 17 00:00:00 2001 From: Eric Bateman Date: Wed, 21 Aug 2019 23:36:22 -0700 Subject: [PATCH 3/3] Delete .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 9a874b5768f336915163bb88cd434575b859f936..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425ml0g0s}V-^m;4I%_5-~tF3k&vj^b9A16778<}(6eNJu~Vz<8=6`~ zboab&MFtUB!i}=AFfm2m$tVxGT*u4pe81nUlA49C} z?O@64YO)2RT{MRe%{!}2F))pG(Sih~)xkgosK7*lF7m<7{{#Hn{6A@7N(HFEpDCdI z{