On 09.04.25 22:50, Josh Lawrence wrote:
I know I can use sox to merge 2 audio files into a
stereo mix, like so:
sox -M left.wav right.wav output.wav
I would love to write a script that will descend into each directory,
find 2 commonly named files, assume one is left channel and one is
right, combine them, and carry on.
Maybe as a starting point (works in one folder):
#!/bin/bash
for i in *-L.wav
do
NAME=${i%%-L.wav}
echo "sox -M ${NAME}-L.wav ${NAME}-R.wav $NAME.wav"
done