feaFile='d:\dataSet\public\MIR-ST500\6\6_feature.json'; fprintf('Reading %s...', feaFile); myTic=tic; fea=jsondecode(fileread(feaFile)); fprintf('==> Time=%g sec\n', toc(myTic)); pv.pitch=fea.vocal_pitch; pv.time=fea.time; pv.name='Áô§Îªº¯Í»H'; %opt=pvPlot('defaultOpt'); opt.showPlayButton=0; %figure; pvPlot(pv, opt); %% gtFile='d:\dataSet\public\MIR-ST500\6\6_groundtruth.txt'; fprintf('Reading %s...', gtFile); myTic=tic; noteGt=noteFileRead(gtFile); fprintf('==> Time=%g sec\n', toc(myTic)); %% fprintf('Performing pv2note...'); opt=pv2note('defaultOpt'); opt.method='simple00'; %opt.gtNote=noteGt; myTic=tic; notePredicted=pv2note(pv, opt); fprintf('==> Time=%g sec\n', toc(myTic)); fprintf('No. of GT notes=%d\n', length(noteGt.pitch)); fprintf('No. of predicted notes=%d\n', length(notePredicted.pitch)); %% fprintf('Performing noteVecSim...'); myTic=tic; fMeasure=noteVecSim(notePredicted, noteGt); fprintf('==> Time=%g sec\n', toc(myTic)); fprintf('fMeasure=%g\n', fMeasure);