Page 1 of 1

A few words on D2X-XL and music

Posted: Wed Jan 04, 2006 11:27 am
by Diedel
Today I looked into the D2 music stuff a little, particularly the midi code, trying to make it portable by using SDL_mixer.

Whatever format the D2 makers chose for their music, it isn't standard midi, at least if looking at what SDL_mixer expects in a MIDI file.

If there is someone around who has more insight in this subject, please enlighten me.

Darn the guys who implemented the D2 music.

Auf gut Deutsch: Ich könnte kotzen!

Posted: Wed Jan 04, 2006 12:07 pm
by fliptw
there is(were) utilities for converting d1/2 music to midi. I think it was a format propretiry to interplay.

it might be saner to point people here and use that instead.

Posted: Wed Jan 04, 2006 2:43 pm
by Diedel
flip,

problem is that D2X midi is not available on Linux and OS X right now, and the only way for me to make it work is the SDL_mixer lib. It requires real midi though. Is there source code available for a hmp -> midi conversion? That would do already. If I could use SDL_mixer, I could also add mp3, wav and ogg vorbis playback and play lists.

Edit:

I've found some source code for hmp -> midi conversion.