- Title -
Not much to say here... This is a tutorial on editing the .S file... Yup, the mysterious .S file that contains MIDI music's data!
Let's start!
Changing Speed
Changing Volume
Changing an Instrument
MIDI Events
That's it, FOR NOW!
Not much to say here... This is a tutorial on editing the .S file... Yup, the mysterious .S file that contains MIDI music's data!
Let's start!
Changing Speed
Spoiler:
If you use Anvil Studio, like me, you might've noticed that there's a speed limit of 300, but you've seen some music that their speed is over 300. Example: Vs. Turner (Pokémon Vega [510 speed lololol]). This is how you do it.
Open the .S file in notepad and search for the following:
Where X stands, put the current speed and where the M stands, put the name of the .S file (example: if the name is battle.s, I will change X to "battle").
Now, to edit the speed, replaceX with the speed you want.
Open the .S file in notepad and search for the following:
Code:
.byte TEMPO , [I][B]X[/B][/I]*[I][B]M[/B][/I]_tbs/2
Now, to edit the speed, replaceX with the speed you want.
Changing Volume
Spoiler:
This one was found by Team Fail, so credit him!
If you once imported a MIDI from a DS game, you might noticed it didn't play in-game. It's because the music is too loud for the GBA to play.
Find the following:
Replace X with the name of the .S file.
Now, replace "127" with the volume you want. I recommend to set it to 79.
If you once imported a MIDI from a DS game, you might noticed it didn't play in-game. It's because the music is too loud for the GBA to play.
Find the following:
Code:
.equ [I][B]X[/B][/I]_mvl, 127
Now, replace "127" with the volume you want. I recommend to set it to 79.
Changing an Instrument
Spoiler:
Navigate to the start of the track and find the following:
Replace X with:
Replace it with:
Code:
.byte VOICE , [I][B]X[/B][/I]
Code:
Current instrument -1
Code:
Instrument you want it to set to -1
MIDI Events
Spoiler:
Program Change
Panpot
Spoiler:
Write the following in the position you want the program change to start:
Replace X with the instrument you want it to set to -1.
Code:
.byte VOICE , [B][I]X[/I][/B]
Panpot
Spoiler:
Write the following in the position you want the panpot to start:
Replace X with:
Code:
.byte PAN , c_v+[I][B]X[/B][/I]
Code:
0 = Left
64 = Middle
127 = Right
That's it, FOR NOW!
Last edited: