Skip to content

XM6 VGM mod

Current version: 2.05 (updated on 2021-09-15)

Technical discussion about the VGM format, and all the software you need to handle VGM files.

Moderator: Staff

  • x68000 Offline
  • Posts: 2
  • Joined: 2025-04-25, 17:28:28

Re: XM6 VGM mod

Post by x68000 »

Hi, and thank you for the reply.

I have your fork of XM6 running with all required files and added the hdm files for Final Fight into the 2 drives.

I'm familiar with the x68000 as i've owned a system for a long time so understand which games utilise a MIDI soundtrack etc.

Once the game is working I have gone to Tools>Midi Dump option and chose a save file.

Do i need to play each individual track in a sound test to capture these or is there a way to extract the MIDI data directly from the disk?

Thanks again
  • User avatar
  • ValleyBell Offline
  • Posts: 1615
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Re: XM6 VGM mod

Post by ValleyBell »

The emulator's "Midi Dump" feature requires you to play each individual track.
It just captures everything that gets sent to the MIDI output (similar to S98 and VGM logs) and stores that into a MID file. (This also means that all tempo information is lost.)

---

I had a look at the files in Final Fight X68000:
  • disk 2 contains "BGM.SLD" and "BGM_MIDI.SLD"
  • Those files are LZSS-compressed. You can decompress them with my lzss-tool and the following parameters:

    Code: Select all

    lzss-tool -n 0 -C 1 -R 0x05 -d BGM_MIDI.SLD BGM_MIDI.DEC.SLD
    
  • My "x68k_sps_dec" unpacker unfortunately can't deal with that specific archive format. (It begins with a a list of 4-byte Big Endian file start offsets, followed by all data.)
  • Opening the unpacked SLD files in a hex editor reveals repeating patterns, but it is a custom format and not a standard MID file.
  • Our wiki has a X68000 Music Drivers page that lists the "M2system" sound driver for Final Fight.
    I know that M3system uses standard MID files, but it looks like M2system does not.
So right now your only chance to rip the music is to record each song one-by-one using the "MIDI Dump" feature of my XM6 mod.
  • User avatar
  • ValleyBell Offline
  • Posts: 1615
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Re: XM6 VGM mod

Post by ValleyBell »

not related to the emulator, but:

I updated x68k_sps_dec and it now can extract the Final Fight archives.

Code: Select all

x68k_sps_dec.exe BGM_MIDI.SLD unpack\BGM_MIDI.SQ2
And I wrote a converter for the "M2system sequencer-2" format called m2seq22mid that allows you to convert the SQ2 files to MID.

Code: Select all

for %f in (*.SQ2) do m2seq22mid.exe "%f" "%~nf.MID"
It's a pity that it seems to work with only 4 games though. "M2system sequencer" v1 uses a different format.

(And almost every S.P.S. game seems to use different variants of archive formats and compressions. Really annoying.)
Post Reply