From shikadi.net
Jump to: navigation, search
Use Camoto instead
DRO2MIDI has been largely superseded by Camoto, which can convert between DRO, MIDI and many other formats by using the gamemus utility. You can almost convert files in real time while they are playing with Camoto Studio, however this feature still needs a bit more work before it is fully functional.

DRO2MIDI converts DOSBox Raw OPL captures (.dro files) into MIDI files. It also converts id Software IMF and Rdos RAW captures. It's based on Guenter Nagler's IMF2MIDI program, but with many enhancements (OPL rhythm-mode instruments and pitch bends are now converted.)

Older versions

Since MIDI instruments are quite different to OPL instruments, the program needs some help to map OPL instruments across to MIDI patches. When a conversion is first done, the program will print out all the unknown register codes. These can be copied into inst.txt, which is where all the mappings are stored. A patch number can then be assigned (or a drum note number for percussion instruments.) The conversion is then re-run, and the program picks up the new instruments and assigns them to the corresponding MIDI patches.

The conversion is by no means perfect, so subsequent editing with a good MIDI sequencer (such as Rosegarden) will be required - however, as a means of extracting the notes from a song captured in DOSBox, it works very well.

See also


.sbi patch

From bsa @ 2013-11-14 23:56

Just letting you know, I've patched dro2midi so that it can write .sbi instrument files:


Thanks for the great util.

DROv2 support

From bsa @ 2013-11-09 14:03

Thanks for making this great utility.

Are there any plans for adding support for DRO v2.0 format so we can use the latest DOSBox? Are there some major changes in DRO v2.0 that would make it difficult?

Also, how about supporting saving of instruments in a format supported by Adlib trackers?


Thanks again!

From Malvineous @ 2013-11-15 07:37

Glad you find it useful! I'm not maintaining DRO2MIDI any longer as it has been succeeded by Camoto. Camoto still needs a bit more work before it reaches the level of functionality of DRO2MIDI, but it will allow you to perform conversions in real-time while a song is being played, which will make it much easier to identify instruments.

Camoto also supports many more file formats, and can convert between CMF, IMF, WLF, DROv1, DROv2, MID, RAW, and some game-specific music formats too.

Unable to run - command not recognised

From Scilicet @ 2013-02-08 10:01

I'm having issues running the program. When I try to enter the folder name "cd dro2midi-1.5-win32," the program tells me that it is "not recognized as an internal or external command, operable program, or batch file." What should I do?

From Malvineous @ 2013-02-09 08:44

Probably best to ask on a Windows support forum as I can only help once you have gotten the program to run - sorry.

Unable to run - window flashes, again

From Southpark2010 @ 2012-09-07 05:24

I can't seem to run it. It only flashes for a second, then goes away.

From Malvineous @ 2012-09-07 10:05

Please see the comment thread before yours for the answer :-)

Unable to run - window flashes

From Anonymous @ 2012-03-24 12:27

ok so this works in win7? ive changed the compatibility and im running it as admin but it flashes up on the screen for a second and disappears. help?

From Malvineous @ 2012-03-24 11:46

It's not a GUI program, you have to run it from the command prompt. Google can help here if you're not sure how to run command-line programs.

Unable to run - cannot be run in DOS mode

From Anonymous @ 2011-12-09 12:11

I have a problem.

First of all:

-I'm assuming that this is used with DOSbox so I'm using 0.74 but I have 0.72 as backup.
-The DRO2MIDI version is 1.5-Win32.
-I'm using Windows 7, if it matters.

Every time I try to convert a IMF or WLF file, DOSbox keeps telling me that [DRO2MIDI] cannot be run in DOS mode. I also tried it on an older version (0.72) but I still get this message. I don't know what I'm doing wrong, if at all.

Thanks in advance.

From Malvineous @ 2011-12-09 20:54

The "win32" in the DRO2MIDI version means it's a Windows program :-) You have to run it from the command line within Windows, it won't work under DOS.

The DOSBox version is because DRO2MIDI only supports version 1 of the .dro file format, whereas recent versions of DOSBox create version 2 .dro files. So you need to perform the .dro *capture* with the old version of DOSBox, then perform the conversion from the Windows command line.

From Anonymous @ 2011-12-09 21:53

OK, that helped.

And now, a new problem. *sigh*

It keeps telling me that it cannot open the patch, drum and inst TXT files (which are inside the same folder as the program) and it also cannot find the IMF or WLF file. (which are also inside the same folder as the program)

Again, I don't know what I'm doing wrong.

From Malvineous 2011-12-09 22:02

DRO2MIDI looks for those files in the current directory. You'll need to use the "cd" command to change the current directory to the folder containing the TXT files, otherwise DRO2MIDI won't be able to find them.

From Anonymous 2011-12-09 22:36

...There we go. Thanks!

Request for DROv2 support

From dj.tuBIG/MaliceX @ 2010-11-27 00:53

Hi, I've used your DRO2MIDI and I must say, it's an EXCELLENT tool you've made to be able to convert (well, interpret) raw OPL FM data from DosBOX to MIDI format, and having the notation spot on in pitch and all. It's like a GYM2MID or VGM2MID type of tool but somehow it just works a bit better.

Of course there's a few issues, I notice the current version doesn't support the new .DRO format introduced with the latest version of DosBOX. Is there any foreseeable date for an update to this utility to be able to handle .DRO 2.0? (I don't think even AdPlug supports it. Darn.)

Thanks in advance.

From Malvineous 2010-11-27 09:23

Thanks for the kind words! I have no plans to add support for DROv2 to DRO2MIDI, as I am currently working on a replacement for it (with a point and click interface) which will allow instruments to be converted in real-time while a song is playing. I'm hoping this will make it much easier to perform conversions. The replacement will be part of the Camoto suite of tools, if you want to keep an eye out for it.

The latest version of AdPlug does support DROv2 though - I know because I wrote the code for it ;-)

Looking forward to Camoto

From Rich Nagel @ 2011-03-17 17:30

I'm really looking forward to the updated DRO2MIDI features of the upcoming Camoto suite of tools :)

From Malvineous @ 2011-03-17 22:10

Glad to hear it! I'm hoping it won't be too much longer now. The format converters are pretty much done, it's just the UI left to go. And figuring out how to compile a Windows version ;-)

Good luck

From Alistair 2011-03-21 09:23


Alistair here (Sierra music guy, also major Apogee music lover, but been stifled due to former lack of IMF->MIDI possibility), I was around the community a while ago. Still excited about you doing all this, very excited about Camoto.

You're a great talent and I believe the only way we'll see a lot of these old games get MIDI transcriptions and subsequently people like myself recording them digitally with higher quality instruments and reorchestrating the old classics. Don't forget how important you are, even Rob Wallace says on his homepage 'I get asked about the Monster Bash MIDI's every year'. it was 18 years ago!!

Good luck, and email me anytime, would love to hear from you.

- Alistair

From Malvineous 2011-03-22 08:56

Thanks for your kind words! I wouldn't mind some help from a proper musician once things are a little further along, as I'm not entirely sure of the best way to fit the list of notes into measures and bars, so the MIDI file can be used to print sheet music. I have a few ideas but they might be more manual than is necessary - it'd be nice if it could be done fairly automatically.