Skip to content

Commit

Permalink
Issue #1 updates utililites for processing files
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Nov 21, 2022
1 parent 90d1b14 commit 5ddcdf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilities/add_stereo_delay.ffmpeg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions utilities/createSoundArrays.bash
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 5ddcdf6

Please sign in to comment.