% Compute the statistics of all notes in the groundtruth files load mir-st500.mat %% Put all notes together and compute their statistics note=[ds.noteGt]; start=[note.start]; duration=[note.duration]; pitch=[note.pitch]; fprintf('Number of notes=%g\n', length(pitch)); fprintf('Start: min=%g, max=%g\n', min(start), max(start)); fprintf('Duration: min=%g, max=%g\n', min(duration), max(duration)); fprintf('Pitch: min=%g, max=%g\n', min(pitch), max(pitch)); %% Find songs with short notes minNoteDuration=0.1; for i=1:gtFileCount gtFiles(i).shortNoteCount=sum(gtFiles(i).note.duration0 fprintf('songId=%d, shortNoteCount=%d\n', gtFiles(i).songId, gtFiles(i).shortNoteCount); end end