Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Draconius GO
Reply
 
Thread Tools
  #1    
Old August 31st, 2013 (7:50 AM). Edited September 1st, 2013 by xGal.
xGal xGal is offline
Mhm
     
    Join Date: Nov 2011
    Location: A tree
    Gender: Other
    Nature: Relaxed
    Posts: 243
    - 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
    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:

    Code:
        .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
    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:
    Code:
        .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
    Spoiler:
    Navigate to the start of the track and find the following:
    Code:
        .byte        VOICE , X
    Replace X with:
    Code:
    Current instrument -1
    Replace it with:
    Code:
    Instrument you want it to set to -1


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


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


    That's it, FOR NOW!
    __________________
    Reply With Quote

    Relevant Advertising!

    Reply

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account

    Sponsored Links
    Thread Tools

    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 -8. The time now is 5:24 AM.