function convertBFormToMono(filename)
% https://wiki.xiph.org/Ambisonics
% http://pcfarina.eng.unipr.it/Aurora/B-Format_to_UHJ.htm
% http://www.dsprelated.com/showthread/matlab/5198-1.php
% filename = ('1_1_dalbyForest1.wav');

% Read in wavfile specified by filename
[WXYZ,fs] = audioread(filename);

% separate into spearate channels
W = WXYZ(:,1);

% write to wav
filenameOut = strcat('Mono_',filename);
audiowrite(filenameOut,W,fs);

end 