amidimon
A small command line MIDI monitor for ALSA 0.9 (still works fine on ALSA 1.x though). This project is hosted on sourceforge
Here’s example output:
~/source/my_projects/sound/amidimon.old$ ./amidimon --ports virtual Alsa Midi Monitor v0.1 [for alsa 0.9][(c)Florian Schmidt] 0:52:34:147180 generic 81 00 82 00 00 00 00 00 00 00 00 00 0:52:36:354216 noteon c: 00 p: 064 v: 127 ov: 000 d: 00000 0:52:36:748182 noteoff c: 00 p: 064 v: 000 ov: 000 d: 00000 0:52:37:76445 noteon c: 00 p: 064 v: 127 ov: 000 d: 00000 0:52:37:100558 noteoff c: 00 p: 064 v: 000 ov: 000 d: 00000 0:52:37:246764 noteon c: 00 p: 064 v: 127 ov: 000 d: 00000 0:52:37:284694 noteoff c: 00 p: 064 v: 000 ov: 000 d: 00000
Contrary to what its readme states it doesn’t yet connect to ports specified on the commandline. I will change this someday ;) So use aconnect or a graphical ALSA MIDI patchbay of your choice, like qjackctl.