I'd like to merge a number of WAV files located in two separate directories.
The files are named identically, similar to the following example:
\DIRECTORY A
C1-05.wav
C2-05.wav
C3-05.wav
C4-05.wav
C5-05.wav
\DIRECTORY B
C1-05.wav
C2-05.wav
C3-05.wav
C4-05.wav
C5-05.wav
The idea is to merge file C1-05.wav from \DIRECTORY A with the corresponding file C1-05.wav from \DIRECTORY B, file C2-05.wav from \DIRECTORY A with the corresponding file C2-05.wav from \DIRECTORY B, and so on.
I started doing this with Audacity, file by file, but they are a lot. I was wondering if there is a way to do so with a script or from the command line.
I understand that it could be as simple as:
sox -m file1.wav file2.wav output_file.wav
But get mixed up when it comes to indicate sox how to sort the files in correct manner according to their matching names.