Removing the Background Music From SMB (NES) ?

Discussion in 'General Tutorials' started by mikeyt1998, Apr 17, 2016.

  1. mikeyt1998
    OP

    mikeyt1998 YouTube Glitcher

    Member
    1,401
    65
    Aug 11, 2007
    Dalton-in-furness, north west
    So I'm currently trying to remove the background music from the original Super Mario Bros for use with FCEUX Emulator. But, I won't be using the PC to record the footage, I'll be using the NES Emulator for Wii, so I'll have to be able to save the ROM without the Music too.

    I've tried using the built in HEX Editor to visually check which values 'bop' in time with the music and different pitches of notes and frozen each one that appears to be related to music, it's kind of successful actually!

    Despite that, it's still not perfect. The background music isn't fully gone, I'm not sure of every value that needs changing to nothing. The game tends to just freeze after freezing a few of the Values.

    So, I'm wondering if anyone can help me out with this? It's basically just so that I can record gameplay footage but keep the sound effects included as I'll have other background music in place! A modified ROM maybe? If I could mod it myself then I'd be happy to do so with some guidance.

    Thanks for any help guys! :D

    UPDATE!
    Managed to get rid of background music using a GameGenie Cheat supplied in a comment below by VinsCool.

    Although this isn't a permanent method, FCEUX seems to automatically save the Cheat code into the .CHT file for the game once it's been put into the Cheat list. That .CHT file can then be used in other Emulators or other Ports of FCEUX which don't have GameGenie Capabilities (Like the Wii Version, FCEUGX that I'm using)

    If you'd like the code VinsCool supplied out of the huge list he supplied then here ya go!

     
    Last edited by mikeyt1998, Apr 17, 2016 - Reason: Question Answered!
    VinsCool likes this.
  2. VinsCool

    VinsCool Delusional

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,729
    27,847
    Jan 7, 2014
    Canada
    Another World
    Hiya!

    so, maybe this could help?

    http://ecc-comp.blogspot.ca/2015/07/removing-background-music-from-super.html

    Game Genie codes, maybe?:

    Music Codes

    NGGNAY-creates interesting music from all songs (loops several notes and
    plays various bass parts over this)
    NIGNAY-takes the DrumMix (explained later) and inserts pauses into it
    YAGNAY-plays briefly some of the end-game music and then stops-only works
    occaisonally
    OGGNAY, XGGNAY, UGGNAY, KGGNAY, EGGNAY-All of these are similar to NGGNAY,
    but each is different from the rest.
    STAPTO-Music stops immediately.
    PPPPPP-Various tunes are switched around.
    EGXNAY-Drums are off-time. Also a graphics code.
    YYYVYU-When you stomp an enemy, music goes through several variations.
    KOTAGE-No sound at all.
    PIPPPP-Plays invincibility music constantly.
    PAPPPP-Loops normal music constantly.
    POZPIS-When you interact with blocks, enemies, the music screws up.
    NAGNAN-Music skips.
    NYGNAG-Music skips.
    AGGNAY, ZGGNAY-One instrument plays some wrong notes on a sine wave.
    GGGNAY-Same as AGGNAY but with banjo sound.
    POTPIE-Freezes with great grinding noise.
    EOPOPE-No music. Also a graphics code.
    APPPPP, PPPPPP, TPPPPP-Mixed-up music.
    EPPPPP, LPPPPP, SPPPPP, NPPPPP-Weird music.
    ZPPPPP, GPPPPP, VPPPPP-No music.
    XPPPPP, UPPPPP-Underwater music.
    KPPPPP-Fortress music.
    SKINIT-Between-level music.
    UNVUXV-Repeating music.
    STOPPP-Starman music.
    TGOOIG-Remixes on the fly.
    YGOOIG, TAOOIG, TPOOIG, TZOOIG, TLOOIG, TYOOIG-These all do fantastic
    remixing which depends on what Mario does!
    EPONLY-Fragmented music; some instruments off-time.
    PISNLY-Music stops immediately.
    NZXNLY-Trance remix.
    NLXNLY-Similar remix.
    AEENLY, ZEANLY-Sound effect music freakout!
    NVXNLY, SEXNLY, XXXNLY, Adds a short-decay instrument (like a terrible synth
    banjo sound) playing the melody.
    OZXNAY, NZXNAY, EPXNAY, APXNAY-All these make the drums off-time in various
    ways.
    PPPNLY-Music starts and stops frequently.
    EPPNLY, APONAY, TVYNLY, EPONLY-All these make the melody off-time and the
    music starts and stops.
    PPENLY, NZANLY, NZENLY-All these make the bass strange.
    ZLLNLY, NZYNLY, NTXNLY, NYXNLY, NZNNLY, NZXNPY, NZXNZY-All these codes make
    really cool remixes of the music with extra drums.
    ZOANLY, ZXENLY-The melody is turned off.
    NUNNLY, YVYNLY, VNNNLY, UUUNLY-If the Mario/duck hunt cart is in, these will
    first make weird slow interpretive ballad music and then go into a warped
    duck hunt with the coolest music you've ever heard!!! If the cartridge of
    just Mario is in, that ballad music will continue.
    NANNLY, PZZNAY-Drums off-time, melody slow/off.
    YLYNLY, GINNLY-Music skips frequently.
    NSXNLY, NNXNLY, SUXNLY-Adds a pure, no decay sine wave (like a synthesized
    clarinet) playing the melody.
    NUXNLY, NXXNLY, IOXNLY-Adds another melody sounding more like an oboe.
    TZXNLY, NIXNLY, NGXNLY-Every instrument is odd or skipping.
    NZXNUY, NZXNOY, NZXNSY-Makes one note more prominent.
    EPONAY, EPONEY-Strange fragments of all songs and instruments.
    NEXNLY-Soft clarinet melody.
    NZONLY, NZPNLY-Strange transitions between sections of music.
    NIGNAY-Start/stop minimal music.
    PPONAY-Fragments of normal music.
    YEANLY-Like ZEANLY.
    YVONNE-Makes great noise.
    AIPPAT, EIPPAT-Drums occasionally stop. Also a new world code.
    AIZPAT-Music starts/stops and drums cut out. Also a new world code.
    ATINAL-Music replaced by grinding noise.
    ETINAL-Similar to ATINAL.
    OTINAL-This and *TINAL replaces the music with different noises.
    AEINAL-Music and SFX freak out.
    APINAL-Constant grinding.
    AGINAL-Different constant grinding.
    ASINAL-Wonderful musical freakouts triggered by jumping. Freezes.
    ATINZL-Hum and hiss.
    TVVOAE-Altered underwater music.
    ZZAYGN-Great warped music.
     
    Playboxwii2 and Tomato Hentai like this.
  3. mikeyt1998
    OP

    mikeyt1998 YouTube Glitcher

    Member
    1,401
    65
    Aug 11, 2007
    Dalton-in-furness, north west
    Ah thanks VinsCool! Everytime I blanked out a sound it created a new cheat code to block that sound out. I'll have to look into how to apply these codes as doing it through the Cheats menu of FCEUX won't accept this format.

    I'll check the link, thanks!

    — Posts automatically merged - Please don't double post! —

    Managed to find a GameGenie option in the settings of FCEUX which adds the code to the Cheat list properly! This code worked for me, now it's just a case of getting it into the .cht file to get it running on the WiiU! Thanks again!

    Also, just got your comment on my profile, I'm glad you enjoy the videos :)
     
    VinsCool likes this.
  4. VinsCool

    VinsCool Delusional

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,729
    27,847
    Jan 7, 2014
    Canada
    Another World
    I'm looking if I could find a no music romhack too. I'll post it here if I can find something doing this :)

    Maybe this guide could help too?

    SMB music hacking
     
    Seriel likes this.
  5. loco365

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    @VinsCool Thanks for that list, actually. I'll have to play around with that on my NES tomorrow!
     
    VinsCool likes this.
  6. mikeyt1998
    OP

    mikeyt1998 YouTube Glitcher

    Member
    1,401
    65
    Aug 11, 2007
    Dalton-in-furness, north west
    Hmm... I just tried to save the ROM via the Hex Editor with the cheat active, but unfortunately even though the values are edited and saved, the new ROM still plays music normally.

    There must be some simple way to save the rom with the Cheat applied, surely hahaha!

    And yeah, that list is seriously in depth... Man, if only I had time to mess around properly with it all. The time that some people put into this stuff is insane, but awesome :P
     
  7. VinsCool

    VinsCool Delusional

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,729
    27,847
    Jan 7, 2014
    Canada
    Another World
    From the guide:

    Offset Contents Data(In SMB1)

    $791D: Mario Dies (A5)
    $791E: Game Over (59)
    $791F: Princess Rescued! (54)
    $7920: Mushroom Retainer Rescued (64)
    $7921: Game Over [alternate] (59) (See quote)
    $7922: Level Complete (3C)
    $7923: Time Running Out! (31)
    $7924: Silence #1 (4B)
    $7925: ????? (69)
    $7926: Underwater Theme (5E)
    $7927: Underground Theme (46)
    $7928: Castle Theme (4F)
    $7929: Cloud Theme (36)
    $792A: Pre-pipe Theme [Used at beginning of 1-2, 2-2, 4-2 and 7-2] (8D)
    $792B: Starman Theme (36)
    $792C: Silence #2 [plays during 'Level X-Y' screen] (4B)

    If a song offset is replaced by one of those, maybe this could lead to a quick "no-music" romhack.
     
  8. mikeyt1998
    OP

    mikeyt1998 YouTube Glitcher

    Member
    1,401
    65
    Aug 11, 2007
    Dalton-in-furness, north west
    The first link you commented actually goes in depth into the 'Silence' track I think you're pointing out there. I haven't checked yet to see if the Starman powerup music still works with the cheat active, but just scanning over the first link he mentions that the Starman Music is actually part of the Music too, rather than a Sound Effect!
     
  9. TR_mahmutpek

    TR_mahmutpek GBAtemp Advanced Fan

    Member
    630
    134
    Jul 28, 2015
    Why you trying to do this?
     
    N64 likes this.
  10. ric.

    ric. Drivin' to meme country

    Member
    792
    907
    Sep 17, 2015
    Peru
    Dartz150 likes this.
  11. LuigiXHero

    LuigiXHero GBAtemp Regular

    Member
    119
    73
    Dec 16, 2014
    United States
    Well you could've just downloaded the smb1 disasm and change all the music to be blank.
     
  12. mikeyt1998
    OP

    mikeyt1998 YouTube Glitcher

    Member
    1,401
    65
    Aug 11, 2007
    Dalton-in-furness, north west
    I have a YouTube Channel that I record my own footage of gaming for and where possible try to remove any background music but leave sound effects included!

    That way I can have an audio track in the edit dedicated to Sound Effects that match the video :)

    I see! Never heard of that software before so I'll check it out for future. The video is almost done now so it could be handy :) Cheers!
     
    ric., TR_mahmutpek and VinsCool like this.