Romhacking.net

Romhacking => Newcomer's Board => Topic started by: Spindaboy on January 11, 2016, 02:45:24 pm

Title: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: Spindaboy on January 11, 2016, 02:45:24 pm
I believe the sound files for the Famicom/ NES are under the NSF format, right? Well how exactly can I change those in the ROM? I don't really care about changing SE, but I'd like to change soundtracks.
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: KingMike on January 11, 2016, 03:40:15 pm
No. An NSF is basically the game's sound driver ripped from the ROM.

You'd have to figure out how the original game's sound engine works and then replace the sound data.
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: Spindaboy on January 11, 2016, 03:59:37 pm
Can it be done using a hex editor?
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: FAST6191 on January 11, 2016, 04:06:05 pm
You can edit anything with a hex editor, however the question is would you want to? The answer in this case is depends what you want to do but probably not.
A full tweak and remaster would be horrible to do with one.
Some basic tweaks are more doable -- if there is only a couple of notes you want changed to something else or maybe a slight timing change for things.
In any case you would first want/have to spend a considerable amount of time pulling the game's sound engine apart with emulators and disassemblers. Once you have that you would probably want to make a program to handle it, or at the very least a kind of spreadsheet to take some of the tedious manual calculations out of the equation.

Some later consoles have more commonly used defined sound systems but most things 16 bit and older are a pretty custom affair, and will also see you wanting to know hardware.
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: SunGodPortal on January 11, 2016, 04:48:57 pm
If you're working on FFIII please remove that annoying pop sound from the battle theme. It drives me INSANE!!! At first I thought it was a glitch, but apparently it was supposed to sound that bad...
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: Bregalad on January 12, 2016, 03:25:57 am
If you're working on FFIII please remove that annoying pop sound from the battle theme. It drives me INSANE!!! At first I thought it was a glitch, but apparently it was supposed to sound that bad...
It's probably something you can do yourself at this point (watch for writes to $4011 - replace them with NOPs).
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: SunGodPortal on January 12, 2016, 03:40:35 am
Quote
It's probably something you can do yourself at this point (watch for writes to $4011 - replace them with NOPs).

Probably, but it will be a while before I really want to play any NES games at length (I'm currently fixated on SNES and PS1) and when I do any hacking it's to A Link to the Past. Maybe someday... :)
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: Spindaboy on January 12, 2016, 06:59:46 am
If you're working on FFIII please remove that annoying pop sound from the battle theme. It drives me INSANE!!! At first I thought it was a glitch, but apparently it was supposed to sound that bad...
I will see if I can do that :)
Title: Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
Post by: Taluigi on January 16, 2016, 11:15:13 am
You can change music, but not in the easy way.
You need to use a technique that you haves to corrupt you ROM, and you need to check in a Hex editor what's the Music offset.
So, only here you can change music...  :)