% Collect the data of MIR-1K % Roger Jang, 20130229 clear all; vsdOpt=vsdOptSet2; fprintf('Collecting wave data and features from "%s"...\n', vsdOpt.waveDir); waveData=recursiveFileList(vsdOpt.waveDir, 'wav'); % Collect all wav files for i=1:length(waveData) fprintf('%d/%d ==> %s\n', i, length(waveData), waveData(i).path); waveFile=waveData(i).path; [waveData(i).feature, waveData(i).tOutput, waveData(i).other]=wave2feature2(waveFile, vsdOpt); end save vsdWaveData waveData return % Save the collect data to DS.mat DS.inputName=inputName; DS.input=[waveData.inData]; DS.output=[waveData.outData]; DS.annotation=[waveData.annotation]; % Pay attention: This is [], not {}! fprintf('Save DS to DS.mat ...\n'); %save DS.mat DS