Golden Sun Hacking Community

Golden Sun Resources => Misc. GS Hacking => Topic started by: MaxiPower on 03, January, 2009, 08:32:00 PM

Title: Golden Sun Music editing
Post by: MaxiPower on 03, January, 2009, 08:32:00 PM
just found this video posted on youtube.

http://ie.youtube.com/watch?v=dHyRkH4XXhs (http://ie.youtube.com/watch?v=dHyRkH4XXhs)

just thought i would share it
Title: Golden Sun Music editing
Post by: Atrius on 03, January, 2009, 11:50:00 PM
Ah, that has to be Charon from Golden Sun Realm's work.

When I told her the Pokemon games for GBA, and Golden Sun use the same music data format I expected her to put Golden Sun music in her Pokemon hack, not the other way around  
Title: Golden Sun Music editing
Post by: Charon on 01, February, 2009, 08:06:00 PM
After seeing this, I decided to sign up here. Sorry if this is considered a revive.

Yeah, I did a bit of GS:TLA music hacking. Here are some more videos if you are interested:
Diamond And Pearl Music in GS (pictures) (http://www.youtube.com/watch?v=y_rMowIs3Go)
Felix for Pokemon Battle, Pokemon Battle for Felix (http://www.youtube.com/watch?v=jeAjb-XCbyg)

Also, very recently, I discovered how to edit the actual insturments that make up the soundtrack, as shown in this video:
Gaia Rock: Before and After (http://www.youtube.com/watch?v=30vhRex0RKc)

To Atrius:
Well, while I was experimenting with Tile Molester and Pokemon Jupiter, I found out a way to change the actual sound of the instruments.

Basically, if you look at the instrument data, it turns out that the weird bytes all over the place are the pointers to the data. Not like you'd actually be changing the instruments in GS, but it explains the reason why you were having trouble transfer the instruments into Pokemon Ruby. It could be also possible to add more instruments through this method. If you transfer a 8 bit, 11,250 Hz Wav file to a GBA Pokemon Rom using Pokecry, its possible to transfer that file to instrument data and play that sound as an insturment.

Looking at the GS:TLA Instrument data, I realized something that I hadn't noticed for a long while - all of the songs use the same instruments! Why Pok
Title: Golden Sun Music editing
Post by: Atrius on 01, February, 2009, 10:54:00 PM
QuoteIt could be also possible to add more instruments through this method. If you transfer a 8 bit, 11,250 Hz Wav file to a GBA Pokemon Rom using Pokecry, its possible to transfer that file to instrument data and play that sound as an insturment.

Mmm... Actually the way GBA games handle music & sound effects is identical.  A sound effect like that is usually just a music track that only plays one note using a special instrument that's actually the audio clip for the sound effect.  Also, the instrument data itself is virtually identical to a Wav file, if you knew how you could even, oh... let's say... Insert Wav format voice clips to add voice acting to a game    
Title: Golden Sun Music editing
Post by: Charon on 02, February, 2009, 03:30:00 PM
Hmm, I guess I was trying to say that... Pokecry is a nifty program that inserts the wavs for you, so that's why I brought it up. Unfortunately, it only works for Pokemon R/S (and maybe FR/LG, but I don't really know), but transfering the bytes is pretty easy with Tile Molester anyways, so...

I figured that out yesterday, actually, so I'm going to mess around with it for a while.

Hey, Atrius, I have a question. I noticed that there are a few bytes from the begining of the sound (I think it's the 8th byte in; or maybe it's a word, I suck with all this lingo), that seems to change the frequency of the sound. Do you happen to know how much you have to change the number to play an octave lower? Because many of the String Ensamble and Flute parts are a bit... high... and I really don't want to go and change every single song to accomidate.
Title: Golden Sun Music editing
Post by: Atrius on 02, February, 2009, 03:53:00 PM
1 Word = 4 Bytes
1 Byte = 2 Hexadecimal characters

So yes, it's a Word in.

I'm not knowledgeable when it comes to music at all, but I believe to increase/decrease a frequencies octave you multiply/divide it by 2.


In case you're curious you can convert that value to the actual frequency it represents by dividing it by 1024.
Title: Golden Sun Music editing
Post by: Charon on 03, February, 2009, 10:46:00 PM
Yep, you're right. (test'd!)

I already began to change the tracks, though... they needed a remixing, anyways. I'm not going for pure perfection, but something really close to it.
Title: Golden Sun Music editing
Post by: Charon on 07, February, 2009, 11:22:00 AM
MEH. This is annoying me.

Where is the offset to the main synth insturment in Golden Sun (the one that plays the lead track in the original battle theme, NOT the polysynth but it sounds like the Lead 2 Sawtooth)?
Title: Golden Sun Music editing
Post by: Charon on 07, February, 2009, 01:27:00 PM
As I thought. Pokemon has those too.

So with a little messing around it could be possible to play the sound as is? That's weird, because polysynth is completely normal.
Title: Golden Sun Music editing
Post by: Atrius on 07, February, 2009, 01:38:00 PM
Does it?  Can you tell me where one is?
Title: Golden Sun Music editing
Post by: Charon on 07, February, 2009, 01:58:00 PM
If you're refering to Polysynth (It's used in the Jenna Theme), it's here in the original GS: 0x81315D0

I also found the Bird Tweet: 0x142a80

These are both referring to the original GS by the way...

If you're refering to the System made sounds, they're in insturment data, and have no offset to their information. It's kind of weird. I still don't get how it exactly works yet (which is why in Sappy Synth instuments do not play for Pokemon Roms)
Title: Golden Sun Music editing
Post by: Atrius on 07, February, 2009, 02:30:00 PM
Both of those are WAV samples.

Aside from it's direct sound channel the GBA also has 4 Programmable Sound Generators.

The part of the instrument data that looks like 0x00003C00 for most of TLA's instruments is what decides which channel an instrument is played on.  The last hex digit at the right is the important one for this, if it's 0 or 8 it's played on the direct sound channel and uses an offset.  1, 2, 3, 4, 9, A, B, and C all use a different programmable sound channel, and only 3 and B need an offset, but their data is different from what you'd see for 0, or 8.  These generate the audio through the GBA's hardware, while the instrument I referred to in my post before my last post generates it through software, which I don't believe Pokemon's music system is programmed to do.

There are also instrument types that point to whole sets of other instruments, like drum kits.
Title: Golden Sun Music editing
Post by: Charon on 07, February, 2009, 05:05:00 PM
Yep, both of those are WAVs.

I've seen WAV's and the last thing you mentioned used in Pokemon, but not sure about the thing in the middle. I'll check it out.

It turns out the Bird Tweet is the first sound it plays when you raise your stats (there are two, the first is played when the energy or whatever is going on your character or party, it's played once. The second is when the sword/shield animation is played and it's played for each character the stat boosts act on).
Title: Golden Sun Music editing
Post by: Atrius on 08, February, 2009, 12:31:00 AM
That would be... 0x081E68B4 I believe.

Oooh, that'd be one of those weird instrument types I mentioned in the message I sent you on YouTube that's programmatically generated.  Even if you transferred it's data into Pokemon perfectly it wouldn't be able to play it.

You can tell which ones those are when the 8 bytes following the frequency are all set to zero.  Usually those values would indicate how long the audio data is, and where to loop it at.


EDIT: Sorry, I was looking at The Lost Age, in Golden Sun that instrument is at 0x0811DAC8

This post has been edited by Atrius on Feb 7 2009, 12:34 PM
Title: Golden Sun Music editing
Post by: Rolina on 08, February, 2009, 08:51:00 PM
Holy crap... checking out some of those vids of GBA music in Pokemon...

Jenna's Battle theme sounds really good!  In fact, many of the GS themes sound great on it.

On the other hand... Pokemon on GS is really high...  guess the two are set an octave apart.
Title: Golden Sun Music editing
Post by: Charon on 08, February, 2009, 09:33:00 PM
Yeah, I found out the hard way that GS's insturments are offsetted a little unusually.

In other news, I inserted some of Golden Sun's insturments into the Pokemon Rom. Let me tell you, the first route song (GS Overworld) and the Pokemon Center (Regular Sanctum) sound perfect. You will be having flashbacks hearing them.

I'm getting a beta of the IPS up in like 2-3 days. It's going to be a jaw dropper. I'll post a link here, since I'm getting quite a bit of support from Atrius, Maxipower and Nick.
Title: Golden Sun Music editing
Post by: MaxiPower on 09, February, 2009, 03:07:00 PM
Quote from: Charon on 08, February, 2009, 09:33:00 PMI'm getting a beta of the IPS up in like 2-3 days. It's going to be a jaw dropper. I'll post a link here, since I'm getting quite a bit of support from Atrius, Maxipower and Nick.
I look forward to it. cant wait to hear the music in a different tone
Title: Golden Sun Music editing
Post by: Charon on 09, February, 2009, 03:25:00 PM
Sweetness.

By the way, is anybody interested in the ELF method of inserting Music Hacking? People are bugging me to put it up. I'll get a video on Youtube ASAP.

It's better than Sappy's assembler for 3 reasons - it works for all GBA roms, you control everything so if you mess up it's easier to fix, and it always works if you follow through correctly. The only real disadvantage is if you really suck at using a tile viewer and don't understand how the palattes work, you're bound to screw something up.

I think it's possible to do the same in a hex editor, but I prefer doing things in a more visual manner =P
Title: Golden Sun Music editing
Post by: Cerulyth on 09, February, 2009, 06:38:00 PM
Hm.  Can I ask how you're accomplishing this?  Because I can get Pok
Title: Golden Sun Music editing
Post by: Charon on 09, February, 2009, 09:57:00 PM
THE ELF METHOD



Roms used in this tutorial:

AGFE: Golden Sun: The Lost Age (a lot of people have been asking how I get the music into Pokemon, so I'm making a tutorial. This method works for any song, and it's more reliable than Sappy's built in assembler. Sappy doesn't even work on my computer anyways...)



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 Alhafra
0003 Temple 1
0004 Dalia
0005 Apooji
0006 Normal Izumo
0007 Bummed Izumo
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.

You may start loving me for life now.
Title: Golden Sun Music editing
Post by: Cerulyth on 11, February, 2009, 05:54:00 PM
I officially love you for life, Charon.
Title: Golden Sun Music editing
Post by: MaxiPower on 11, February, 2009, 07:13:00 PM
Charon do you know any programs that you can create new music from scratch that can be imported into the games, and that also sounds familiar
Title: Golden Sun Music editing
Post by: Charon on 12, February, 2009, 01:36:00 PM
I use Anvil Studio. It's free and it's got everything I need.

It's important to make sure your tracks lines up exactly, or else the repeat will be funky.
Title: Golden Sun Music editing
Post by: zip_dog12 on 12, June, 2009, 06:12:00 PM
Hello. I just registered to this board because I have a quick question about this ELF method. I downloaded the only Sappy 1.6 I could find on the Internet. The file saved as sappy16.zip, I extracted it and...huh? No sappy.txt anywhere. There is of course the readme_sappy.txt, but nothing similar. My question is how do I get the file sappy.txt or, for that matter, make Golden Sun TLA compatible in Sappy. Is there any other download available that has sappy.txt? Thanks.
Title: Golden Sun Music editing
Post by: zip_dog12 on 12, June, 2009, 06:36:00 PM
Lol I can't delete my other post. Anyway, I think I've figured out two things:

1) I'm a noob at this.
2) I'm supposed to open up sappy.lst in tile viewer, correct? I changed the file extension to .txt and discovered that it's definitely the right file. At this point I'll try to figure it out. I guess I'd better get tile viewer first :P
Title: Golden Sun Music editing
Post by: Charon on 12, June, 2009, 07:34:00 PM
Uh... no. What you do is you put the MIDI in the mid folder. Then, you use the program Tr. Then, you open Song.gba in Tile Molester. The music data is already compiled in the GBA's format.
Title: Golden Sun Music editing
Post by: Matrim on 15, June, 2009, 12:44:00 PM
I also have a probelm with sappy. like mentioned before there is no sappy.txt but there is a sappy.lst to modify. I changed the AGSE to AGFE abd changed whta i believe is the offset, which was the only non 0 entry, it still did not work.

AGFE, Golden Sun (U), sapphire, blank, blank, 0x81C4530, 0, 0
Title: Golden Sun Music editing
Post by: Salanewt on 15, June, 2009, 03:47:00 PM
QuoteI also have a probelm with sappy. like mentioned before there is no sappy.txt but there is a sappy.lst to modify. I changed the AGSE to AGFE abd changed whta i believe is the offset, which was the only non 0 entry, it still did not work.

I have a similar problem. Th only thing that might be different for me is that I am not sure where to change AGSE to AGFE.

EDIT: Would it be possible to somehow add music without replacing it? If it is (or is not), then is it possible to add SNES music files (using different programs, but adding them in the same way as with only GBA)?

Please help me, and thank you in advance.
Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 2 2009, 01:02 PM
Title: Golden Sun Music editing
Post by: Rolina on 15, June, 2009, 10:06:00 PM
So, do y'all know if there's room to add more instruments if needed?
Title: Golden Sun Music editing
Post by: Salanewt on 02, July, 2009, 02:06:00 PM
QuoteSo, do y'all know if there's room to add more instruments if needed?


I was wondering about this myself. I also happen to be a mostly new hacker, but i have had some easy practice with editors (and a little bit with a HEX editor). Anyway, is it possible to change/add instruments, and is ti possible to add music without replacing any. Also, I am sure that this is not done by music editing, but is there a way to change where you hear the music?

Thank you in advance, and please have a nice day.
:MercurySet:  
Title: Golden Sun Music editing
Post by: Atrius on 02, July, 2009, 09:46:00 PM
Yes, there is room.
Title: Golden Sun Music editing
Post by: Aile~♥ on 03, July, 2009, 12:05:00 AM
This is a little bit off-topic here, but... Is there room to add more playable characters and enemies, and if so, when are there going to be "New" and "Import" options in the editor for things like Music, sprites, playable, characters, enemies, and Psynergies.

I just decided to post it here because you were discussing ROM space.
Title: Golden Sun Music editing
Post by: Charon on 03, July, 2009, 12:42:00 PM
Quote from: jdmj90 on 15, June, 2009, 12:44:00 PMI also have a probelm with sappy. like mentioned before there is no sappy.txt but there is a sappy.lst to modify. I changed the AGSE to AGFE abd changed whta i believe is the offset, which was the only non 0 entry, it still did not work.

AGFE, Golden Sun (U), sapphire, blank, blank, 0x81C4530, 0, 0
AGFE, Golden Sun: The Lost Age (U), sapphire, blank, blank, &H1C4530, 0, 0
BPRE, Golden Sun (U), sapphire, blank, blank, &H4A32CC, 0, 0

is what you want.

You need the &H instead of the 0x it seems.

And yes, it is possible to change instruments and their corresponding PCM audio wavs.
Title: Golden Sun Music editing
Post by: Salanewt on 03, July, 2009, 04:22:00 PM
Hello, Charon? I was just wondering... Where did you find the programs? I have been searching for them, but I have only found 2 of them. Sappy and one of the others. Please help me if you get a chance, Google is not finding the websites for me.

Have a nice day.
:MercurySet:  
Title: Golden Sun Music editing
Post by: Charon on 03, July, 2009, 05:17:00 PM
Which two?

Tr.exe comes with the mid2gba package.
Title: Golden Sun Music editing
Post by: Salanewt on 03, July, 2009, 05:20:00 PM
Oh, thank you. It was probably the package that I was unable to find. Anyway, than you. I will try searching for everything again on Sunday (or Monday, if I do not have any time on Sunday).

Have a nice day.
:MercurySet:  
Title: Golden Sun Music editing
Post by: Matrim on 03, July, 2009, 08:25:00 PM
I still don't find any music with that line of code. its still all blank
Title: Golden Sun Music editing
Post by: Charon on 03, July, 2009, 08:50:00 PM
That's because with that, there's no playlist. You can still play the songs by searching through the hex numbers though.
Title: Golden Sun Music editing
Post by: Charon on 06, July, 2009, 03:06:00 PM
To make it loop at a certain point, you need two parts of a song. Part one will play, then at the end, it will go B3 [pointer to part 2] B1. Then, loop part 2 normally.

On Edit 3-

In the Sappy folder, there's a folder labeled "Data". Go in there, then there's a file called Sappy.lst. Open that up in notepad. Add these two (copy and paste) into new lines:
AGFE, Golden Sun: The Lost Age (U), sapphire, blank, blank, &H1C4530, 0, 0
BPRE, Golden Sun (U), sapphire, blank, blank, &H4A32CC, 0, 0

Save.

Golden Sun and Golden Sun: The Lost Age, should work.
Title: Golden Sun Music editing
Post by: Salanewt on 06, July, 2009, 03:12:00 PM
Thank you so much Charon. It appears to be working now. Also, this might me slightly out of topic, but I will add a question so this post does not completely belong in another topic.

Do you know how I can upload a patch of a hack so it is available for more systems than just Windows?

Also, is it possible to change it so it will will loop, but so it plays like this (part 1+2, part 2, part 1+2, part 2...)? I do not really need to know, but other people might need this question answered for some reason.

Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 6 2009, 02:12 PM
Title: Golden Sun Music editing
Post by: Charon on 06, July, 2009, 03:15:00 PM
Quote from: Salanewt on 06, July, 2009, 03:12:00 PMDo you know how I can upload a patch of a hack so it is available for more systems than just Windows?

Also, is it possible to change it so it will will loop, but so it plays like this (part 1+2, part 2, part 1+2, part 2...)? I do not really need to know, but other people might need this question answered for some reason.
First question - that's more of an emulator issue :\

Second question: Make part 2 and part 3 the same exact thing. Then...

Part 1 plays.
B2 [pointer to part 2] B1
Part 2 plays.
B2 [pointer to part 3] B1
Part 3 plays.
B2 [pointer to part 1] B1
Title: Golden Sun Music editing
Post by: Salanewt on 06, July, 2009, 03:26:00 PM
Oh, thank you. I have one last question (I hope for now). In Anvil Studio, I do not have "Event Viewer", but I have "Event List" Is this the same? If it is, then do you know how to remove the modulations? I am unable to find it.

Thank you in advance, and thank you for all of your help.

Have a nice day.
:MercurySet:  
Title: Golden Sun Music editing
Post by: Blazer on 06, July, 2009, 05:19:00 PM
QuoteSecond question: Make part 2 and part 3 the same exact thing. Then...

Part 1 plays.
B2 [pointer to part 2] B1
Part 2 plays.
B2 [pointer to part 3] B1
Part 3 plays.
B2 [pointer to part 1] B

Wow, that's genius. :D So doing this I'd have to insert each "part" as a different song, and then link it through the repeat code stuff, so I'd have to insert like 4 "songs" but it'd all use 1 header. O_o I was afraid I'd have to do something like this, but i guess it's unavoidable, huh? Still, at least it's possible. :P And I could be wrong, so... *waits for confirmation*
Title: Golden Sun Music editing
Post by: Atrius on 06, July, 2009, 05:54:00 PM
Actually you could do it without a duplicate of part 2 this way:

Part 1 plays
B2 [Pointer to part 2] B1
Part 2 plays
B4 B3 [Pointer to part 2] B2 [Pointer to part 1] B1
Title: Golden Sun Music editing
Post by: Blazer on 06, July, 2009, 06:27:00 PM
Even better, thanks for the help-- it's useful for songs with "intro's" and then a specific part that loops over and over. :D
Title: Golden Sun Music editing
Post by: Salanewt on 06, July, 2009, 07:58:00 PM
I have come across a problem (I hope that these end soon). Anyway, when I load the Midi file on Anvil Studio, and I go to "View", I have Event List, but not Event Viewer. Also, when I click on Event List, it is similar to what you describe, but when I delete the first event (#!), the song sounds the same. If you know what I am doing wrong, if anything, then please tell me. By the way, do I need to extract music if I want to insert music from other games?

EDIT: Also, I can only delete 1 track at a time... Is this normal? Oh yes, to insert songs into a game, do they have to be midi files as well, or can I just have them be regular songs? Also, if I did not use Sappy to obtain the midi Files, then do I need to use Anvil Studios?


Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 6 2009, 07:35 PM
Title: Golden Sun Music editing
Post by: Charon on 06, July, 2009, 09:00:00 PM
Salanewt -

Question one - that is completely normal. Sappy adds those for some reason, and when placed in the ROM they cause issues.

Question two - Anvil Studio can delete tracks only one at a time. Another method is to copy the tracks to a new song and set the BPM (tempo).

Question three - they must be midis.

Question four - You could try doing it all at once, but you have to find all the offsets and insert the repeats as such, which is difficult. I separate them because I have little confidence in my abilities to not make a mistake ;-;

QuoteActually you could do it without a duplicate of part 2 this way:

Part 1 plays
B2 [Pointer to part 2] B1
Part 2 plays
B4 B3 [Pointer to part 2] B2 [Pointer to part 1] B1
Wait, what does the B4 command do? Is it an alternative jump? I know that if you use B3 that it won't repeat again...
Title: Golden Sun Music editing
Post by: Atrius on 06, July, 2009, 09:17:00 PM
B4 jumps back to after the B3 command.
Title: Golden Sun Music editing
Post by: Salanewt on 06, July, 2009, 09:25:00 PM
Thanks Charon. I am not exactly sure what you are talking about in your reply to my second question. Also, you are missing the ']' in your Quote command.

I found a website to midi's, but I am not completely sure if that is all they have, so I will browse the website before (possibly) posting a link.

Have a nice day.
:MercurySet:  
Title: Golden Sun Music editing
Post by: Atrius on 06, July, 2009, 09:28:00 PM
vgmusic.com (http://www.vgmusic.com/) is an excellent website for video game music in midi format.
Title: Golden Sun Music editing
Post by: Salanewt on 06, July, 2009, 09:30:00 PM
Ooh, thank you Atrius. I think that this one is better than the one that I found.

Oh yeah, when deleting the tracks, am I supposed to delete every single track except for the one, or not?

Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 6 2009, 08:32 PM
Title: Golden Sun Music editing
Post by: Salanewt on 07, July, 2009, 01:04:00 AM
Oh, I have another question... I know that you told us how to make the song loop, but do you know how to make it loop from a certain point, and not at the beginning?

EDIT: There was something missing on my computer... It might be missing on yours (not you specifically), so here is a mini-tutorial that I found about installing it. This thing is required to get Sappy to work.

QuoteNote: If you already have a copy of comdlg32.ocx, backup the existing file to a different folder and delete it from System32 folder.

Title: Golden Sun Music editing
Post by: numbaman5 on 08, July, 2009, 06:53:00 AM
I think at some point we should extract the whole music system into a program that makes the gba midi files.  

This post has been edited by numbaman5 on Jul 8 2009, 06:00 AM
Title: Golden Sun Music editing
Post by: numbaman5 on 08, July, 2009, 07:07:00 AM
Quote from: Salanewt on 15, June, 2009, 03:47:00 PM*I am not sure where to change AGSE to AGFE.*

Open sappy folder/data/sappy.lst with notepad
in notepad Ctrl + F type "AGSE" it will take you to what you have to change. Im still not sure where i change the offset in the file though.  
Title: Golden Sun Music editing
Post by: Salanewt on 08, July, 2009, 08:40:00 AM
Oh, thank you, but I know now. In one of the previous posts, somebody typed up exactly what you should have (I think it was Charon, but my memory is not the best when I wake up).

Have a nice day.
:MercurySet:  :MercuryDjinni:  
Title: Golden Sun Music editing
Post by: numbaman5 on 08, July, 2009, 07:49:00 PM
Thanks allot for the tutorial, Im still beginner to hacking, but I do alllot of audio editing since im in a band. I edited the midi files with knew instruments, i guess you cant change the instruments in the rom? It makes a  nice song regardless :P
Title: Golden Sun Music editing
Post by: Salanewt on 29, September, 2009, 06:23:00 PM
Hey, Charon? I am going to put your guide on Yoshi's Lighthouse, okay (you will still have full credit)?

Also, I think I am going to end up editing this post soon, so please do nto forget about it.

Have a nice day.
:MercurySet:  :MercuryDjinni:  

Edit: I aught to give this a try again, but I just realized that Gaia Rock would be awesome in Mario and Luigi... If I can get everything to work, you shall see what I mean.