This patch will allow you to create a playlist of custom or vanilla songs for individual levels. You can navigate between the songs by holding Select then pressing either L or R. Perfect for long grind levels or for audio leveling.
This is meant to be used along with AddMusicK and the retry patch. The included asar patch fixes an issue where the music would reset back to the level default on each death.
Tested with: Lunar Magic 3.11, UberASMTool 1.4, asar 1.71, AddmusicK 1.0.6, SA-1 1.32, retry v2.06b, Snes9x 1.60.
The code works as expected, also in situations like where the P-Switch music starts playing or with the "Time is running out" tempo hike effect. Pay attention that all the songs you have in the playlist are compatible with what you have in the level, or glitchy sound effects could happen depending on which song is playing!
One issue is that the asar patch provided hijacks a location also hijacked by AddmusicK: this will make its effect vanish once you run AMK. To overcome this, you'll need to edit a few lines in one of AMK's asm files: for this reason I included a readme in the zip that explains the steps (I suggest against just reapplying the patch everytime you run AMK, because the space it uses in ROM won't be cleared out, thus leading to an additional chunk of used space everytime you do that).
During moderation I also made the song count define be computed by asar automatically, so the user doesn't have to worry about that, and added |!bank to the JMLs in the patch, which helps a bit for FastROM users. I also added a check for the pause flag, since before it was possible to switch songs while the music was paused.
Edit: updated the readme since I didn't notice AddmusicK's code is bad so it actually overwrites the same part twice in its code, thus you'll need to make two different edits to the tweaks file.
Follow Us On