vgmrips

The forum about vgm files
It is currently 2018-02-19, 6:01:36

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: 2013-03-07, 15:42:06 

Programmers Programmers
Contributors Contributors
Offline
User avatar

Joined: 2012-03-18, 16:59:23
Posts: 152
Location: Tomsk, Russia
OK, posted on dmpsoft's BBS.


Top
 Profile  
 
 Post subject:
PostPosted: 2015-10-10, 18:14:06 

Contributors Contributors
Offline
User avatar

Joined: 2015-08-30, 14:24:00
Posts: 72
Location: Scotland
When converting an S98 to VGM, the first FM note does not play. Why is this? Or am I just not converting it properly? Or is my VGM player not playing it correctly? :bash:

I have attached the original S98 file and the VGM file for reference.


Attachments:
manji_07.S98 [271.9 KiB]
Downloaded 42 times
manji_07.vgm [286.44 KiB]
Downloaded 47 times

_________________
I'm HarmoDevil. Formerly Dr Devil, but I still use the drdevil username here.

Check out my Soundcloud.

I might get back to VGM ripping someday.
Top
 Profile  
 
 Post subject:
PostPosted: 2015-10-11, 2:20:59 

Contributors Contributors
Bug catchers Bug catchers
Offline
User avatar

Joined: 2011-12-28, 19:52:40
Posts: 206
Location: Paris, France
Did you record it yourself, or is it an existing S98 rip? I've found that many old S98 files don't convert properly to VGM, even with the Japanese tool S98v1tov3 (S982VGM only supports v3 version, if I'm not mistaken).

_________________

Sega PCM [1985/1989] | Namco C140 [1987/1990] | Hudson HuC6280 [1987/1995] | Yamaha YM2608 [1988/1996] | Oki MSM6295 [1988/1998]


Top
 Profile  
 
 Post subject:
PostPosted: 2015-10-11, 9:04:25 

Contributors Contributors
Offline
User avatar

Joined: 2015-08-30, 14:24:00
Posts: 72
Location: Scotland
It was an existing rip.

Hopefully, in the future, someone will modify the program so that old .s98 files will convert to .vgm properly. :(

_________________
I'm HarmoDevil. Formerly Dr Devil, but I still use the drdevil username here.

Check out my Soundcloud.

I might get back to VGM ripping someday.


Top
 Profile  
 
 Post subject:
PostPosted: 2015-10-11, 11:12:04 

Staff Staff
Programmers Programmers
Musicians Musicians
Contributors Contributors
Offline
User avatar

Joined: 2011-12-01, 20:20:07
Posts: 2904
Location: Germany
There are two things that can cause oddities:
  1. The YM2608 can run in YM2203 mode and does this by default (like the OPL2 fallback on OPL3). S98 files seem to lack the YM2608 enable command pretty often. (56 29 80 in VGMs)
    I'm pretty sure this is the issue, btw. You can fix this by hex-editing the VGM. (I think just overwriting the first command should work.)
  2. The VGM you posted has LOTS of commands at sample 0. This might be due to the way the S98 was trimmed. MAME's sound emulators sometimes don't like that. (I didn't see any KeyOn command before the loop point though. Those cause the most problems, so it should work.)
From what I could see in a vgm2txt, the song doesn't seem to use the extra YM2608 channel at all, except that it sends a few KeyOff commands to those channels. (VGM file offset 0x55D to 0x572) I assume that if you would remove those, you could as well make a YM2203 VGM.


Top
 Profile  
 
 Post subject:
PostPosted: 2015-10-11, 17:33:15 

Contributors Contributors
Offline
User avatar

Joined: 2015-08-30, 14:24:00
Posts: 72
Location: Scotland
Sounds like good ideas to me. Unfortunately, I'm not very good at hacking so it will take a long time before I fully understand the ideas. :lol:

_________________
I'm HarmoDevil. Formerly Dr Devil, but I still use the drdevil username here.

Check out my Soundcloud.

I might get back to VGM ripping someday.


Top
 Profile  
 
 Post subject:
PostPosted: 2018-01-18, 16:23:46 
Offline

Joined: 2017-11-28, 19:45:47
Posts: 5
Location: Tokyo, Japan
Hi,
S982.exe 0.3 is newest?

I have Hoot's ssg_mix information.
It is parameter for fmgen's psg.cpp


void PSG::SetVolume(int volume)
{
double base = 0x4000 / 3.0 * pow(10.0, volume / 40.0);
for (int i=31; i>=2; i--)
{
EmitTable[i] = int(base);
base /= 1.189207115;
}
EmitTable[1] = 0;
EmitTable[0] = 0;
MakeEnvelopTable();

SetChannelMask(~mask);
}


>pow(10.0, volume / 40.0)

It means 2 x power decibel.

derived these value
PC-8801 10^(-2/40) -> 89.1 %
PC-88VA 10^(-4/40) -> 79.4 %
PC-9801-26(K) 10^(-13/40) -> 47.3 %
PC-9801-86 10^(-18/40) -> 35.5 %


Top
 Profile  
 
 Post subject:
PostPosted: 2018-01-25, 2:20:09 
Offline

Joined: 2017-11-28, 19:45:47
Posts: 5
Location: Tokyo, Japan
>I did convert some Sharp X1 s98 files (PSG only) with S982, but it has become a treble.

Some Hoot's S98-out have problem.

I did S982 with -hootx1 option.

The output's VGM header reports,
YM2151 -> 4MHz
YM2149(AY-3-8910) -> 4MHz <- It's wrong, It must be 2MHz.

I patched to wrong VGMs, it become correct sounds.


Top
 Profile  
 
PostPosted: 2018-02-09, 3:47:49 
Offline

Joined: 2017-11-28, 19:45:47
Posts: 5
Location: Tokyo, Japan
I wrote C version converter.
It was still under development, and not supported multi-chip.

Usage
S982VGM filename [master volume] [ssg volume]

volume option needs percent value.
master volume changes VGM header's VolumeModifier.
ssg volume changes Extra header's Volume.

I'll attach binary and source.
Source code needs vgmtools's header.
I was compiled by VC2017


Attachments:
S982VGM.zip [14.01 KiB]
Downloaded 7 times
S982VGM_src.zip [3.72 KiB]
Downloaded 5 times
Top
 Profile  
 
 Post subject:
PostPosted: 2018-02-14, 11:55:46 
Offline

Joined: 2017-11-28, 19:45:47
Posts: 5
Location: Tokyo, Japan
New version of S982VGM.
I've implemented dual-chip feature but not yet tested. :wink:

These features not yet supported.
DATA block
ADPCM
TAGs


Attachments:
File comment: Source Code
S982VGM_src.zip [4.81 KiB]
Downloaded 3 times
File comment: Binary
S982VGM.zip [14.99 KiB]
Downloaded 3 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group