diff --git a/utilities/add_stereo_delay.ffmpeg b/utilities/add_stereo_delay.ffmpeg index c00291d..f6ef905 100755 --- a/utilities/add_stereo_delay.ffmpeg +++ b/utilities/add_stereo_delay.ffmpeg @@ -7,7 +7,8 @@ do outname0=${file%.*}_panned.wav outname1=${file%.*}_panned.mp3 echo $right_sound $left_sound $outname - echo "ffmpeg -i $file -af pan='stereo|c0=$right_sound*c0|c1=${left_sound}*c0' $outname0" >> runit.bash + echo "ffmpeg-normalize -t -20.2 -c:a pcm_u8 $file -o normalized/$file" >> runit.bash + echo "ffmpeg -i normalized/$file -af pan='stereo|c0=$right_sound*c0|c1=${left_sound}*c0' $outname0" >> runit.bash echo "ffmpeg -i $outname0 -codec:a libmp3lame -qscale:a 2 $outname1" >> runit.bash done diff --git a/utilities/createSoundArrays.bash b/utilities/createSoundArrays.bash old mode 100644 new mode 100755 index fbd7f21..f27774a --- a/utilities/createSoundArrays.bash +++ b/utilities/createSoundArrays.bash @@ -1,4 +1,6 @@ #! /bin/bash +#searches the sounds directory for files matching [0-9][0-9]_*.mp3 and +#writes then out as a javascript array that can be prepended to sounds.js lastSound=$(ls sounds/[0-9][0-9]_*.mp3 | sort -g | tail -n 1) lastSound=$(basename $lastSound)