Mercurial > hg > ape
annotate 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 |
rev | line source |
---|---|
b@0 | 1 function aif2wav(foldername) |
b@0 | 2 % AIF2WAV converts .aiff files in folder 'foldername' to .wav files. |
b@0 | 3 % |
b@0 | 4 % by Brecht De Man at Centre for Digital Music, 10 June 2013 |
b@0 | 5 |
b@0 | 6 list = dir([foldername '/*.aiff']); |
b@0 | 7 for i = 1:length(list) |
b@0 | 8 [x,fs] = audioread([foldername '/' list(i).name]); |
b@0 | 9 audiowrite([foldername '/' list(i).name(1:end-5) '.wav'],x,fs); |
b@0 | 10 end |
b@0 | 11 |
b@0 | 12 end |