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: 1602
  • 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.
Post Reply