I have been experimenting with the following code: alsarawmidiin.c
The alsa rawmidi states that you can create a virtual rawmidi port by naming the input port "virtual"
So I compiled the code and started it with the command:
alsarawmidiin virtual
This works and I can connect other midi ports using aconnect. The problem is that the midi data that os being displayed only shows the first and last byte of the midi message. Most midi messages are three bytes, but when using the virtual driver only two are displayed.
Connecting straight to a rawmidi device (not virtual) does work. But I want to connect several midi devices to the same rawmidi port. Is this an error in the alsa rawmidi library?