I'm using Qt and C++ under Linux with ALSA. Ideally, what I'd like is a simple example like alsa's midiseq.c or a MIDI metronome