Skip to content

VGM Logging Help

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

Moderator: Staff

  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

VGM Logging Help

Post by bosco »

Hi, I'm new to VGM logging and wondered if I could get some advice.

I've installed the MAME VGM mod and edited mame.ini to write VGMs. Works great and so simple to use. :)

I've only tested one game so far, Jumping Jack by Universal, but I've noticed something unexpected. When I listen back to just the channel playing the JJ melody it periodically drops out and is replaced with sound effects and the missing short sections of melody appear on a different channel. The same is true for the bass line. Is there a way to stop music criss-crossing channels or is this hardware accurate?

Also I tried exploring Service Mode in case there was a sound test which played music but after many attempts I couldn't get Service Mode to trigger. Pressing TAB did bring up some dip switch settings so maybe this is Service Mode?

Any advice on ripping music from mame games appreciated.

Thanks.
  • User avatar
  • BoxCubed Offline
  • Posts: 142
  • Joined: 2021-05-08, 17:21:54

Post by BoxCubed »

If I have to guess, it's probably due to how the game handles the sound. There are certain arcade games that have multiple of the same chips, but the VGM format only supports up to two each for certain chips. So, some of the music is handled on the third and/or fourth chips which is why you don't hear some of the music and you get sound effects instead.
  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

Post by bosco »

Jumping Jack uses four SN76489A chips so you may be onto something @BoxCubed although MAME actually outputs two VGM files (two chips per file) so the output from all four chips does appear to be being captured.

The puzzling bit for me is still why, for very brief intervals, music switches channels and back again (I'm thinking it might be occurring when a certain sound effect triggers such as the player knocking a monkey off a see-saw). With twelve tone and four noise channels available to the game's programmers I would expect there to be dedicated channels for music and effects.

Of course the VGMs may be fine and WinAmp could be importing them incorrectly?
  • User avatar
  • ValleyBell Offline
  • Posts: 4767
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Actually, having many channels of the same type is the point where dynamic channel allocation begins to get useful.
So it would make sense that the assignment between internal "music channel" and "sound chip channel" can change depending on what is free.

Although I haven't seen that with PSG chips yet (except for GEMS on the MegaDrive), just using the next free channel is very common with MIDI-based formats. (XMI/MID playback OPL, Sega System 32 and Model 2 sound formats)
  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

Post by bosco »

I completely agree however what I'm hearing is data from two or more active channels being jumbled up mid song if that makes sense.

It might be that Jumping Jack's sound configuraton confuses the VGM exporter or the VGM plugin for WinAmp isn't loading the data correctly.
  • ctr Offline
  • Posts: 492
  • Joined: 2013-07-17, 23:32:39

Post by ctr »

I doubt it's an issue in the VGM logger. If it was, I think it would affect a lot of other games, for example all games that used multiple AY chips. I logged music from Gyruss (5x AY-3-8910) and had no issues. (Though I used an earlier version of MAME with the VGM mod that I modified for the DAC logging).

Issues in the VGM player plugin would typically result in completely broken sound. Not just tracks jumping around between channels (which imo, sounds a lot more like a sound driver quirk in the original game).
  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

Post by bosco »

Fair enough. :)

When you guys are logging VGM from MAME is it usual to sit and play the game or is there a smarter way to do it, using a manufacturer's test mode or something?
  • User avatar
  • ValleyBell Offline
  • Posts: 4767
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

When possible, we use the sound test from the "Service Mode" that you can activate most Arcade games.
Not all games have a sound test though and some don't let you listen to songs in full.
In such cases, we develop small hacks that lets us log the songs without playing through the game. If you need help with such things, you can just ask in the chat.
  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

Post by bosco »

Thanks for the info @ValleyBell.

Still trying to figure out how to access MAME VGM service mode. Pressing F2 once followed by F3 to reset the game doesn't work for me.
  • ctr Offline
  • Posts: 492
  • Joined: 2013-07-17, 23:32:39

Post by ctr »

Not all games have a service mode. If the following don't work, then it's very likely that there is no service mode

- press tab to bring up the MAME OSD, go to DIP switches and toggle the option called "Service Mode", "Diagnostics" or similar
- press F2 as mentioned
- holding F2
- press F3 (reset) while holding F2
- holding 9 (service credit)

Some IREM games require you to press both start buttons after the "ROM OK/RAM OK" screen (when the service DIP switch is on, it will otherwise be stuck on that screen)
  • User avatar
  • Dario011 Offline
  • Posts: 115
  • Joined: 2019-12-23, 0:24:21

Post by Dario011 »

Wow, I didn't know that Irem games have a Service Mode, but hidden (at first sight when I activated it in switch, it just stayed in RAM OK/ROM OK, and did nothing), and that lets you see the sound, but not in a good way, just put the mode and the music plays, and you can not stop it, and when you change it plays quickly, and there are some soundtracks that I would be interested in doing as Fire Barrel (Air Assault), Armed Police Unit Gallop (Cosmic Cop), and make them in MAME.
  • bosco Offline
  • Posts: 10
  • Joined: 2019-04-08, 0:58:43

Post by bosco »

I can see it's necessary to treat each machine on a case by case basis.

I did manage to access service mode on one game (maybe Bubble Bobble) but not others. Once in service mode I was left staring at a grid pattern. Tried hitting different keys but couldn't figure out how to navigate.

Not sure I'm knowledgable enough for this kind of thing but I appreciate the advice. :)
Post Reply