Browse Source

Remove debug prints in MidiThrough example

This reverts commit 82767715a1.
pull/453/head
FergusL 10 months ago
parent
commit
cc62cbde48
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      examples/MidiThrough/MidiThroughExamplePlugin.cpp

+ 0
- 8
examples/MidiThrough/MidiThroughExamplePlugin.cpp View File

@@ -101,15 +101,7 @@ protected:
const MidiEvent* midiEvents, uint32_t midiEventCount) override const MidiEvent* midiEvents, uint32_t midiEventCount) override
{ {
for (uint32_t i=0; i<midiEventCount; ++i) for (uint32_t i=0; i<midiEventCount; ++i)
{
uint8_t b0 = midiEvents[i].data[0]; // status + channel
uint8_t b0_status = b0 & 0xF0;
uint8_t b0_channel = b0 & 0x0F;
uint8_t b1 = midiEvents[i].data[1]; // note
uint8_t b2 = midiEvents[i].data[2]; // velocity
d_stdout("MIDI in 0x%x (status: 0x%x, channel: 0x%x) %d %d", b0, b0_status, b0_channel, b1, b2);
writeMidiEvent(midiEvents[i]); writeMidiEvent(midiEvents[i]);
}
} }
// ------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save