Touhou BGM Changer
A new tool that allows you to change the BGM for all of the Windows Touhou games has been released!
The editor will allow you to supply new BGM tracks for any of the Windows games; the tables on the page give more information about the looping points in each track, to help you make the new BGM loop seamlessly.
A translation of the readme.txt for the game follows (thanks to Solamarle for the translation):
———-
* Warning *
This tool is completely unrelated to Team Shanghai Alice or the Priest.
Please don’t contact them with questions about this tool.
Touhou Series BGM Replacer
* About
This is a tool to replace the BGM data in Touhou games.
* Requirements
OS: XP (Only XP is supported. Win2k is probably OK, but who knows about Vista or 9x)
DirectX: 8 or higher
HDD: at least 1GB free space
Touhou: see the loop tables in the appendix
* File manifest
thbgmChg.exe: the program
mp32wav.dll: required for processing
dump.ax: required for processing
readme.txt: this file
List: the folder where you put the music index files
* Usage
1. First, decide what songs you want to use.
MP3 and WAVE files are supported.
Please name the files “tracknum.mp3″ or “tracknum.wav”.
tracknum is the internal game track number for the track you’re replacing.
Exception: If you want to replace “Sleepless Night in an Eastern Country” from StB,
please use 4.mp3 or 4.wav.
2. Run thbgmChg.exe
3. Select the game you’re replacing the BGM for.
(See the appendix.)
4. Enter the path to the BGM data.
Once you do this, the “Open” button will become active.
For EoSD, give the path to the BGM folder – for all other games, give the path
to the thbgm.dat file.
5. Enter the path to the music you’re using to replace the BGM.
Once you do this, the “Open” button will become active.
6. Select the file type of the music you’re using to replace the BGM.
WAVE and MP3 are supported.
7. Press the Data Check button.
Select the song you want to replace from the list.
8. Place a checkmark next to the song you want to replace and press “Start”.
* It might take a while for this to finish.
9. Close the program when the new BGM data file has been created.
* NOTES
Something about MoF unofficial patches?
Since EoSD’s music data is just WAV files, it’s probably best to just replace them
without using the tool.
* Going back to the original music
thbgmChg simply renames the original data file when it does its processing, so to
revert to the original music just rename the backup to the original filename.
The BGM data is copied to a .bak file.
You can also copy the original file from the install CD or a backup.
* Touhou games’ music data files
* EoSD: the original music data is in the “bgm” folder on the install CD
* PCB: the original music is in “thbgm.dat” on the install CD
* IaMP: the original music is in the “thbgm75.dat” file on the install CD
* IN, PoFV, StB, MoF: the original music is in the “thbgm.dat” file on the install CD
* Music index files
The music index file is the same format used in the ThbgmExtractor program.
You should be able to use the same index files in each program.
Please put your index files in the List folder.
(The BGM extractor, though, uses a different method for EoSD.)
* When a new game comes out
All you should need to do is get a music index file for new games when they come out.
Since they’re the same format ThbgmExtractor uses, you can probably get them from
your favorite webpage or upload site.
* FAQ
* I get an error trying to convert the data.
The converter uses DirectShow, so it may be a problem with DirectShow.
If you have access to another computer, try running it there.
* Can I delete the tmp folder this creates?
Yes.
* But the looping is all weird …
You’ll need to cut your music to match the loop points in the original BGM, or
there’s something wrong with the music file you used to replace the original BGM.
* Can I run this twice in a row?
You can, but the program will pop up a dialog asking if you have backed up
your data. You may want to select “No” here.
If you select yes, THE PROGRAM WILL OVERWRITE THE BACKUP OF YOUR ORIGINAL MUSIC DATA
FILE. If this happens, you’ll need to copy it off the install CD, or something.
Ryouchin



Comments(7)
This is great! I no longer have to listen to the music from the first three stages of any of the Touhou games again…
Holy mother of god, awesome!
Heh, awesome, now I can listen to Tenga Bye Bye when I fight Aya.
Cool! But, it does sound a little confusing. Especially the back-up part.
I’d like to add to this that the new version 2.20 works differently and better.
In this version you get to change the loop times and don’t have to cut up the songs, very neat.
Be aware that I haven’t a clue about japanese whatsoever and figured this thing out by reading the translated readme above and simply trying things in the new version.
Tips for 2.20:
-The procedure of selecting/naming/converting music seems the same except you don’t have to cut the songs to be the same length as the original music.
-If you replace only a few songs it may give errors, make sure you replace all of them (or at least in my case it gave playback start bugs, TH08).
-Loop start/end input is in seconds, so you can make an actual loop. You usually don’t have to worry about loop times as most songs you’d be using with would be way over the original lengths.
-Once you’re done selecting all the music and setting the loops you need to select a file output folder to save the new .dat files in, this can not be the folder of the thxx.dat and thbgm.dat files you used.
Does this work for replacing music for the fighting games?
I don’t understand. I used 2.20 version, and it didn’t work. MP3 are all weird, and Wav files are… too fast. And I don’t understand all those japanese word…