Updated VGM input plugin v0.35

Talk about anything and everything about Sega's 16 Bit console and its addons here - hardware, games, memories. You name it.
Post Reply
User avatar
Yawackhary
Posts: 9
Joined: Wed Aug 09, 2006 8:06 am

Post by Yawackhary »

I just tried ripping a Sega CD vgz into wav just fine with no audio change using the in_vgm 0.35 plugin on Winamp as a test, it might be the mp3 ripping plugin or something? Can you even play the songs normally on Winamp with the in_vgm plugin?

The vgz rip of Sonic CD only has the past tracks due to that they use the PCM chip. The redbook rips from the Sega/Mega CD version that are lurking about do not have the past tracks for this reason, however the PC version do have the past tracks as redbook.

I don't know the grounds but search for Sonic CD for Windows 95 OST and you should find them. Either that or a Sonic site would have mp3s of them if you want to chiptunes on an mp3 player.
User avatar
Dark Pulse
Board Regular
Posts: 141
Joined: Wed Jun 28, 2006 2:16 am
Location: Buffalo, NY, USA
Contact:

Post by Dark Pulse »

Monkeymook wrote:I use the latest version of Lame when ripping to mp3, but most of the time, I just rip to .wav using xmPlay, then convert to mp3 using dBPoweramp. I haven't had any issues regarding volume when ripping.
This would be what I'd recommend as well, though I've never had problems making WAVs from the Nullsoft Disk Writer plugin.
Image
RT-55J
New Around Here
Posts: 3
Joined: Mon Mar 14, 2011 12:39 am

Re: Updated VGM input plugin v0.35

Post by RT-55J »

Using the plugin on XMPlay 3.6.0.1, I am getting the following problems:

1. The plugin does not save/load any of my settings.
2. When viewing the plugin file info for a song, all the fields (Title, Author, etc.) are blank.
3. SegaCD songs are completely silent and move on to the next song after 5 seconds.
User avatar
Dark Pulse
Board Regular
Posts: 141
Joined: Wed Jun 28, 2006 2:16 am
Location: Buffalo, NY, USA
Contact:

Re: Updated VGM input plugin v0.35

Post by Dark Pulse »

Hmm. It's possible ValleyBell may have accidentally broken XMPlay support.

As he does post on here, however, I'm sure he'll come across this topic and see what he can do about it. :)

Also, have you tried using the latest beta plugin? I believe he said things may not work 100% under 0.35, and I believe he mentioned certain Sega CD games as possibly being one of those things affected.
RT-55J
New Around Here
Posts: 3
Joined: Mon Mar 14, 2011 12:39 am

Re: Updated VGM input plugin v0.35

Post by RT-55J »

That solves problems #2 and #3 at least, though problem #1 still remains (which less of an issue since the now since everything doesn't sound unnaturally quite at the default volume settings anymore).

Granted, the updated (rewritten?) sound emulation breaks some songs (most obviously, Carousel from Sub-Terrania), though I guess that's to be expected since it's a beta.
ValleyBell
Board Regular
Posts: 128
Joined: Mon Aug 30, 2010 7:10 am

Post by ValleyBell »

I don't think I broke XMPlay support, it's more of "it didn't yet work".
Although I replaced large parts of in_vgm, I did only very few changes at the GUI part. And none that could've affected XMPlay support.
And it's 0.35 beta, because I used the source of in_vgm 0.35 beta (from sourceforge.net). That's because the offical 0.35 source release missed some files, making me unable to compile it in that state.

@RT-55J: You made me looking at the YM2612 sound core the 10th time or so. And I just found what causes the issue.
Again, it actually isn't the sound core, but the vgms, sample 0 to be exact. (Such things always remind me, why I avoid VGMTool for trimming at all cost.)

Code: Select all

0x000002B3: 52 28 F0    YM2612:      Channel 0 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002B6: 52 28 F1    YM2612:      Channel 1 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002B9: 52 28 F2    YM2612:      Channel 2 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002BC: 52 28 F4    YM2612:      Channel 3 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002BF: 52 28 F5    YM2612:      Channel 4 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002C2: 52 28 F6    YM2612:      Channel 5 Key On/Off: Slot1 On, Slot2 On, Slot3 On, Slot4 On
0x000002C5: 52 28 00    YM2612:      Channel 0 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off
0x000002C8: 52 28 01    YM2612:      Channel 1 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off
0x000002CB: 52 28 02    YM2612:      Channel 2 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off
0x000002CE: 52 28 04    YM2612:      Channel 3 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off
0x000002D1: 52 28 05    YM2612:      Channel 4 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off
0x000002D4: 52 28 06    YM2612:      Channel 5 Key On/Off: Slot1 Off, Slot2 Off, Slot3 Off, Slot4 Off

That's the vgm2txt of Sub-Terrania - Carousel (I ran it through vgm_cmp before to make reading easier). As you can see all channels receive a KeyOn and KeyOff at the same sample (and they get other KeyOns later, again without delay).
And that's exactly the problem. The chip gets flooded with commands, but doesn't get time to process them. For some reason that screws up the entire emulation.
I changed the KeyOn commands above to KeyOff and the sound was correct. (I won't expect anyone to do that as I did that only for testing, but I want to mention that it works.)

I made a workaround in the YM2612 sound core. Download a fixed VGMPlay to test it here. (I actually wanted to attach it, but for some reason I don't see the button.)
User avatar
Dark Pulse
Board Regular
Posts: 141
Joined: Wed Jun 28, 2006 2:16 am
Location: Buffalo, NY, USA
Contact:

Re:

Post by Dark Pulse »

ValleyBell wrote:I made a workaround in the YM2612 sound core. Download a fixed VGMPlay to test it here. (I actually wanted to attach it, but for some reason I don't see the button.)
It should be right under the "Preview/Draft" buttons. There's a tab marked options, and then a tab marked "Upload Attachment." Do you see it?

If not, I may have to adjust usergroup permissions.
User avatar
dissident93
Been Here for a Bit
Posts: 41
Joined: Mon Feb 21, 2011 2:06 pm

Re: Updated VGM input plugin v0.35

Post by dissident93 »

I can't volume adjust the YM2612 anymore. Any reason why this feature was removed?
ValleyBell
Board Regular
Posts: 128
Joined: Mon Aug 30, 2010 7:10 am

Re: Updated VGM input plugin v0.35

Post by ValleyBell »

I removed it because I was too lazy to port it to the new playback system.
Also I calculate the volume of YM2612 and SN76489 correctly and I thought that makes the volume-control useless.

Instead I planned a global volume control, but currently you can only use the "Overdrive"-chekbox or VGMPlay.
I plan to update in_vgm next week.
User avatar
dissident93
Been Here for a Bit
Posts: 41
Joined: Mon Feb 21, 2011 2:06 pm

Re: Updated VGM input plugin v0.35

Post by dissident93 »

Just don't forget to add the volume adjust! haha

Also, how did you learn so much about this type of stuff? I'm curious.
Post Reply