raw2asm by raygun

Choose RAW audio file to add to ROM:

Must be mono. Must be signed 8bit PCM Raw headerless. Frequency must match game's natural frequency (see below)

Import offset: (don't touch this if you dont know what you're doing)

Songtable offset:

Frequency:     Custom:

Repeat?

Converts a raw audio file to asm that can be imported into (almost) any GBA rom using armips. Does NOT take .wav audio. See below for instructions.


Credits:




Instructions for use:

Programs you will need:

  1. Open the audio file you want to import in Audacity.
  2. On the menu bar go to Tracks > Mix Stereo Down to Mono. If the track is already mono, this option will be greyed out and this step can be skipped. In some versions of Audacity, the option may be under Tracks > Mix > Mix Stereo Down to Mono.
  3. On the bottom left corner of the window, change the Project Rate (Hz) to the natural frequency for your game.
  4. On the menu bar go to File > Export > Export Audio.
  5. For the filetype ("Save as type:") select other uncompressed file.
  6. For the header, select RAW (header-less).
  7. For the encoding, select Signed 8-bit PCM. Then hit save.
  8. In the edit metadata window, be sure to clear any metadata that may exist in the file, such as comments, loop data, export info, etc.
  9. Upload the exported audio to this form.
  10. Ignore the first textbox if you dont know what you're doing. If the rom you're importing the song into is bigger than 8192KB, you will need to increase this number.
  11. In the second textbox, put in the songtable ID for the song you want the file go over. To find this, open the rom in Sappy, navigate to the song you want to replace, and copy in the first number, which says "Table". Change the 2nd 0 (the number right after the x) to an 8, and remove the first two characters (the "0x"). Make sure this number is 7 digits long and starts with an 8.
  12. Select your game in the dropdown provided, or, if it is not in the list, write its natural frequency into the textbox beside it (be sure to tick the proper radio button as well).
  13. Place the .asm file downloaded from this form, armips.exe, and a copy of the rom of the game you want to import the song to, renamed to "input.gba", all in the same folder.
  14. Drag the .asm file onto armips.exe, and enjoy!

How to find the frequency of a game:

  1. Open the rom file in Sappy.
  2. Export any sound file in .wav.
  3. Open the .wav in Audacity.
  4. The Project Rate (Hz) in the bottom left corner of the window will be the frequency. Put that in the 2nd text box of this page.