I've been (re)playing Moonring recently, and while the officially released soundtrack is good it only consists of 13 tracks rather than the full 60. I wanted ALL of them, and I found a way to do it.

1) Extract the raw audio (xm and it) from the game executable. (It's made with LÖVE so you can literally open Moonring.exe like an archive file.)

2) Use xmp to export each audio file to a WAV file.

3) Use sox to convert each WAV to FLAC.

4) Create a tsv file for all the tag data. One row for each file, one column for each tag, the first column corresponding to the FLAC file's name.

5) Use awk to find and parse the tag data for each FLAC file.

6) Use metaflac to tag each FLAC file using the awk output.

7) Import all my new FLACs into Navidrome.

8) Grab the header image off of Steam (using curl of course) for the album cover art.

#Moonring #VGM #Linux

One thing I learned from this is that I am really not as familiar with awk as I probably should be.
@faoluin xm and it are really formats I wasn't aware of. Nice approach overall though.
@NafiTheBear Yeah they're formats produced by music tracker programs. I don't know much about them either, I had to do some digging to figure out how to convert them.