Subscribe to RSS Subscribe to Comments

Touhou BGM Changer

A new tool that allows you to change the BGM for all of the Windows Touhou games has been released!

Touhou BGM Changer

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

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.

* 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?
* 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.
FILE. If this happens, you’ll need to copy it off the install CD, or something.



  1. November 4th, 2007 | 10:52 am

    This is great! I no longer have to listen to the music from the first three stages of any of the Touhou games again…

  2. November 4th, 2007 | 12:31 pm

    Holy mother of god, awesome!

  3. Strike Insecta
    November 5th, 2007 | 7:15 pm

    Heh, awesome, now I can listen to Tenga Bye Bye when I fight Aya.

  4. Named Fairy
    November 9th, 2007 | 9:30 am

    Cool! But, it does sound a little confusing. Especially the back-up part.

  5. xyanide1986
    March 3rd, 2009 | 6:32 pm

    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.

  6. Chibicon
    January 5th, 2010 | 7:49 am

    Does this work for replacing music for the fighting games?

  7. Facteur Rien
    March 14th, 2010 | 1:56 pm

    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…

  8. danesp101
    September 2nd, 2011 | 5:13 pm

    Only version 1.00 works for me the others don’t even let me load the songs.

  9. 093474
    September 2nd, 2011 | 10:41 pm

    How could I make the converted music slower? I tried to convert the Red Alert soundtrack to PoFV and the outcome was too fast. On the other hand, when I tried to overwrite the EoSD music with Bigfoot and Hellmarch the music played alright. Could it be that the BGM changer itself is defective?

  10. NyaChan
    February 2nd, 2012 | 11:08 am

    Okay, so, I want to change the bgm of EoSD, but I have no idea how to do that, since TH06 is very different than the other games, it has no BGM.dat file, only a folder with all of the songs from the game inside. And since there’s no bgm.dat, I don’t know how am I going to make the program work like it should with the game.

    When I run the program, I don’t know what to put on “Data file (th**.dat)” since I have six “.dat” files total:

    1) th06e_CM.DAT
    2) th06e_ED.DAT
    3) th06e_IN.DAT
    4) th06e_MD.DAT
    5) th06e_ST.DAT
    6) th06e_TL.DAT

    Which one should I choose? Also, which one should I put on “BGM File (thbgm.dat)” ?

    Also, more importantly… I want to change the loop times of the songs accordingly, to make them flawless. How can I do that?

  11. april-san
    March 6th, 2012 | 1:58 pm

    do i have to name the opening song 1 or the first stage theme?

  12. Zero
    April 4th, 2012 | 12:52 pm

    um… my song’s pitch is messed up. help please?

  13. Dannyboy
    June 1st, 2013 | 3:50 pm

    the bgm is too…slow, actually. how can i speed it up?

Leave a reply

Based on Fluidity Banner graphic by MARCH
Questions/comments/concerns/bugs can be reported to