If you're using a soundblaster style card I think
you can set the record
input to MIDI and just record a stereo wav file
I asked the question the other day - with an SB Live, run alsamixer and toggle
capture on the fader titled 'music' with the space bar. This should enable
you to record the internal synth via /dev/dsp
Cheers
Daniel