I did a bit of hacking on my app trying to make it alsa
sequencer compatible
but did not want to do too much changing in terms of how it deals with raw
MIDI data. From looking at the API reference it seems that I have 2 choices:
libmidi++ in the ardour source tree has what you need. at least as a
model. ardour writes raw MIDI, never uses the sequencer API. libmidi++
provides "port" objects which support that, regardless of whether they
correspond to a raw MIDI port, a FIFO (literally), CoreMIDI or ALSA sequencer.
see alsasequencer_midiport.cc for details.
--p