In this tutorial I pretend to teach you how to insert custom music into your ROM, using of AddmusicK.
If you are one of these people that refuse to chnage, you might be wondering, "Well, what does it do better than Addmusic 4.05/M?". If that's the case, then I tell you:
100% real hardware and emulator compatibility.
Graphical User interface, in case you don't like/fear using the command line.
Compatibility with Addmusic 4.05 and M music formats.
More commands that allow for better sonding music.
Frees one SFX bank, by moving the jump SFX to $1DFC.
No header dilemma, so you can play OW music on levels and viceversa!
(For porters) Ability to generate .spc files without inserting the song to your ROM via the "Porter Mode" as well as a directive to add SPC tags without having to use another program.
(For SPC hackers) Easy to modify 65816 and SPC ASM.
The first step that you need to before inserting any song is, of course, downloading it. Once you have done it, open the zip and extract the .txt file (not the spc, not the brr, just the txt) on the music folder.
Open AMKGUI.exe. Here, you can see a lot of useful options, including the ability to add songs directly without modifying the Addmusic_list file, playing a song without inseting it, or enabling Porter mode (explained at the start).
For now, just click Run, and a window will pop. Search for your ROM file, and the tool will do the rest. It everything goes right, then you will see a window like this:
Good. I prefer the command line personally, but this one's neat too.
Also you might've noticed that AddmusicK generates a .msc file. Don't worry about it, what this file does is showing the names of the songs when on the Bypass music dialog.
It's not really hard! Open your ROM in Lunar Magic, and go to the level where you want to add a custom song. Press the Bypass music and time limit settings dialog button () and search for the song you inserted. That's where the msc file comes handy, as it'll display the custom song names. Select it, click Ok, and save.
You probably have seen this box already.
For the Overworld, the process is similar. Click the Edit submap music selection dialog button ( once again), select your map to the left, and the song to your right. Press Ok and save.
Not too different, to be fair.
Open your emulator. It's time!
If everything went well, you will notice two things:
The music on the intro level changed to the grassland song.
The song you chose plays correcly on the level.
If everything worked, yay! Now you know how to insert custom music. If for some reason it didn't work, check below to see what could've gone wrong. Or make a post on this thread, and I'll try to help you.
1. Why does the intro song change to the grassland?
That's because AddmusicK changes the order of the songs, as well as allowing for the intro level to use a custom song.
2. I applied a hex edit to change the title screen/intro level, but after reapplying AddmusicK, the changes are lost! What do?
Go to the asm/SNES folder, open the Tweaks.asm file in any text editor of your choice. Once there, search for the following lines: !Welcome = #$13
!Title = #$15
And change the numbers to the song you want to use. Welcome is the intro level, and Title is the titlescreen. Save and reapply AddmusicK.
3. How do I change the Nintendo Presents sound? The hex edit ain't doing no thing...
AddmusicK modifies the Nintendo Presents song to be a song instead of a sound effect. This means that you have to either:
Use a song or convert your SFX to one
Change the SFX mirror to allow a sound effect.
For the first option, search for this line on the tweaks.asm file: !NintPresents = #$1E ; Note that this is a song, not a sound effect!
And change the number to the song of your choice. Save and reapply AddmusicK.
For the second choice, search for this on tweaks.asm once again: org $0093C0
Change the $1DFB to the SFX mirror of your choice. You can find these, along with the sound effect numbers, here. Once you did that, you can follow the steps from step 1, taking into account that !NintPresents is a sound effect number instead.
4. Im getting an error that says: ‘Echo buffer exceeded total space in ARAM’. What can I do?
This error means that there is not enough space on ARAM for adding new songs. Open the song that tells you the error. There are three possible solutions, try them one by one:
Search for a line that says #default, and change it to #optimized. Reapply AddmusicK. If it didn't work, try step 2.
Search for a line starting with $F1 $XX $YY $ZZ, where $XX $YY $ZZ are hexadecimal numbers. Lower $XX by one, and reapply AddmusicK. If it doesn't work, try lowering it more, until it's $01.
Worst case scenario, the song is way too big for your hack. You'll have to remove global songs for it to be inserted.
5.- If I beat or die with 100 seconds or less in the timer, the music keeps sped up!
Simply add #option TempoImmunity after the first line of your level end/death song.
This is a great tutorial, however, one thing I noticed that it doesn't cover is custom SFX insertion. So I really want to ask, how do we insert custom SFX successfully in this version of addmusick? I'm crossing my fingers custom SFX are compatible with SA-1 hacks.
I'm still scrub-peasant material and I've been fiddling around with inserting sampled music. I couldn't get sampled music to insert properly until I found a thread which listed my answer.
Maybe I missed it, but I'd recommend adding that the samples folder needs to be CUT & PASTED into the samples folder (or whatever path the text file specifies) for it to insert properly. The main point here is that the song's samples needs to be removed (not copied/duplicated) from its folder and placed into the samples folder.
-------------------- Looking for high quality rips from our Grand Dad SiIvaGunner for my hack. Much appreciation to anyone who links me to any (besides Athletic PAL).
It is possible to increase the number of global songs too, but I noticed it isn't explained here. I would assume it isn't entirely necessary for most users to need to know this, but maybe it could be something to consider implementing just in case?
Hello. I'm new here. I'm making my Snes hombrew and I get stuck in making the music. Snes GSS sucks so the internet lead me here. I tried Addmusick on SMW and it's good, easy to use. I wonder can Addmusick insert songs to other Roms, like homebrewn with some tweaks in the asm file?
My homebrew is Hi-rom with high speed clock ($420D=1).
Not unless you modify the codes. All what the tools know is that they modify the code at specific points (doesn't change) without caring what ROM they're editing (it's pretty much impossible to tell what's what without disassembling the code). That being said, the AMK (which is pretty much a "GUI") and the music engine itself (it's inserted to ARAM anyway and works mostly isolated from the SNES) isn't really restricted to SMW, only the SNES to SPC700 interaction needs to be recoded for homebrew.
Hello. First, sorry for my bad english, i'm brazilian and i don't speak english very well.
now ... on the last step, when i'm going to put my rom's name on addmusick, it appears that you haven't found my rom. and this happens with all the roms I've tried! how to fix?
@ TheScratchinator I edited your post to remove the black text coloring. Some of our themes have dark backgrounds and black text can be hard to see so please be careful when and how you use text coloring.