diff aux/finddouble.m @ 2:5e72201496c8

Bug fixes, added stripzeros function, added new loudness function, moved general documentation to top level, MATLAB_R2014b compatibility
author Brecht De Man <b.deman@qmul.ac.uk>
date Mon, 17 Nov 2014 19:43:43 +0000
parents 4fd284285159
children b28ffd29e6e1
line wrap: on
line diff
--- a/aux/finddouble.m	Wed Jul 30 12:38:47 2014 +0100
+++ b/aux/finddouble.m	Mon Nov 17 19:43:43 2014 +0000
@@ -3,13 +3,13 @@
 % 
 % by Brecht De Man at Centre for Digital Music on 15 July 2013
 
-list = dir([foldername '\*.wav']);
-sums = length(list)-1; 
+
+list = dir([foldername '\*.wav']);  % find wav file names in folder
+sums = zeros(length(list));       % array for every file (don't count '.')
+
 for i = 1:length(list)
     audio = audioread([foldername '\' list(i).name]); 
     sums(i) = sum(sum(audio.^2));
-    % find doubles in this list (method or manual)
-    % find corresponding audio files; print their names
 end
 
 for i = 1:length(list)