DonPachi arcade version high quality BGM mod [emulation]

A place for people with an interest in developing new shmups.
Post Reply
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

Problem: the BGM quality is kinda bad (8khz) in the arcade version of this fine game.
Last November (2014) I came up with the idea to use the PS1 or Saturn cd-quality soundtrack, but I wasn't too sure how to do it.
The other day my buddy iq_132 came up with a way to use the cd-quality soundtrack from the PS1 or Saturn version of DonPachi in the arcade version of the game by translating the calls to the oki msm6295 chip to our sample engine. In awe and almost total disbelief, I ended up staying up till 6am that night/morning tweaking it to perfection and working on integration with the emulator. The technique behind it works similar to how Fireshark uses the recorded samples for the music/sfx due to the encrypted/unavailable mcu. Bonus: Everything is perfectly synched, even with savestates(!) :)
Get FBAlpha (emulator) @ http://www.fbalpha.com
How-to make/get the samples needed: http://pastebin.com/RD2iM9KG

Here's some samples:
DonPachi standard http://sharesend.com/otmnazdo
DonPachi w/hi-q mod http://sharesend.com/78g7xg7j

best regards,
- dink (fbalpha fan, fbalpha dev )
http://www.fbalpha.com
Last edited by dink on Fri May 01, 2015 10:36 pm, edited 1 time in total.
User avatar
BPzeBanshee
Posts: 4859
Joined: Sun Feb 08, 2009 3:59 am

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by BPzeBanshee »

Ah, good ol' sample hacking! It's something I'd thought of doing a while back after sample-hacking Raiden Fighters for similar reasons but as an amateur dabbling in an area that most folks don't seem to want to support the MAME hack I did has some limitations as a result, particularly in lack of stereo support and having to prebake loops into the song.

Since you're an FBA dev I gather you're doing this in FBA rather than MAME? Is the sample engines between them very different? I was also thinking of sample-hacking G-Stream G2020 which also uses OKIs but it isn't supported in FBA last I checked.
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

Hey there,
I only work on FBA at the moment, regarding the sample engines - the code is different, but they achieve the same result in the end. We might not have every game in the book, but for the ones we have we try to support all the latest hacks/mods & stuff that gets rejected by MAME but actually makes things better for the gamer - all of which are totally optional by a dip setting or alternate rom selection.
Another neat mod I came up with is a virtual-mixer for ESP Ra.De. if you've ever played the game you'll notice that the sfx & constant shooting completely covers up the excellent music in the game, with the virtual mixer mod on it gives a bit of separation between the sfx and music.

take it ez - best regards,
- dink
User avatar
emphatic
Posts: 7984
Joined: Mon Aug 18, 2008 3:47 pm
Location: Alingsås, Sweden
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by emphatic »

A virtual mixer for ESPGALUDA would be cool as well, the laser sound drowns everything.
Image | My games - http://www.emphatic.se
RegalSin wrote:Street Fighters. We need to aviod them when we activate time accellerator.
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

emphatic, that would be killer, but I havn't been able to come up with a way to do that one yet as it uses a completely different sound system. Hopefully I can figure something out some day though :)

best regards,
- dink
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

It's released! Get the emu @ http://www.fbalpha.com & read how-to procure the samples needed (Sega Saturn DonPachi CD recommended) @ http://pastebin.com/RD2iM9KG

best regards,
- dink
User avatar
BPzeBanshee
Posts: 4859
Joined: Sun Feb 08, 2009 3:59 am

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by BPzeBanshee »

Very nice!

I see in the source code for FBA there is some support for playing a sample at a specified position. Would it be possible to use the game's own code or a self-made set of vars to reduce the filesize by correctly looping the music without prebaking the loops into the sample files? Also is there stereo support?
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

BPzeBanshee, The music samples are just a regular 44100/stereo standard audio cd-rip of the Sega Saturn DonPachi cd, the code in FBA's sample core automatically loops the music. The reason for the large samples is that they aren't compressed.

p.s. sorry for the late reply, somehow I missed your message when viewing new messages!
best regards,
- dink
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

Another new feature added to FBAlpha - stereo sfx in Mars Matrix - something emulation has been missing for quite some time.

Ever notice that the SFX in the game are hard-panned to the right speaker? This is really noticeable / annoying when playing with headphones or earbuds.

Listen to a before & after recording: (2 small mp3's, zipped) http://sharesend.com/2hpjrw2p
I'll post back when the next version with this feature has been released :)

best regards,
- dink
Cololonel
Posts: 1
Joined: Thu Oct 20, 2016 11:13 am

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by Cololonel »

Hi,

is it possible to fix the soundtrack issue with MAME?

Strange thing is, I played Donpachi some 10 years ago with MAME and did not remember the audio quality was so poor. Sometimes the emulator or the rom stop working with newer versions. How does the pcb sound?
User avatar
dink
Posts: 124
Joined: Sun Jan 26, 2014 7:58 pm
Location: Detroit
Contact:

Re: DonPachi arcade version high quality BGM mod [emulation]

Post by dink »

The PCB has the same samples that are low quality. unfortunately..
Want to play it in high quality? Get fbalpha from http://www.fbalpha.com (free, opensource)
get samplepak from http://www.mediafire.com/download/kb8y5 ... npachi.zip
put samplepak in fbalpha folder\support\samples, and play :)
p.s. once you load donpachi for the first time, press ctrl-f5 (or input -> set dips), and enable the high quality music setting.

best regards,
- dink
Cololonel wrote:Hi,

is it possible to fix the soundtrack issue with MAME?

Strange thing is, I played Donpachi some 10 years ago with MAME and did not remember the audio quality was so poor. Sometimes the emulator or the rom stop working with newer versions. How does the pcb sound?
Post Reply