Binary package “midisnoop” in ubuntu trusty
MIDI monitor and prober
Can be used to monitor a MIDI device and/or software,
and to send MIDI messages to a MIDI port
to see how the device/software responds.
.
Support both ALSA and JACK MIDI ports via the RtMidi library.