http://bertrandbenoit.blogspot.com/2008/05/play-midi-under-gnulinux-with-alsa.html
There is lots of articles on the subject but it is not so trivial to get needed information to use ALSA tools to play MIDI files.
This is some quick information:
then ensure to have a way to load soundfonts into the wavetable of the sound card; for instance of sound card managed AWE32/Emu10k1 sound driver, you can install the awesfx package
yum install awesfx
at any moment, to check if there is a loaded soundfonts:
cat /proc/asound/card?/wavetableD?
you can clear currently loaded soundfounts but you want to keep it:
/bin/asfxload -i
then load it:
/bin/asfxload
finally test installation using aplaymidi to play a MIDI file
aplaymidi -p "addresses"* "MIDI file path"
documented on: 27 May 2008, Bertrand BENOIT