jpcima/smf-dsp

MUS support?

freq-mod opened this issue · 7 comments

Great player, thanks for it.

Yet one thing it lacks is .mus support, since both libADL and libOPNMIDI can handle it. Would it be possible to add that?

Hello,

yes based on a quick read of the MUS document, this must be probably not too difficult.
I'll add it.

http://www.shikadi.net/moddingwiki/MUS_Format - comprehensive documentation of the format, hope it helps

Added at 1ffb907
let me know if all is fine.

Quick test - something seems to be wrong with instrument volumes, some notes are cut short

x.zip - recordings of a file played in SMF-DSP with libOPNMIDI synth, libOPNMIDIplay and .mus file

Ok I adjusted so it produces more or less the same MIDI stream.
There was a state handling problem with velocity, and also a lack of initialization of channel volumes.

Seems OK now, thanks a lot!