Corvus of the Black Night
Wild Duck Pokémon
- 3,416
- Posts
- 16
- Years
- Age 32
- With the Birds
- Seen Jan 9, 2015
WEEEEEEELLLL...
This is how I import Golden Sun Songs into a Pokemon rom.
Actually, it works for any GBA rom as long as you can find the
music table, but a lot of people have been asking m about it, so I've made a nice tutorial. No pictures this time, unfortunately...
THE ELF METHOD
What you'll need:
The Mid2gba set
Sappy 1.6
A Midi Program (like Anvil Studio)
A Tile Viewer/Hex Editor. Although Tile Viewer is recommended.
Okay,
STEP 1) Extract your song from Golden Sun: The Lost Age from
Sappy.
In order to do this, you'll have to change Sappy's equavalent
of a ini file (sappy.txt). Where it says Golden Sun, you can
replace AGSE with AGFE, then switch the table offset (which is
0x80FC70C, I think for GS; TLA's is at 0x81C4530). Anyways,
after setting those in the sappy.txt file, open up Sappy 1.6
and load in Golden Sun: The Lost Age. Go to the song you want.
Here's a nice table for you with my totally awesome song
names:
Golden Sun Songs
0002 Alfafa
0003 Temple 1
0004 Dalia
0005 Apooji
0006 Normal Gaia Rock Town
0007 Bummed Gaia Rock Town
0008 Sad Song
0009 Another Weird Foreign Song
000a Active Foregn Town
000b Ceremony
000c Lemuria
0041 Entrance to Lemuria
000d Normal Town
000e Happy Litte Island
000f Garoh
0010 That town with the dead dude
0011 Kids song 1
0012 Kids song 2
0014 Airs Rock
0015 Aqua Rock
0018 Gaia Rock
0017 Caves
0019 Statue
001a Jupiter Lighthouse
001b Magma Rock
001c Mars Lighthouse
001d Cold Temple
001e Swamp
001f Sandy Temple
0025 Shaman Village
0026 Sheba's Sad Song
0028 Theme
0029 Sailing
002a Land Travel Before Jupiter Lighthouse
002b Land Travel After Jupiter Lighthouse
002c Golden Sun Rises
003c Ivan Theme
0027 More Evil
0022 Evil Karst and Agaito
0023 Briggs Gets Away!
0024 More Evil Stuff
0035 Even More Evil
003d Can you believe it? More Evil!
003e Prox
003f We're gonna die!
0040 Sad GS Theme 1
0043 Sad GS Theme 2
0044 GS Theme 1
0046 GS Theme 2
0047 Uber Upbeat GS Theme
0048 Sad GS Theme 3
0049 GS Theme 3
004b GS Theme 4 (short)
004a Healing
02bc Vale
02d0 Mt. Aleph
02d2 Sol Sanctum
02e6 Overworld (Broken Seal)
02bd Happy Town (Broken Seal)
02d4 Caves (Broken Seal)
02be Sad Town (Broken Seal)
02bf Teh McCoy's Place
02d1 Kolima Forest
02c0 Tret the Tree
02d7 Mercury Lightouse
02d6 Imil
02c1 Xian
02d5 Desert
02c2 Kalay
02e5 The Ship (Broken Seal)
02c6 Tolbi Song
02c3 Running to the Match
02c4 Colosso Waiting Room
004c Challenge
02d9 Tolbi Cave
02da Hey there, Babi!
02c5 Think you're lucky? (Broken Seal)
0001 Lucky Dice
0037 Bet Lucky Dice!
02d3 Altin Caves
02d8 Dekhan Plateau
02e7 Venus Lighthouse
02ee Battle! (Broken Seal)
02ef Saturos Battle!
02F0 Boss Battle!
0031 Jenna Battle
0032 Felix Battle
0033 Moapa Battle
0034 Posidon Battle
02f1 Fusion Dragon Battle!
02f2 Super Evil Dragon
0036 Doom Dragon Theme
0038 Boat Battle
0039 Karst/Agaito Battle
003a Won!
003b Lost...
(They're in order of GS:TLA songs, then GS songs, then battle
themes. It's a little jumbled, I know...)
Anyways, go to the song number in sappy, then go to the menu
at the top. Under Options, there is a selection called "Loop
Limit". Set this to 1. Then, go to File, then "Export Song to
.mid". MAKE SURE YOUR SONG ISN'T PLAYING OR SAPPY WILL DISPLAY
AN ERROR MESSAGE. Great, now you exported the song into a .mid
file.
This has to be done because GS has a funky music format.
STEP 2) Editing the song
It is necessary to edit the song to put into another game. You
have to do it one track at a time, and the first track has
these little things called "modulations" that are added when
sappy extracts a song. It is necessary to remove all of these
from the song in order for the insturment to make the right
sound.
First, go to Anvil Studio (This is a freeware program you can
download - it's very useful). Open up your midi; the program
will automatically split it into seperate tracks. First, click
on View, the click on "Event Viewer". Make sure you're on the
first track - these modulations only appear on this track.
Remove all the modulations by double clicking the event, then
pressing "Delete Event".
Now, save the file. My generic song file is "Worka.mid.". Now
that you've got a backup, remove all the tracks except for the
first. Save as this file in the Mid2gba/mid folder. It is
imperative that you do this for step 3 to work.
STEP 3) Converting your song into GBA format.
This is very simple. If you have a midi in the mid folder in
the Mid2gba folder, simply click the program "tr". In the
program, click "??" to convert the song. The program makes a
rom file named "Song.gba" with your song data in it.
Step 4) Inserting the song
Open your rom in your Tile Viewer/Hex Viewer (for the sake of
this tutorial, I'm talking in Tile Viewer terms). Find some
free space, then write down the offset. Then, open up
Song.gba. Go to the very end of the rom. The music data is
right there. Make all the tiles appear by clicking on a "next
page" button. Then, click on "move byte back" until the first
tile of your song data begins with the byte BC. MAKE SURE YOU
DON'T ACCIDENTALLY CUT OFF PART OF YOUR SONG. Copy this to the
free space.
Step 5) Inserting the Track
Go to the offset of the song data with the pointers to the
tracks. In Sappy 1.6, this offset is shown next to "Loc".
Simply change the offset to the offset of the song you just
inserted. Last thing - set the first byte in this tile as the
number of tracks in your final song. For example, Kolima
Forest has 6 tracks, so set this number as 6.
NOTE ON REPEATING TRACKS:
To repeat a track, simply replace the end byte B1 as B2, place
the offset to the beginning of the song after that, then set
the bytes after your offest as B1.
For example:
B212 3456
80B1 0000
Tells the song to repeat at the offset 0x654321.
Voila. The ELF method. Enjoy.
And thus how I got 65+ songs in Jupi becomes emminent.
EDIT: Thanks to Neonemesis for pointing this out to me.
If a song appears on the righthand side of Tr.exe (ELF), then that means your song has errors in it. Here's how to fix that:
Go into Anvil Studio, click on "File", then click on "Repair Song". Then, when it prompts you to remove all notes that never end and to remove all notes with a duration of 0, click yes. DO NOT CLICK YES IF IT PROMPTS YOU TO REMOVE NOTES LONGER THAN 1 MEASURE.
Anvil Studio will then remove all of the problematic errors. After doing that, try reinserting the song into the rom.
This is how I import Golden Sun Songs into a Pokemon rom.
Actually, it works for any GBA rom as long as you can find the
music table, but a lot of people have been asking m about it, so I've made a nice tutorial. No pictures this time, unfortunately...
THE ELF METHOD
What you'll need:
The Mid2gba set
Sappy 1.6
A Midi Program (like Anvil Studio)
A Tile Viewer/Hex Editor. Although Tile Viewer is recommended.
Okay,
STEP 1) Extract your song from Golden Sun: The Lost Age from
Sappy.
In order to do this, you'll have to change Sappy's equavalent
of a ini file (sappy.txt). Where it says Golden Sun, you can
replace AGSE with AGFE, then switch the table offset (which is
0x80FC70C, I think for GS; TLA's is at 0x81C4530). Anyways,
after setting those in the sappy.txt file, open up Sappy 1.6
and load in Golden Sun: The Lost Age. Go to the song you want.
Here's a nice table for you with my totally awesome song
names:
Golden Sun Songs
0002 Alfafa
0003 Temple 1
0004 Dalia
0005 Apooji
0006 Normal Gaia Rock Town
0007 Bummed Gaia Rock Town
0008 Sad Song
0009 Another Weird Foreign Song
000a Active Foregn Town
000b Ceremony
000c Lemuria
0041 Entrance to Lemuria
000d Normal Town
000e Happy Litte Island
000f Garoh
0010 That town with the dead dude
0011 Kids song 1
0012 Kids song 2
0014 Airs Rock
0015 Aqua Rock
0018 Gaia Rock
0017 Caves
0019 Statue
001a Jupiter Lighthouse
001b Magma Rock
001c Mars Lighthouse
001d Cold Temple
001e Swamp
001f Sandy Temple
0025 Shaman Village
0026 Sheba's Sad Song
0028 Theme
0029 Sailing
002a Land Travel Before Jupiter Lighthouse
002b Land Travel After Jupiter Lighthouse
002c Golden Sun Rises
003c Ivan Theme
0027 More Evil
0022 Evil Karst and Agaito
0023 Briggs Gets Away!
0024 More Evil Stuff
0035 Even More Evil
003d Can you believe it? More Evil!
003e Prox
003f We're gonna die!
0040 Sad GS Theme 1
0043 Sad GS Theme 2
0044 GS Theme 1
0046 GS Theme 2
0047 Uber Upbeat GS Theme
0048 Sad GS Theme 3
0049 GS Theme 3
004b GS Theme 4 (short)
004a Healing
02bc Vale
02d0 Mt. Aleph
02d2 Sol Sanctum
02e6 Overworld (Broken Seal)
02bd Happy Town (Broken Seal)
02d4 Caves (Broken Seal)
02be Sad Town (Broken Seal)
02bf Teh McCoy's Place
02d1 Kolima Forest
02c0 Tret the Tree
02d7 Mercury Lightouse
02d6 Imil
02c1 Xian
02d5 Desert
02c2 Kalay
02e5 The Ship (Broken Seal)
02c6 Tolbi Song
02c3 Running to the Match
02c4 Colosso Waiting Room
004c Challenge
02d9 Tolbi Cave
02da Hey there, Babi!
02c5 Think you're lucky? (Broken Seal)
0001 Lucky Dice
0037 Bet Lucky Dice!
02d3 Altin Caves
02d8 Dekhan Plateau
02e7 Venus Lighthouse
02ee Battle! (Broken Seal)
02ef Saturos Battle!
02F0 Boss Battle!
0031 Jenna Battle
0032 Felix Battle
0033 Moapa Battle
0034 Posidon Battle
02f1 Fusion Dragon Battle!
02f2 Super Evil Dragon
0036 Doom Dragon Theme
0038 Boat Battle
0039 Karst/Agaito Battle
003a Won!
003b Lost...
(They're in order of GS:TLA songs, then GS songs, then battle
themes. It's a little jumbled, I know...)
Anyways, go to the song number in sappy, then go to the menu
at the top. Under Options, there is a selection called "Loop
Limit". Set this to 1. Then, go to File, then "Export Song to
.mid". MAKE SURE YOUR SONG ISN'T PLAYING OR SAPPY WILL DISPLAY
AN ERROR MESSAGE. Great, now you exported the song into a .mid
file.
This has to be done because GS has a funky music format.
STEP 2) Editing the song
It is necessary to edit the song to put into another game. You
have to do it one track at a time, and the first track has
these little things called "modulations" that are added when
sappy extracts a song. It is necessary to remove all of these
from the song in order for the insturment to make the right
sound.
First, go to Anvil Studio (This is a freeware program you can
download - it's very useful). Open up your midi; the program
will automatically split it into seperate tracks. First, click
on View, the click on "Event Viewer". Make sure you're on the
first track - these modulations only appear on this track.
Remove all the modulations by double clicking the event, then
pressing "Delete Event".
Now, save the file. My generic song file is "Worka.mid.". Now
that you've got a backup, remove all the tracks except for the
first. Save as this file in the Mid2gba/mid folder. It is
imperative that you do this for step 3 to work.
STEP 3) Converting your song into GBA format.
This is very simple. If you have a midi in the mid folder in
the Mid2gba folder, simply click the program "tr". In the
program, click "??" to convert the song. The program makes a
rom file named "Song.gba" with your song data in it.
Step 4) Inserting the song
Open your rom in your Tile Viewer/Hex Viewer (for the sake of
this tutorial, I'm talking in Tile Viewer terms). Find some
free space, then write down the offset. Then, open up
Song.gba. Go to the very end of the rom. The music data is
right there. Make all the tiles appear by clicking on a "next
page" button. Then, click on "move byte back" until the first
tile of your song data begins with the byte BC. MAKE SURE YOU
DON'T ACCIDENTALLY CUT OFF PART OF YOUR SONG. Copy this to the
free space.
Step 5) Inserting the Track
Go to the offset of the song data with the pointers to the
tracks. In Sappy 1.6, this offset is shown next to "Loc".
Simply change the offset to the offset of the song you just
inserted. Last thing - set the first byte in this tile as the
number of tracks in your final song. For example, Kolima
Forest has 6 tracks, so set this number as 6.
NOTE ON REPEATING TRACKS:
To repeat a track, simply replace the end byte B1 as B2, place
the offset to the beginning of the song after that, then set
the bytes after your offest as B1.
For example:
B212 3456
80B1 0000
Tells the song to repeat at the offset 0x654321.
Voila. The ELF method. Enjoy.
And thus how I got 65+ songs in Jupi becomes emminent.
EDIT: Thanks to Neonemesis for pointing this out to me.
If a song appears on the righthand side of Tr.exe (ELF), then that means your song has errors in it. Here's how to fix that:
Go into Anvil Studio, click on "File", then click on "Repair Song". Then, when it prompts you to remove all notes that never end and to remove all notes with a duration of 0, click yes. DO NOT CLICK YES IF IT PROMPTS YOU TO REMOVE NOTES LONGER THAN 1 MEASURE.
Anvil Studio will then remove all of the problematic errors. After doing that, try reinserting the song into the rom.
Last edited by a moderator: