view aux/aif2wav.m @ 15:24be5e9ce25b tip

Update README
author Brecht De Man <brecht.deman@bcu.ac.uk>
date Thu, 20 Sep 2018 12:23:20 +0200
parents 4fd284285159
children
line wrap: on
line source
function aif2wav(foldername)
% AIF2WAV converts .aiff files in folder 'foldername' to .wav files. 
%
% by Brecht De Man at Centre for Digital Music, 10 June 2013

list = dir([foldername '/*.aiff']);
for i = 1:length(list)
    [x,fs] = audioread([foldername '/' list(i).name]);
    audiowrite([foldername '/' list(i).name(1:end-5) '.wav'],x,fs);
end

end