Skip to content

Problem with VGMTools

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

Moderator: Staff

  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Problem with VGMTools

Post by 2ch-H »

Problem of VGMTools,
Because there is not a VGMTools topic, I post it here
Edited by Tom: moved this post to a new topic (it was in the MAME topic). It is fine if you create a new topic to report a bug or to ask for help.

There is vgm where a sound disappears when I use vgm_trim

example 1:
Edit: link was removed.

Sega MegaCD/SegaCD - Cosmic Fantasy Stories - Opening
Before use :01 Opening.vgm
After use :01 Opening_trimmed.vgm
Some sounds become the silence.


example 2:
Edit: link was removed.

Turbo CD/PC Engine CD-ROM - Nobunaga no Yabou - Bushou Fuuunroku - Opening
Before use:op.vgm
After use :op_trimmed.vgm
It becomes the long silence.

vgm which I edited in reference to txt which I output in vgm2txt
op_vgm2txtopt.vgm
In this place, a sound is played.

Will it be correctable?
Last edited by 2ch-H on 2012-05-13, 18:04:32, edited 1 time in total.
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Problem 1:
The next version of vgm_trim has an option that put some sort of chip save state the the beginning of the VGM, that fixed the problem.
The game doesn't set the Panning registers and they are 0 (silence) by default.

btw: When I listened to the files (on Project2612) first, I thought it uses the YM2612 DAC, because it sounds so terrible, but I found out that their samples are incorrect. (It uses 0x00 as the minimal negative sample value, which is actually 0xFE, and that corrupts the sound.)
I already thought about implementing making a "fix" for it, because it sounds nice this way.


Problem 2:
I don't know what I have to do to fix that. (At least not yet.)
One of the reasons I still haven't yet released new versions of my VGM tools is, that I have to test some chips (i.e. making a pack).
If I had made at least one HuC6280 vgm, vgm2txt wouldn't print such a mess like it currently does, btw.

Anyway, I'll see if I can fix it.


EDIT: Found it!
I just added C6280 support to vgm2txt and found what's causing the silence:
The chip has a "global volume" register and this one is missing in the trimmed file.

Post by Sonic of 8! »

ValleyBell, can you post the vgmspec170.txt file here?
オモいカルチャーをオモチャーと言う - 細野晴臣
  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Post by 2ch-H »

Thanks ValleyBell.
I wait for the next update.

btw: Because it released it in an unfinished state to keep the appointed date of delivery,
there are very many bugs in Cosmic Fantasy Stories.
Probably I think that it is caused by it that a sound is funny.
If the correction of the sample is possible, please fix it
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Sorry, I can post a vgmspec170.txt, because I haven't documented anything related to v1.70. (That's because I often do the implementation first and the documentation later.)

But you can download the vgmspec161.txt from SMSPower.
In case you already downloaded it: I changed the Q-Sound commands because there were terribly unhandy. (3 commands for 1 write)
Post Reply