I have a somewhat complicated task I would like to perform that is well beyond my novice level of experience with Matlab. I am using Matlab R2014a.
I use a recording system that creates 2 mono wav files from an acoustic manikin. This is usually done in a batch process across several conditions. The mono wav files are saved in a single directory and are named by the condition. What differentiates the files is the last character in the filename, before the extension – 0 designates the file as left ear, 1 designates right ear.
For example FirstCondition_0.wav FirstCondition_1.wav SecondCondition_0.wav SecondCondition_1.wav ClassicalMusic_0.wav ClassicalMusic_1.wav
What I'd like to do is create a script that can create stereo wav files from the pairs of recordings, as a batch process.
I can do it manually, but after some experiments there are a lot of files.
What I envision is using uigetdir to set the input directory and the output directory, then somehow use a loop to combine the pairs with filename_0.wav becoming (:,1) and filename_1.wav becoming (:,2) for each matched pair.
Does anyone have any suggestions, examples, or ideas?
Thanks!
Best Answer