[LAU] Re: OT: Combining a LOT of files

Gerhard Zintel <gerhard.zintel-S0/[email protected]>
Newsgroups gmane.linux.audio.users
Message-ID <[email protected]>
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
_______________________________________________
Linux-audio-user mailing list -- linux-audio-user-cunTk1MwBs/[email protected]
To unsubscribe send an email to linux-audio-user-leave-cunTk1MwBs/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.