Skip to contentSkip to conversation

Capturing MIDI

DISCUSSION Steve Merrony 2 participants 2 messages May 10, 2007 – May 11, 2007

lore
Share & tools
lore
#0 lore raw

I hope this isn't too off-topic.

I run an open source project (GENPO) which can be thought of as a kind of MIDI switchboard and filter. It uses ALSA throughout. I'd like to add a new feature to the software - a facility to simply record to a standard MIDI file anything that the program produces. I've searched though the API and I can't find anything documented which will help much, so here's my question...

Is there a recommended library for C++ ALSA programs to use for handling (writing) standard MIDI files?

Regards,
Steve

#1 lore raw
Quoted 5 lines · Steve Merrony

I'd like to add a new feature to the software - a facility to simply record to a standard MIDI file anything that the program produces.

Is there a recommended library for C++ ALSA programs to use for handling (writing) standard MIDI files?

ALSA handles sound devices; SMFs are something completely different.

I don't know of any general-purpose SMF library.
Have a look at arecordmidi.c.

HTH
Clemens