How can I batch process files with identical names, minus a single letter difference (c
or t
)?
BML201_solohorn_longs_legato_ff_RR1_c_G4.wav BML201_solohorn_longs_legato_ff_RR1_t_G4.wav BML201_solohorn_shorts_staccato_ff_RR2_c_C#3.wav BML201_solohorn_shorts_staccato_ff_RR2_t_C#3.wav
Using sox
, this code lowers volume on one microphone file then merges both into a new file:
sox -v 0.43 tree.wav -m close.wav output.wav
I need to output to a subfolder using the original file names, or worse case just overwrite the original c
files.