PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive


Archive Old threads that serve no purpose are here.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 31st August 2013, 03:52 PM   #1
Join Date: Jul 2013
Location: Israel
Posts: 36
Default Editing .S File [GBA]

- 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
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:

    .byte    TEMPO , X*M_tbs/2
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.

Changing Volume
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:
    .equ    X_mvl, 127
Replace X with the name of the .S file.

Now, replace "127" with the volume you want. I recommend to set it to 79.

Changing an Instrument
Navigate to the start of the track and find the following:
    .byte        VOICE , X
Replace X with:
Current instrument -1
Replace it with:
Instrument you want it to set to -1

MIDI Events
Program Change
Write the following in the position you want the program change to start:
    .byte        VOICE , X
Replace X with the instrument you want it to set to -1.

Write the following in the position you want the panpot to start:
    .byte        PAN   , c_v+X
Replace X with:
0 = Left
64 = Middle
127 = Right

Volume Change

    .byte        VOL   , 127*X_mvl/mxv
Replace X with the .S filename and then, replace 127 with the volume you want it to set to.

That's it, FOR NOW!
Odd Jokes:

#1 - I saw Saw
#2 - Mateo's name is NOT Matt!
#3 - Karatekid is a n00b ROM hacker (;
#4 - LaZ doesn't like deadly metal music (;
#5 - Mateo doesn't like Flannery
#6 - Mateo is a bad guy ;(
#7 - Enough jokes about Mateo (;
#8 - I EM 7 YIRZ OLD
#9 - Ann Oldman
#10 - Stunfisk
#11 - Smexy Lotads

Last edited by Gal; 11th September 2013 at 07:35 PM. Reason: Just a little update
Gal is offline  
Sponsored Links

editing, file, gba, [Document]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:33 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts