Author Topic: Any tools for converting MDRV98 (.MDT) music files to WAV or PMD (.M)?  (Read 17689 times)

unicode787plus

  • PC-98 Music Arranger
  • I fell in love with KAJA's PMD98 music format.
    • My YouTube Channel (includes Touhou music)
I have been looking all over Google for anything that could let me somehow convert .MDT files (some obscure FM music format used in TH01, which requires the MDRV98 driver) to some common format like WAV or PMD (the .M-file format used in TH02-05, which I can open with FMPMD2000 or some Winamp FMP/PMD plugin and then export to WAV), but so far nothing has turned up.
Live-recording Anex86 or Hoot audio with Total Recorder, Audacity, or any other audio-capture software is not the most elegant solution, because sound emulation isn't completely real-time which results in slight lag errors and timing mismatches (as I have already found out when comparing WAV live-captured from Hoot against WAV generated by FMPMD2000 or Winamp).
View my Touhou music slideshows in high definition (720p):
http://www.youtube.com/view_play_list?p=D55907D0551F4CDA

Momiji

  • Cya
What do you mean by lag errors?  I'm currently using Hoot and Audacity to sample instruments from Touhou music.

unicode787plus

  • PC-98 Music Arranger
  • I fell in love with KAJA's PMD98 music format.
    • My YouTube Channel (includes Touhou music)
I once recorded Hoot OPNA music (from the TH0x_*.M files inside the TH0x.ZIP packages) as WAV with some free audio-capture program called "Audio Recorder for Free", cropped out the initial silence, then compared it against the WAV files exported by both FMPMD2000 and the Winamp plugin inFMPMD directly from the TH0x_*.M files extracted from TH0x.ZIP. The files recorded from Hoot were slightly longer than the files produced by FMPMD2000 and inFMPMD, judging from the relative distance from one beat to the next in each timeframe, something like this:

...***+********+*********+********+********+*********+*******... Hoot
...***+********+********+********+********+********+********+... FMPMD2000/inFMPMD

(the "+" are the beats)

This is what I mean by lag errors, and the mismatches above are in the order of milliseconds. No change in pitch, however.
View my Touhou music slideshows in high definition (720p):
http://www.youtube.com/view_play_list?p=D55907D0551F4CDA

Momiji

  • Cya
I figured as much.  Not sure about the converter though, if you can find one I'd like to know as well. XD

unicode787plus

  • PC-98 Music Arranger
  • I fell in love with KAJA's PMD98 music format.
    • My YouTube Channel (includes Touhou music)
The only FM-to-WAV converters I found are for the OPN/OPNA *.M files (also called PMD files), those are FMPMD2000 (available in both Japanese and English) and the Winamp plugin inFMPMD as I had mentioned before:

FMPMD2000: http://www.fmp.jp/~c60/download.html
inFMPMD: http://www.proc.org.tohoku.ac.jp/befis/download/

Both of them require two DLL files, WinFMP.dll and PMDWin.dll, available on the same site as FMPMD2000. And the beauty of both FMPMD tools is that they allow me to turn on/off PPS interpolation and rhythms (so I can generate a WAV that resembles Anex86 output by turning off SSG & rhythms, and a WAV that resembles Speak Board output by turning on SSG and rhythms).

For MIDI files like the *.MMD files in TH02, I could find a command-line tool that converts MMD to RCP and a GUI tool that converts RCP to general MIDI:

mmd2rcp: http://www.geocities.jp/j37f8ds9/soft_mus/index.html
rcp2mid: http://www.vector.co.jp/soft/win95/art/se182775.html

However, mmd2rcp crashes when trying to convert MIMA.MMD (this is why I can't generate a MIMA.MID file, but I could generate MIDI from all the others, including GMINIT.MMD which doesn't seem to have an OPN or OPNA equivalent).

It's for the *.MDT in TH01 that I'm out of luck, because Google returns nothing but MDRV98 drivers for PC-98 (which only serve to play back the files but not to convert them, and anyway they ship with TH01).
« Last Edit: July 03, 2009, 04:15:45 AM by unicode787plus »
View my Touhou music slideshows in high definition (720p):
http://www.youtube.com/view_play_list?p=D55907D0551F4CDA

MIMA.MID is probably corrupt.
« Reply #5 on: August 10, 2009, 07:32:22 PM »
However, mmd2rcp crashes when trying to convert MIMA.MMD (this is why I can't generate a MIMA.MID file...

I think the MIMA.MID file is just corrupt somehow.  When I play it on Hoot, the result is a ridiculous chaotic cacophony which sounds like some sort of weird avant-garde symphony or something.  Instruments are totally out of sync, some play way too fast and others too slow, and after the initial burst of battling instruments there are long periods of silence.

None of the other SoEW MIDI tracks have this problem.

It's true that ZUN commented about the MIDI arrangement, "The tempo seems out of hand."  But I doubt this mess is what he meant.

Gpop

Re: Any tools for converting MDRV98 (.MDT) music files to WAV or PMD (.M)?
« Reply #6 on: August 10, 2009, 07:34:21 PM »
For any of the sound files I have I use either Switch Sound converter (most sound files) or Audacity (for .ogg, .wma and .mp3 only though).

Maybe give them a try?