add MIDIMessageHandler C++-style handler