Staff Note: This tutorial is outdated and it is strongly recommended you no longer use this method to modify music.
It is recommended that you use Lucas' RadMusic Script Builder instead. You can find full documentation on that tool here as well as a more recent community made tutorial here.
`In this tutorial, I will show you how to get the hex value of custom rsd files and put them into the level's rms file you intend to change.
Firstly, you must have a 24000 hz stereo wav file. This is tricky to get, and requires both putting it into audacity, changing the Default Sample Rate to 24000 hz., and resampling the track to 24000 hz.
Simply replace 41000 with 24000
YOU MUST DO THIS EVERY TIME, EVEN IF THE DEFAULT RATE IS ALREADY 24000 hz, YOU MUST RECONFIRM EVERY TIME
Now we must export the wav file and find it's Size not Size On Disk (Silly me!) once inputted into a rsd file.
Also put the file in YourMod/CustomFiles/sound/music/example.rsd
Now you have to find the hex value of the file. Note: The Windows 10 Calculator seems to give me incorrect results, use an alternative if you can
This is done by changing the calculator mode to Programmer
Now we will end up with this:
Now we will pad the hex value with zeros until it has Eight characters
Then we will split the values into groups of Two and reverse the order of the entire set of numbers e.x. (3T 03 E4 00 turns into 00 4E 30 T3)
Now we are going to input the hex value we have calculated into the rms file for whatever level you want to replace. Extract the rms file by opening music01.rcf in the game's directory. Find l1_music.rms inside and extract it. Now use this list to find the hex value for a song you intend to replace. Now open this up in a hex editor such as HxD. Use the search function and select Hex Values before you search. Also, be sure to select All Directions before you search. Now replace the value you searched with the value we found earlier for your rsd file.
Usually when people use an incorrect hex value, you will get this error: Please Insert The Simpsons Hit & Run Disk 1 This can be fixed by undoing your change. Note, this error is not immediate, it happens after the length of the song's hex value is cycled once. Having a revisions .txt file is recommended.
Credit for original tutorial and images: Loren Goodwin
Audcity image taken from http://manual.audacityteam.org/man/quality_preferences.html