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

Author Topic: Adding custom music to nes rom?  (Read 9067 times)

ginbunbun

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Adding custom music to nes rom?
« on: October 09, 2014, 02:41:29 am »
I have never hacked anything in my life honestly. How hard is it to put custom music into an nes rom? and would it be possible to add expanded audio to a rom that didnt have it before. I have an everdrive n8 flashcart and an av famicom capable of expanded audio. Thanks for your time.

henke37

  • Hero Member
  • *****
  • Posts: 643
    • View Profile
Re: Adding custom music to nes rom?
« Reply #1 on: October 09, 2014, 06:02:15 am »
Very difficult. Since all developers were left on their own to write sound engines. The obvious result was lots and lots of them. No two are alike.

So you need to identify which engine is used in the game and how it works.

ginbunbun

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Adding custom music to nes rom?
« Reply #2 on: October 09, 2014, 04:16:32 pm »
Very difficult. Since all developers were left on their own to write sound engines. The obvious result was lots and lots of them. No two are alike.

So you need to identify which engine is used in the game and how it works.
ah I see.

Grimlock

  • Sr. Member
  • ****
  • Posts: 366
  • Graphics Artist, Level Designer
    • View Profile
Re: Adding custom music to nes rom?
« Reply #3 on: October 10, 2014, 12:23:36 am »
Most people that do music editing use a HEX editor.  Musical notes are represented by HEX values specific to the games sound engine.  Some games have detailed information you can reference to determine the values.

The only NES game that I know of that has a dedicated utility to insert music is Metroid.  I haven't attempted to modify music through HEX editing, I'm sure it would require a tremendous amount of planning before making the changes.  The Metroid music editor is fairly easy to use once you learn the basics, it's text based so you have to get past that part.  It's too bad there aren't more apps like it out there.  I would think a commonly hacked game such as Super Mario or other popular titles would have one but there doesn't appear to be one on this site (I just checked)

optomon

  • Full Member
  • ***
  • Posts: 245
  • Rite of Spring
    • View Profile
Re: Adding custom music to nes rom?
« Reply #4 on: October 10, 2014, 01:50:00 am »
It's very tedious, and you'll need to be able to learn how to reverse engineer the sound engine. You can do this with a memory viewer that is built into an emulator. Open the games NSF file and in the emulator and see if you can find pointers in the memory viewer while a song is playing, chances are, it represents the location of some of the music data for that song in rom. Then compare what you find in the NSF file to what you find in the rom file in a hex editor. After that, you'll have to determine how different elements are represented in hex ( pitch, volume, repeat functions, timbre, etc.). Then edit the data. It is a lot of work, especially the first time around.

But even before doing that you'll need to know the principles of hexidecimal and pointers, and hopefully have some kind of music background. Not sure about the expansion sound though, sounds like a whole different ballpark.

Dr. Floppy

  • Restricted Access
  • Hero Member
  • *
  • Posts: 970
  • Make America GREAT Again!
    • View Profile
    • BaddestHacks.net
Re: Adding custom music to nes rom?
« Reply #5 on: October 10, 2014, 04:31:06 am »
Rewriting NES soundtracks just happens to be my specialty!
http://www.romhacking.net/hacks/875/
http://www.romhacking.net/hacks/351/
http://www.romhacking.net/hacks/741/
http://badderhacksnet.ipage.com/badderhacks/components/com_agora/img/members/65/FebLOI.png
What game do you want to hack custom music into?

And speaking of expanded audio, 'twas one year ago this very fortnight that I completed the debut edition of the Floppydriverâ„¢, an original music engine designed to take advantage of the MMC5's extra audio channels. You're welcome to use it if it suits your fancy.

Jorpho

  • Hero Member
  • *****
  • Posts: 4626
  • The cat screams with the voice of a man.
    • View Profile
Re: Adding custom music to nes rom?
« Reply #6 on: October 10, 2014, 09:07:33 am »
Wow, where's that screenshot from?
This signature is an illusion and is a trap devised by Satan. Go ahead dauntlessly! Make rapid progres!

Grimlock

  • Sr. Member
  • ****
  • Posts: 366
  • Graphics Artist, Level Designer
    • View Profile
Re: Adding custom music to nes rom?
« Reply #7 on: October 10, 2014, 09:11:14 am »
Dr. Floppy, nice job on the music for Donner.  That's one insane hack.  I love the lack of political correctness.  The first boss made me laugh so hard I couldn't breath.  Yea, it's got some "poddy" humor but part of what makes it so funny is that someone actually made it, so much of it is unexpected.  :thumbsup: definitely not for kids though...

Dr. Floppy

  • Restricted Access
  • Hero Member
  • *
  • Posts: 970
  • Make America GREAT Again!
    • View Profile
    • BaddestHacks.net
Re: Adding custom music to nes rom?
« Reply #8 on: October 10, 2014, 01:40:06 pm »
Wow, where's that screenshot from?

That would be The Legend of Iowa, a complete overhaul of Zelda 1 which is in the final stages of production as we speak.  :woot!:

Dr. Floppy, nice job on the music for Donner. That's one insane hack. I love the lack of political correctness.

Thanx, dude! Always good to get feedback from the target audience.  :beer:

ginbunbun

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Adding custom music to nes rom?
« Reply #9 on: October 11, 2014, 10:01:40 pm »
Rewriting NES soundtracks just happens to be my specialty!
http://www.romhacking.net/hacks/875/
http://www.romhacking.net/hacks/351/
http://www.romhacking.net/hacks/741/
http://badderhacksnet.ipage.com/badderhacks/components/com_agora/img/members/65/FebLOI.png
What game do you want to hack custom music into?

And speaking of expanded audio, 'twas one year ago this very fortnight that I completed the debut edition of the Floppydriverâ„¢, an original music engine designed to take advantage of the MMC5's extra audio channels. You're welcome to use it if it suits your fancy.
I wanted to see if it were possible to change the main music in castlevania III the japanese version with expanded audio to a different song. I have an nsf of the song using the same vrc6 chip if that helps.

omega_rugal

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Adding custom music to nes rom?
« Reply #10 on: October 11, 2014, 10:27:18 pm »
Its great to see people who is always willing to lend a hand....
Done your packing?, your life journey is over...

Sephirous

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Adding custom music to nes rom?
« Reply #11 on: August 05, 2016, 02:52:17 pm »
I'm going to be hitting this concept around the final stages of my attempt to recreate "Cadence Of Agony Linear Reboot".

I will need to import the soundtrack Optomon worked on during the Original Project.

As of right now I have LOADS of Work to do on the project before I hit this part but when the time comes if it is to much of a chore for me, I will just rearrange the original tracks.

Good to know however that this isn't something I should jump into right away.  :thumbsup:

optomon

  • Full Member
  • ***
  • Posts: 245
  • Rite of Spring
    • View Profile
Re: Adding custom music to nes rom?
« Reply #12 on: August 05, 2016, 04:25:53 pm »
That wouldn't be too hard for me to do actually.