add MIDI-panic handler
optimize MIDI-CC handler somewhat