editing music. The ultimate guide
*Been editing music recently in we7I(jap), I thought I may help newbies like myself by giving a tutorial on how to edit music in the game. (hopefully it is easy to follow)
*It is a convergence of Colder’s guide previously put on this forum, and also adds bits of other tutorials like that of quique101 on iss extreme forum(hope it is ok to do this).
*I have also added a guide on how to add larger music files to the BGM files.
(Sorry if this post is long but I thought it was worth it)
1. First you will need these tools (search forums)
nero wave editor,
CDmage1-02-B5 ,
AFS Explorer 2.0 ,
Adxencd.
2. Open up your desired .bin file in cdmag and Extract the file data file (DATA_F.AFS)- (right click and extract to desktop, so easily accessable) leave cd mage open.
(you will find all of the main BGM files which hold all of the music. When you open the DATA_F.AFS in AFSExplorer in step 10.
BGM01 >main menu<47 sec. 150pl.afs> 150pl_auto.afs> BGM_01.bin
BGM02 >league+cup menu<42 sec. 150pl.afs> 150pl_auto.afs> BGM_02.bin
BGM03 >training menu<_? sec. 110training.afs> BGM_03.bin
BGM04 >ML-menu<48 sec. 150pl.afs> 150pl_auto.afs> BGM_04.bin
BGM05 >ceremony after winning a cup etc.<__87 sec. 170demo.afs> 170demo_ending.afs> BGM_05.bin
BGM21 >Highlights<82 sec. 160game.afs> BGM_21.bin
BGM22 >ceremony(ML)<79 sec. 170demo.afs> 170demo_ending.afs> BGM_22.bin
BGM23 >entering the pitch<64 sec. 170demo_enter.afs> BGM_23.bin)
3. next you need your desired tune/music. Enter Nero wave editor and open/load the music you want to put into the game. You will need to edit the song so it fits to the seconds that the actual file is (underlined above).
(if you want to put in a longer piece of music, I have come up with a way, see after this guide ****)
4. Now go to menu bar at the top, go to Edit and then convert sample format, change to 24000hz (type it into box) and choose whether to check the box that says stereo (if unchecked it goes into mono mode, which allows a longer piece of music to be stored in the same amount of space).
5. Now the easiest way to use this file is to save it as the same name as the file you want to replace in the DATA_F.AFS. So if you wanted to replace the main menu music call your new music BGM_01.wav (instead of .bin at end put .wav).
6. Now you need to make a directory for example, music on your root dir C:\ (right click - new – Folder). Then place your edited BMG_01.wav and the adxencd files in this directory.
7. Then go to Start bar on your computer --> Run and type in cmd. (now type everything exactly how it is written here)
cd C:\music (hit enter)
type adxencd BGM_01.wav (hit enter)
This text should appear
Input sound data file: 'BGM_01.wav'
ADX Compressed data file : 'BGM_01.adx'
Sampling frequency : 24000 Hz = Input sound data
No. of channels : 1
Input audio sample : ****** smpl = 23.0 sec <24000 Hz>
ADX output sample : ****** smpl(Blk:****** smpl) = 23.0 sec <24000 Hz>
Then note down the number at the bottom (where I have put the ******). The seconds will also vary depending on how long the file is (should match the amount of space allocated to your BGM, i.e for BGM_01 should be 47sec or below)
8. Now you need to make your music looped so type in:
adxencd BGM_01.wav -lps0 -lpe"******" (hit enter)
Need to place number noted earlier and put it in quotation marks after –Ipe. (quotation marks are very important, so don’t leave out). The next set of text should come up:
Input sound data file: 'BGM_01.wav'
ADX Compressed data file : 'BGM_01.adx'
Sampling frequency : 24000 Hz = Input sound data
No. of channels : 1
Loop Start Pos : 0 smpl Offset = 2048 byte
End Pos : 565906 smpl Offset = 320378 byte
Input audio sample : ****** smpl = 23.0 sec <24000 Hz>
ADX output sample : ****** smpl(Blk:****** smpl) = 23.0 sec <24000 Hz>
Remember the amount of bytes in loop start pos and end pos may differ from above. (also so will seconds)
If the loop start pos and end pos do not come up your music will not be looped in the game.
now you have new file BMG_01.adx. It has been changed into .adx format and is looped.
9. Now open AFSExplorer and go to file and then configuration. Then go to external hex editer path and browse for the DATA_F.AFS you extracted on the desktop. Check the box Ignore descriptor’s length and press OK.
10.Then go to import file and choose DATA_F.AFS file. Click on AFS file in right box and all the files should be shown. Just choose right file i.e for BGM_01.bin you need to open 150pl.afs/ then 150pl_auto.afs/. Then find BGM_01.bin right click and import file, choose your new BGM_01.adx file.
If your file is under the max. size it will import the file successfully (may say something like ‘add zero’s’ this is fine click ok)
11. If you have AFSexplorer 2.0 the .adx file should change automatically to .bin when imported, if not just change manually to .bin.
12. Now to test that the new music has been installed correctly, right click on BGM file and press play sound, your music should be on there.
13. Now you need to import the new DATA_F.AFS file back to main .bin file by using cdmage (which should have been left open from earlier). Right click on DATA_F.AFS in cdmage and then import, find your edited DATA_F.AFS file on your desktop and import (this will take a few minutes, until it has said you are succesfull)
14. Then scan for corruption and regenerate, rebuild if needed.
15. Burn with whatever burning software you choose.
**** I mentioned earlier that you could add music that did go over the max. size of selected bin file, so you can add a whole song if wanted.
I made the whole of ‘HEY YA’ by Outcast fit in the highlights of the game.
1. When you get to the point of importing your music into the desired BGM_**.bin file in AFSExplorer. If it is bigger than max. Size it will not import.
2. to put your large music file in, While in AFSExplorer go to advanced then modify reserve space.
3. In the next box that appears find your file that you want to increase and click once on it, this should then highlight the file.
4. In the top right there should be a box that says bytes reserved for file, use up arrow to increase the size to desired level.
5. Then in top left hand corner press Regenerate AFS! It will ask you to save file. It will not let you save over DATA.F.AFS so you will have to call it something different (I called it DATA.R.AFS- because my name begins with ‘R’ crazy heh). Save it to desktop (so easy to find).
It will then take a while to make file, but when it is finished you should have new file on desktop i.e DATA_R.AFS.
6. You then import this new file (DATA_R.AFS) onto the DATA_F.AFS in cd mage (step 13 in previous guide). (It may say something about ‘truncation’ this is fine press OK.)
When completed the file will still be called DATA_F.AFS but the DATA_R.AFS has been imported.
7.Then continue with steps 14 and 15 in previous guide.
I have only tried this with one music file not sure how much you can tweak the reserve space for more than one music file. It may mess up the file, but in theory it should work as it worked for me (with one file).
Hope this helps people, thought I would add something to these forums instead of take take take.
*Been editing music recently in we7I(jap), I thought I may help newbies like myself by giving a tutorial on how to edit music in the game. (hopefully it is easy to follow)
*It is a convergence of Colder’s guide previously put on this forum, and also adds bits of other tutorials like that of quique101 on iss extreme forum(hope it is ok to do this).
*I have also added a guide on how to add larger music files to the BGM files.
(Sorry if this post is long but I thought it was worth it)
1. First you will need these tools (search forums)
nero wave editor,
CDmage1-02-B5 ,
AFS Explorer 2.0 ,
Adxencd.
2. Open up your desired .bin file in cdmag and Extract the file data file (DATA_F.AFS)- (right click and extract to desktop, so easily accessable) leave cd mage open.
(you will find all of the main BGM files which hold all of the music. When you open the DATA_F.AFS in AFSExplorer in step 10.
BGM01 >main menu<47 sec. 150pl.afs> 150pl_auto.afs> BGM_01.bin
BGM02 >league+cup menu<42 sec. 150pl.afs> 150pl_auto.afs> BGM_02.bin
BGM03 >training menu<_? sec. 110training.afs> BGM_03.bin
BGM04 >ML-menu<48 sec. 150pl.afs> 150pl_auto.afs> BGM_04.bin
BGM05 >ceremony after winning a cup etc.<__87 sec. 170demo.afs> 170demo_ending.afs> BGM_05.bin
BGM21 >Highlights<82 sec. 160game.afs> BGM_21.bin
BGM22 >ceremony(ML)<79 sec. 170demo.afs> 170demo_ending.afs> BGM_22.bin
BGM23 >entering the pitch<64 sec. 170demo_enter.afs> BGM_23.bin)
3. next you need your desired tune/music. Enter Nero wave editor and open/load the music you want to put into the game. You will need to edit the song so it fits to the seconds that the actual file is (underlined above).
(if you want to put in a longer piece of music, I have come up with a way, see after this guide ****)
4. Now go to menu bar at the top, go to Edit and then convert sample format, change to 24000hz (type it into box) and choose whether to check the box that says stereo (if unchecked it goes into mono mode, which allows a longer piece of music to be stored in the same amount of space).
5. Now the easiest way to use this file is to save it as the same name as the file you want to replace in the DATA_F.AFS. So if you wanted to replace the main menu music call your new music BGM_01.wav (instead of .bin at end put .wav).
6. Now you need to make a directory for example, music on your root dir C:\ (right click - new – Folder). Then place your edited BMG_01.wav and the adxencd files in this directory.
7. Then go to Start bar on your computer --> Run and type in cmd. (now type everything exactly how it is written here)
cd C:\music (hit enter)
type adxencd BGM_01.wav (hit enter)
This text should appear
Input sound data file: 'BGM_01.wav'
ADX Compressed data file : 'BGM_01.adx'
Sampling frequency : 24000 Hz = Input sound data
No. of channels : 1
Input audio sample : ****** smpl = 23.0 sec <24000 Hz>
ADX output sample : ****** smpl(Blk:****** smpl) = 23.0 sec <24000 Hz>
Then note down the number at the bottom (where I have put the ******). The seconds will also vary depending on how long the file is (should match the amount of space allocated to your BGM, i.e for BGM_01 should be 47sec or below)
8. Now you need to make your music looped so type in:
adxencd BGM_01.wav -lps0 -lpe"******" (hit enter)
Need to place number noted earlier and put it in quotation marks after –Ipe. (quotation marks are very important, so don’t leave out). The next set of text should come up:
Input sound data file: 'BGM_01.wav'
ADX Compressed data file : 'BGM_01.adx'
Sampling frequency : 24000 Hz = Input sound data
No. of channels : 1
Loop Start Pos : 0 smpl Offset = 2048 byte
End Pos : 565906 smpl Offset = 320378 byte
Input audio sample : ****** smpl = 23.0 sec <24000 Hz>
ADX output sample : ****** smpl(Blk:****** smpl) = 23.0 sec <24000 Hz>
Remember the amount of bytes in loop start pos and end pos may differ from above. (also so will seconds)
If the loop start pos and end pos do not come up your music will not be looped in the game.
now you have new file BMG_01.adx. It has been changed into .adx format and is looped.
9. Now open AFSExplorer and go to file and then configuration. Then go to external hex editer path and browse for the DATA_F.AFS you extracted on the desktop. Check the box Ignore descriptor’s length and press OK.
10.Then go to import file and choose DATA_F.AFS file. Click on AFS file in right box and all the files should be shown. Just choose right file i.e for BGM_01.bin you need to open 150pl.afs/ then 150pl_auto.afs/. Then find BGM_01.bin right click and import file, choose your new BGM_01.adx file.
If your file is under the max. size it will import the file successfully (may say something like ‘add zero’s’ this is fine click ok)
11. If you have AFSexplorer 2.0 the .adx file should change automatically to .bin when imported, if not just change manually to .bin.
12. Now to test that the new music has been installed correctly, right click on BGM file and press play sound, your music should be on there.
13. Now you need to import the new DATA_F.AFS file back to main .bin file by using cdmage (which should have been left open from earlier). Right click on DATA_F.AFS in cdmage and then import, find your edited DATA_F.AFS file on your desktop and import (this will take a few minutes, until it has said you are succesfull)
14. Then scan for corruption and regenerate, rebuild if needed.
15. Burn with whatever burning software you choose.
**** I mentioned earlier that you could add music that did go over the max. size of selected bin file, so you can add a whole song if wanted.
I made the whole of ‘HEY YA’ by Outcast fit in the highlights of the game.
1. When you get to the point of importing your music into the desired BGM_**.bin file in AFSExplorer. If it is bigger than max. Size it will not import.
2. to put your large music file in, While in AFSExplorer go to advanced then modify reserve space.
3. In the next box that appears find your file that you want to increase and click once on it, this should then highlight the file.
4. In the top right there should be a box that says bytes reserved for file, use up arrow to increase the size to desired level.
5. Then in top left hand corner press Regenerate AFS! It will ask you to save file. It will not let you save over DATA.F.AFS so you will have to call it something different (I called it DATA.R.AFS- because my name begins with ‘R’ crazy heh). Save it to desktop (so easy to find).
It will then take a while to make file, but when it is finished you should have new file on desktop i.e DATA_R.AFS.
6. You then import this new file (DATA_R.AFS) onto the DATA_F.AFS in cd mage (step 13 in previous guide). (It may say something about ‘truncation’ this is fine press OK.)
When completed the file will still be called DATA_F.AFS but the DATA_R.AFS has been imported.
7.Then continue with steps 14 and 15 in previous guide.
I have only tried this with one music file not sure how much you can tweak the reserve space for more than one music file. It may mess up the file, but in theory it should work as it worked for me (with one file).
Hope this helps people, thought I would add something to these forums instead of take take take.