Jump to content

Sound ROM Editor WIP


johnparker007
 Share

Recommended Posts

Continuing this thread:

...in here, as it's a better place than the Blockbuster's VHS Emporium now I've started doing a little coding on it :) 

Got some very early progress on this idea for a sound ROM editing tool, I'm decoding the entire sound Rom (testing with Andy Capp MPU4 to start with) and can play it back.  There is 'background noise' which is expected at present, due to how the adpcm encoding works (offset from previous byte).  I believe once I can decode the header and have all the samples individually decoded from their starting address, the background noise will disappear.

Cool to hear some vaguely recognisable noisy sound though :)   Going to work on figuring out the header stuff for the MPU4 type format (also shared by some other techs) next, hopefully sort out that background noise... 

  • Like 7

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

Some more progress :)  ...seems like the sound hardware broadly falls into OKI, NEC, Yamaha.  Focussing on OKI for now (used by MPU4)... still some 'background hiss' but much improved since the previous video, and I'm not extracting the sample rates yet, so I think they are a bit too fast.  They are now extracted as individual samples... 

 

Edited by johnparker007
  • Like 1

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

59 minutes ago, Altharic said:

James Wallace has some experience of this kind of thing

https://github.com/james-wallace-ghub/WilliamsOKIEditor/releases

Interesting, ta for the link! :)   

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

Cleaned up/fixed some more code in the decoder, now I have the samples sounding nice and clear, no more 'background noise' :) 

 

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

Started some basic GUI for the sound editor, very much like the Samples window in MFME... vid shows playing individual samples from list:

 

  • Like 1

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

I ain't afraid of no ghosts! ;) 


Looking at overrides - here I convert to the fruit machine sound chip bitrate, there is another step yet to encode this to PCM audio, so quality may drop a (quite small) amount when on the real hardware... samples can be much longer, since the MPU4 standard game board has 4x RAM slots, and usually they only use half.  To be continued, unless I get slimed :76_ghost:

  • Like 2

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

1 hour ago, johnparker007 said:

I ain't afraid of no ghosts! ;) 


Looking at overrides - here I convert to the fruit machine sound chip bitrate, there is another step yet to encode this to PCM audio, so quality may drop a (quite small) amount when on the real hardware... samples can be much longer, since the MPU4 standard game board has 4x RAM slots, and usually they only use half.  To be continued, unless I get slimed :76_ghost:

does worms sound roms work in this app

ezgif-6-228f2c936d48.gif

 

Link to comment
Share on other sites

16 minutes ago, infection said:

does worms sound roms work in this app

Worms looks to be scorpion 5, so not yet.  I'm currently just developing it with the OKI sound chip (used in MPU4), but I'm planning to add support for NEC and Yamaha later once everything is working well - so once I've made codecs for Yamaha and NEC, it should be able to load/edit/save Sc5 Yamaha sound ROMs (I think!).

Edited by johnparker007
  • Like 1

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

Looking really promising John, hopefully it can be used as you expect. Brilliant.

 

Mfme has the option to load a sound rom for a few tech's , don't know if you have ever noticed it?

I haven't used it, never had the need yet.

Untitled-1.thumb.jpg.eb0a15a4916b6274a5b36ebeb1d70558.jpg

Edited by Mavroz
  • Like 1
Link to comment
Share on other sites

1 hour ago, Mavroz said:

Looking really promising John, hopefully it can be used as you expect. Brilliant.

 

Mfme has the option to load a sound rom for a few tech's , don't know if you have ever noticed it?

I haven't used it, never had the need yet.

Untitled-1.thumb.jpg.eb0a15a4916b6274a5b36ebeb1d70558.jpg

I didn't actually notice that :)  I have checked out some of the standard sound ROM loading (as part of the usual layout) in MFME though, it's been a useful reference.

Now I've got them loading for OKI (MPU4) into my tool, the next step is to encode them back into a ROM set.  Once that's done and working, I'll move onto encoding the 'overrides' (like the Ghostbusters loop in the vid) into the ROM.  Hopefully then that newly built sound ROM set can be played in emulation and potentially real machine too... 

Edited by johnparker007
  • Like 3

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

  • 1 month later...

Haven't been looking at this project for a while (full WIP source code from link in my sig) - however I logged into the Mecca recently and saw that someone had tested that Ghostbusters test rom in their real Haunted House machine :) 

 

  • Like 3

[ Arcade Simulator ] Pre-alpha installer: http://arcadesimulator.net  |  Known Issues: https://tinyurl.com/yz4uom2e  |  Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

 Share

×
×
  • Create New...