Hi, I am rather new to disassembly, and I'm not sure how to add background music for towns and such in pokeemerald. Also, is there a specific file format the music file has to be in to work? Thanks so much.
Hi, I'm also relatively new, I found this so far though..
You can change songs by replacing the .midi files in sound/songs/midi. You can also change the way songs sound by editing their .s files and modifying the voicegroup line (often line 3). In PokeEmerald there are 101 voicegroups in total. Each voicegroup has different instruments, that's why changing the voicegroup changes the way the song sounds. The .midi files are the notes, the voicegroups are the instruments.
I'm not entirely certain on how to add new songs or voicegroups though... So far I've tried adding new .midi files to the folder, editing the songs.h to include that file + adding a .s file that I generated with Mid2gbac. But I'm not getting the new songs to play just yet..
I found several threads that might get us in the right direction though: