Song Index Tool

This tool is for getting song lengths in milliseconds from WAV files (for use with replacing music in Saints Row games).

It's written in Perl although it's compiled for Windows, the source is included.


Usage:
songindex --path="<file path to wav files>"
 

Attachments

Is there a tutorial somewhere?
Sure!
First, place songindex.exe into the same folder as the .WAV files you want to use (songindex.pl is source code).
Then, open CMD by clicking the address bar, typing "cmd" and press Enter.
1733669963189.png


1733670103325.png


The command prompt will open.
Usage:
songindex --path="<file path to wav files>"
Copy and paste that, but put the directory of the files (copy from address bar). Hit Enter.
In my case, the song was 291 seconds long, real length 4:52.
Of course, it needs to be in .WAV format so you'd need to convert your spicy .MP3s using something like Tenacity or foobar2000 otherwise it will not display anything.
(I'd nag about converting MP3s being an audiophile sin but that's out of the scope of this tutorial)
1733670415081.png


The real use of this is when you extract all the music of the station you want to replace, it will tell the length for all of them.
Then you'd use it in a folder of the new songs you'd want to replace with, compare the lengths, add silence or trim as needed in something like Audacity.
I don't have the game's song files so here's an example with BeForU's third album:

1733670955708.png

It seems it has problems parsing unusual filenames, which is fine lol
Hope that helps!
 
Sure!
First, place songindex.exe into the same folder as the .WAV files you want to use (songindex.pl is source code).
Then, open CMD by clicking the address bar, typing "cmd" and press Enter.
View attachment 42054

View attachment 42055

The command prompt will open.

Copy and paste that, but put the directory of the files (copy from address bar). Hit Enter.
In my case, the song was 291 seconds long, real length 4:52.
Of course, it needs to be in .WAV format so you'd need to convert your spicy .MP3s using something like Tenacity or foobar2000 otherwise it will not display anything.
(I'd nag about converting MP3s being an audiophile sin but that's out of the scope of this tutorial)
View attachment 42056

The real use of this is when you extract all the music of the station you want to replace, it will tell the length for all of them.
Then you'd use it in a folder of the new songs you'd want to replace with, compare the lengths, add silence or trim as needed in something like Audacity.
I don't have the game's song files so here's an example with BeForU's third album:

View attachment 42057
It seems it has problems parsing unusual filenames, which is fine lol
Hope that helps!
Thank u now I can listen to my brother's music in game lol, If I replaced Kanyes song will it be replaced in the mission?
 
Back
Top