Error playing some MIDI files in Windows 3.1 Media Player

Discussion about old sound cards, MIDI devices and sound related accessories.

Error playing some MIDI files in Windows 3.1 Media Player

Postby bristlehog » 2018-1-15 @ 19:38

Some MIDI files won't open with the following message:

The specified file cannot be played on the specified MCI device. The file may be corrupt, or not in the correct format.

This for example happens with products of XMI2MID and MIDIPLEX's conversions of XMI to MID. Ideas of what is going on, anybody?
User avatar
bristlehog
Oldbie
 
Posts: 1589
Joined: 2013-4-11 @ 17:56
Location: Russia

Re: Error playing some MIDI files in Windows 3.1 Media Player

Postby JayCeeBee64 » 2018-1-19 @ 03:53

It's been years since I last saw that particular error message, so I used XMI2MID to convert one of my XMI tunes (HUMAN2 from Warcraft) to MID and remember how I solved it back then - load the converted MID file into a MIDI sequencer (I used Cakewalk Pro Audio 9) and save it. That will make it playable in Media Player.

As to why this happens, my best guess is that the conversion process creates an MID file that's not compatible with Media Player (it's not recognized as playable media); loading/saving in a MIDI sequencer slightly alters the MID file to make it fully compatible and playable.
It's dangerous to go SPAALONE! Take Babuguus

"SPAALONEBABUGUUSCOOTIES!"
User avatar
JayCeeBee64
Oldbie
 
Posts: 959
Joined: 2012-8-08 @ 18:05
Location: Deep Space.....

Re: Error playing some MIDI files in Windows 3.1 Media Player

Postby Auzner » 2018-1-19 @ 04:00

Open before and after files in a hex editor to see what's changed. Could be just a couple of bytes are different than expected.
https://www.csie.ntu.edu.tw/~r92092/ref/midi/
User avatar
Auzner
Member
 
Posts: 266
Joined: 2014-1-24 @ 11:28

Re: Error playing some MIDI files in Windows 3.1 Media Player

Postby Falcosoft » 2018-1-19 @ 07:58

There is general difficulty in converting XMI to MID properly.
Namely multi track XMI files can only be converted properly to type 2 midi files.
Multi track XMI and type 2 midi files are very different from 'normal' type 1 multi track midi files
since the tracks have to be played consecutively not simultaneously (as in case of type 1 midi files).
Very few midi players support type 2 midi files properly. There are players that simply refuse to play type 2 files while others simply ignore the type. Ignoring the type can make a big noise because of simultaneous playback of tracks, but this problem is not so obvious since most XMI files are single track.
viewtopic.php?f=24&t=48207&start=460#p592263
In FSMP you can check if your converted midi file is actually type 1 or 2.
User avatar
Falcosoft
Member
 
Posts: 460
Joined: 2016-5-21 @ 13:46
Location: Pécs, Hungary


Return to Sound

Who is online

Users browsing this forum: Eleanor1967, Synoptic, tgod and 1 guest