Fix MIDI tempo calculations

Not sure if this is necessary, since DOOM RETRO has no OPL playback, but
see
https://github.com/chocolate-doom/chocolate-doom/commit/c7e82b3866134277e73f9a9d2b0f67da3fa403d0.