Skip to content

VGM Tool Collection

All you need to work with VGMs. Last update: 2022-12-30

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

Moderator: Staff

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

Post by ValleyBell »

You can decompress the VGZ files using standard tools like gzip, 7z or WinRAR.
And unless you want to hex-edit the VGMs, there should be really no reason to decompress them, as all programs that handle VGMs should support them as VGZ as well.
  • rick_z Offline
  • Posts: 3
  • Joined: 2022-03-28, 14:12:19

Post by rick_z »

Hello,

So, regarding of my question, I wasn't talking about the zip file we can download directly from the browser, sorry if I did not explained well, my mistake. I was talking about the sound file. It has been compressed before the zip file I suppose.

For this file here:

https://vgmrips.net/packs/pack/dragon-s ... o-system-2
Capture.PNG
you will notice that the original file was compressed. So, my question would be how can I get the file without been compressed. (Not the zip file, the original file).

Thank you very much :)
  • User avatar
  • ValleyBell Offline
  • Posts: 1602
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

vgm_cmp "compresses" by removing redundant sound chip instructions. vgm_sro "compresses" by removing unused data from the sound chip sample ROMs. (e.g. voice clips not used by the music)
Both tools remove data and it is not possible to reverse that process.
  • rick_z Offline
  • Posts: 3
  • Joined: 2022-03-28, 14:12:19

Post by rick_z »

Thank you very much, I really appreciate it :)
  • omrise Offline
  • Posts: 2
  • Joined: 2022-04-01, 16:50:19

Post by omrise »

Hello

Is the latest version of Vgm2mid 2013-09-09?
I would like to have the latest version after that.

thank you.
  • User avatar
  • ValleyBell Offline
  • Posts: 1602
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

There is no newer version. I didn't work on vgm2mid since that date.
  • omrise Offline
  • Posts: 2
  • Joined: 2022-04-01, 16:50:19

Post by omrise »

thank you for your answer.
It's a shame, but I hope it will come back someday.
In this version, there are some midi parts where the score is missing, so please improve it.
  • User avatar
  • (Jazz) Jackalope Offline
  • Posts: 131
  • Joined: 2022-04-23, 22:53:04
  • Location: On the YM2612 chip

Post by (Jazz) Jackalope »

Feature suggestion for vgm_tt: don't transfer tag parts the user specifies at run time (like Ripper).
I'm trying to add information found on the forums easier to find on the wiki. If I forget to credit you, please let me know (or edit the article if you don't want to wait).

WIPs: 2023-10-30
  • User avatar
  • xKingDukeNukemx Offline
  • Posts: 23
  • Joined: 2021-12-04, 4:27:23
  • Location: Underground

Post by xKingDukeNukemx »

So you told me to post here in this topic here regarding VGM_Trim not properly transfering the YM2203 clock divider settings. So yeah, I hope this gets fixed soon.

"Reposted" Added the example Vgms in GNG.zip.
Attachments
GNG.zip
(54.6 KiB) Downloaded 1256 times
Nukem All
  • andlabs Offline
  • Posts: 135
  • Joined: 2011-12-04, 22:00:12

Post by andlabs »

I can provide the same for Enduro Racer later.

EDIT Okay; in the untrimmed version the audio starts 18 seconds in.
Attachments
endurobug.zip
(138.54 KiB) Downloaded 1189 times
  • User avatar
  • (Jazz) Jackalope Offline
  • Posts: 131
  • Joined: 2022-04-23, 22:53:04
  • Location: On the YM2612 chip

Post by (Jazz) Jackalope »

I know that some tools take a second filename for output like vgm_trim; vgm2txt doesn't(?). If you don't mind, it would be kind of helpful to rename output for that program too.
I'm trying to add information found on the forums easier to find on the wiki. If I forget to credit you, please let me know (or edit the article if you don't want to wait).

WIPs: 2023-10-30
  • User avatar
  • ValleyBell Offline
  • Posts: 1602
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

I just updated the package with precompiled VGM tools.

It is now up to date with the GitHub source code repository and and features various improvements/fixes, including:
  • the addition of a few tools:
    • optvgm for MegaDrive PCM optimization
    • ctr's dacopt
    • vgm_ren: automatic file naming using playlists and VGM tags
    • opt_oki for X68000 ADPCM optimization
  • vgm_trim: K053260, WonderSwan support
  • vgm2txt: K054539, WonderSwan support, it also lets you specify the output file now. ("-" is terminal standard output)
  • vgm_stat finally handles times >= 1 hour correctly
  • various mostly minor fixes to other tools, especially vgm_cmp and vgm_sro
  • User avatar
  • ValleyBell Offline
  • Posts: 1602
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Re: VGM Tool Collection

Post by ValleyBell »

I finally made something that has been looooong overdue:

I wrote a tool to set the VGM v1.70 "extra chip" headers. Unlike the other tools, this is a Python script and requires Python 3.7 or higher.

The way it works is like this:
  1. open "vgm-chip-volume.py" in a text editor
  2. set the chip clock and chip volume settings in the "ChipClockHeaders" and "ChipVolumeHeaders" lists
  3. save the script and run the tool on all VGMs, using

    Code: Select all

    python "vgm-chip-volume.py" "input.vgm" "output.vgm"
I recommend to set an "absolute" volume for all the main chips (positive values) and a "relative" volume for the YM2203/2608 SSG (negative values).
The volume can be set as floating point (1.0 = 100%) or as 8.8 fixed point (0x100 = 100%).

Also, if you take volume values from MAME, please "normalize" them so that one of the chips has a volume of 100%. (MAME commonly uses volume values like "0.6 and 0.3", because they want to definitely not have clipping. I prefer "1.0 and 0.5" instead.)
  • User avatar
  • Corak Offline
  • Posts: 19
  • Joined: 2015-11-04, 11:39:36
  • Location: Cimmeria, Simferopol
  • Contact:

Re: VGM Tool Collection

Post by Corak »

Is there any vgm2dro solution?
I need dro format, because there is good editor (drotrim) and dro2mid convertor.
  • User avatar
  • ValleyBell Offline
  • Posts: 1602
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Re: VGM Tool Collection

Post by ValleyBell »

I don't think there is one.
I also never had a reason to write a vgm2dro tool, because DRO is just worse than VGM with flexibility and timing accuracy. (and it doesn't have proper loop support either)
Post Reply