Last active
January 8, 2022 17:44
-
-
Save ssokolow/9541684 to your computer and use it in GitHub Desktop.
Simple script for joining Cave Story+ track fragments into files that sound nice in your audio player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Tool for generating acceptable soundtrack Oggs from Cave Story+ data files | |
# | |
# Usage: | |
# 1. Save this and chmod it executable | |
# 2. cd into CaveStory+/data/base/Ogg11 | |
# 3. Run something like "~/cavestoryplus_dump.sh curly" | |
# 4. Enjoy your music | |
# | |
# Dependencies: | |
# - SoX | |
# - oggvideotools | |
if [ "$#" = 0 ]; then | |
echo "Usage: $0 <track name> [...]" | |
echo 'Note: The track name is the portion before the "_intro" or "_loop"' | |
exit | |
fi | |
for X in "$@"; do | |
sox "${X}_loop.ogg" -C 5 "${X}_fade.ogg" fade h 0 6 6 | |
oggCat "${X}.ogg" "${X}_intro.ogg" "${X}_loop.ogg" "${X}_fade.ogg" | |
rm "${X}_fade.ogg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment