Adding a debug output for MIDI messages.