-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resample audio asset cuz pitch rate stopped working in gd4.3
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Define the source and target files | ||
SOURCE_FILE="assets/build/ost/section_change.wav" | ||
TARGET_FILE="assets/build/ost/section_change_v1.wav" | ||
|
||
# Define the speed adjustment factor | ||
|
||
SPEED_FACTOR=1.95 | ||
|
||
# FFmpeg command to adjust speed and save the file | ||
ffmpeg -i "$SOURCE_FILE" -filter:a \ | ||
"asetrate=44100*$SPEED_FACTOR,aresample=44100,aresample=resampler=soxr:out_sample_rate=41000" \ | ||
"$TARGET_FILE" |
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