• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[TUT] The easiest possible way to insert music!

Full Metal

C(++) Developer.
810
Posts
16
Years
(I'm not trying to be mean or nothin but it's true) Many people (Including me) have read magnius tut and can't get past "assemble that ugly thing". Atlast, i have a solution.
This is incredibly easy and so easy in fact i doubt you will need scrennies.
The only tools i can post links to are sappy and anvil studio
so here is sappy LINKY
and here is anvil studio LINKY
You will need
A) Hackmew's thumb.bat
B) well as mid2agb.
Neither of which i will post links for, the thumb.bat can be found in hackmews knowledge thread and look around magnius tut's for a link to mid2gba&sappy in a combined rar package.

Now the fun starts.
Step 1) Obtain your midi file.
Step 2) Open your midi file in Anvil Studio
Step 3) Delete all but one track in your midi file then file->SAVE AS and for sake of ease, name it trackx.mid (where x is the times you repeat, you'll understand if you keep reading)
Step 4)now, odds are that your midi file has more than one track, this is where the emphisis of the words save as came in.
Re-Open your file in anvil studio (the original midi file) and this time repeat step 3 with a different track to not delete.
Step 5)When you have separated all the tracks into seperate midi files, drag all the trackx.mid's into your mid2gba folder.
Step 6) Now drag each individual track.mid file onto mid2agb.exe
Step 7) Now you have a bunch of trackx.s files. Copy your trackx.s files into hackmew's thumb assembler folder. Also VERY IMPORTANT you also need to have mplaydef.s in the same folder as the assembler.
Step 6) Here comes more fun repetitive actions.
Now I am going to show you how to assemble asm stuff with hackmew's thumb.bat
6.a) push windows flag key+r
6.a.b)type cmd and push enter
6.b)type cd[space] then copy the address of your thumb assembler folder.
6.c)Rightclick ->paste then push enter
6.D)now that you have the cmd prompt working in the right spot, type "thumb trackx.s trackx.bin"
7)Repeat step 6 for every trackx.s file.
8)Now you have several trackx.bin files, move them into the same folder as your ROM.
9)Open your ROM in sappy.
10) Choose a song to replace
11) Click "Import tracks"
12) Check all the tickboxes next to trackx.bin files then click "OK"
13) Push yes.
14) Now it works in your gba that easy ;)

OK now i know how to fix the funky sounds xD.
In FR (only know how for FR sorry :\) open your ROM with sappy.
Go to the song that sounds all GBC-ish and look at the header offset
write it down
Look at the voice group offset, write it down as well (remember to label them!)
Open ROM in hex editor, then go to your header offset
Next search for the pointer of your voice group.
How to find a pointer from an Offset
Spoiler:

[/mini tut within a tut]
Now highlight the pointer (four bytes btw) and minimize your hex editor.
Open your song (the original midi) in Anvil Studio
And look at the instruments it uses.
now find the voice group you need from the list in the spoiler
(Credits to Magnius for this amazing list)
Spoiler:

So now make a pointer from the offset of your VoiceGroup containing the nescesary instruments
Restore your hex editor and REPLACE the highlighted four bytes with your new four bytes (the new pointer)
and you have repointed your voice group
Now your song DOES NOT SOUND LIKE CRAP! YAY!!!!!!!!

What's this?
I can't find a voice group with all the instruments i need!

Don't worry
Find a voice group with most of your instruments repoint like above
then export the tracks that don't sound right (they sound like GB/GBC)
and open them in hex editor, and change their instrument to a different one.
How to do this?
Spoiler:

save the track file
Now rename it "Fixed track x"
export the tracks in sappy (all of them)
re-import them but instead of importing "track x"
import "fixed track x"
and select all the other original track x's except the one that sounds funny
and your song is fixed
to confusing for you?
skip the above.
Open your rom
go to the offset of your weird sounding track
look for the byte BD (that is relatively close to the offset)
and change the XX to the correct instrument number.
 
Last edited by a moderator:

Korronensu

Scrap Punk
153
Posts
15
Years
  • Age 34
  • Seen Feb 28, 2010
By yours or any method, I get the same problem, which is not that the songs won't transfer... no... to the contrary, I've never found a midi file that I wasn't able (with some manipulation of instruments) to insert. My problem is NONE of the midi files I've ever inserted loop.
They play once and then quit... awkward silence ensues.
Does anybody know how to fix this problem?
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
This is a very useful tutorial, my advice for getting the tracks to sound right, is to hex edit the instrument.
 

Full Metal

C(++) Developer.
810
Posts
16
Years
Yeah, I've experimented with that (lolz just one byte xD), but it doesn't seem to make a difference no matter what instrument i use. I think I know what the sound that plays is (the gba synth?), but that has something to do with direct track or whatever it's called and is way out of my head to change that.
 

Magnius

Pokemon Music Hacking Guru
295
Posts
18
Years
  • Seen Feb 17, 2014
By yours or any method, I get the same problem, which is not that the songs won't transfer... no... to the contrary, I've never found a midi file that I wasn't able (with some manipulation of instruments) to insert. My problem is NONE of the midi files I've ever inserted loop.
They play once and then quit... awkward silence ensues.
Does anybody know how to fix this problem?
Well what do you expect, for them to magically loop? Nah, there's a process for looping. Clonex25 wrote a good document on it, look for it.
 

Full Metal

C(++) Developer.
810
Posts
16
Years
lol, yeah seriously
A simple search in the docs and tuts usually gets it for me ;)
Magnius just thought i might tell ya that the link in ur music hacking doc needs to be updated (the link to that tut no longer works)
 

Full Metal

C(++) Developer.
810
Posts
16
Years
ooops ^_^;
probably through a few people off...
sorry :\
ALSO
expect a surprise program coming soon to (sort of) automate this process
 

Pinta77

Guest
0
Posts
Ok, so I click the "LINKY" to download sappy, and all I see is porn ads. Am I missing something?
 
Back
Top