vgm_cnt

From vgmrips

The VGM Command Counter counts the amount of commands and notes issued for each chip in a VGM file. (One VGM at a time per run.)

Identifying Unused Chips

Chips with 0 for both Commands and Notes are unused.


The SEGA VDP PSG is probably unused if it has 0 Notes. Compare the following examples.

The PSG is most likely used:

SN76496 #0: 34238 Commands, 7 Notes
YM2612 #0: 1679085 Commands, 2997 Notes

The PSG is most likely not used:

SN76496 #0: 59061 Commands, 0 Notes
YM2612 #0: 154335 Commands, 2180 Notes


When you are sure a chip is unused, you can use vgm_ptch to strip it from the VGM and reduce the file size. (You should probably do this during the optimizing step.)