Skip to content

Commit d688030

Browse files
committed
debugging
1 parent a44d1e7 commit d688030

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

src/MIDI.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*/
2727

2828
#pragma once
29+
#pragma message ("git clone MIDI.hpp" )
2930

3031
BEGIN_MIDI_NAMESPACE
3132

@@ -140,11 +141,13 @@ void MidiInterface<SerialPort, Settings>::send(MidiType inType,
140141
inChannel == MIDI_CHANNEL_OMNI ||
141142
inType < 0x80)
142143
{
144+
Serial.print("invalch: "); Serial.println(inType);
143145
return; // Don't send anything
144146
}
145147

146148
if (inType <= PitchBend) // Channel messages
147149
{
150+
Serial.print("chmsg: "); Serial.println(inType);
148151
// Protection: remove MSBs on data
149152
inData1 &= 0x7f;
150153
inData2 &= 0x7f;
@@ -175,6 +178,7 @@ void MidiInterface<SerialPort, Settings>::send(MidiType inType,
175178
}
176179
else if (inType >= Clock && inType <= SystemReset)
177180
{
181+
Serial.print("sendRT: "); Serial.println(inType);
178182
sendRealTime(inType); // System Real-time and 1 byte.
179183
}
180184
}

0 commit comments

Comments
 (0)