News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: How Do I Edit/ Replace the Sound Files in an NES ROM?  (Read 3130 times)

Spindaboy

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • SyndROMe Hacking
How Do I Edit/ Replace the Sound Files in an NES ROM?
« 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.
« Last Edit: January 11, 2016, 03:59:52 pm by linkncb16 »

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 7060
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #1 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.
"My watch says 30 chickens" Google, 2018

Spindaboy

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • SyndROMe Hacking
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #2 on: January 11, 2016, 03:59:37 pm »
Can it be done using a hex editor?

FAST6191

  • Hero Member
  • *****
  • Posts: 3008
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #3 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.

SunGodPortal

  • Hero Member
  • *****
  • Posts: 2919
  • 2 + 2 = 5
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #4 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...
Cigarettes, ice-cream, figurines of the Virgin Mary...

Bregalad

  • Hero Member
  • *****
  • Posts: 2753
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #5 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).

SunGodPortal

  • Hero Member
  • *****
  • Posts: 2919
  • 2 + 2 = 5
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #6 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... :)
Cigarettes, ice-cream, figurines of the Virgin Mary...

Spindaboy

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • SyndROMe Hacking
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #7 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 :)

Taluigi

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How Do I Edit/ Replace the Sound Files in an NES ROM?
« Reply #8 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...  :)