pv.pitch=[55.79;55.79;55.79;55.79;55.79;55.79;55.79;56.01;56.24;56.47;56.47;56.47;0;0;0;0;0;60.62;60.92;61.22;61.22;61.22;61.22;61.22;0;0;0;0;0;0;63.14;63.49;63.49;63.49;63.49;63.84;64.56;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;64.56;64.93;64.93;65.7;66.92;67.79;67.79;67.79;67.79;67.79;67.35;65.7;65.31;65.31;65.31;65.31;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.93;64.56;64.56;0;0;0;0;0;0;0;0;0;0;0;0;60.62;60.62;60.92;60.92;61.22;61.84;62.48;62.48;62.48;62.48;0;0;0;60.92;60.92;60.92;60.92;60.92;60.92;60.92;60.92;60.92;60.92;0;0;0;0;59.49;59.49;59.49;59.49;59.76;60.04;60.33;60.62;60.92;60.92;60.92;61.22;61.22;61.22;60.92;60.92;60.92;60.92;60.92;60.92;60.92;60.92;60.62;60.33;60.04;59.76;59.49;59.76;59.76;59.76;60.04;60.33;60.33;60.33;60.33;60.04;59.76;58.68;58.16;57.91;57.91;57.91;57.66;57.42;57.17;56.94;56.7;56.47;56.24;56.24;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;56.01;0;0;0;0;0;0]-12; pv.time=[0.016;0.048;0.08;0.112;0.144;0.176;0.208;0.24;0.272;0.304;0.336;0.368;0.4;0.432;0.464;0.496;0.528;0.56;0.592;0.624;0.656;0.688;0.72;0.752;0.784;0.816;0.848;0.88;0.912;0.944;0.976;1.008;1.04;1.072;1.104;1.136;1.168;1.2;1.232;1.264;1.296;1.328;1.36;1.392;1.424;1.456;1.488;1.52;1.552;1.584;1.616;1.648;1.68;1.712;1.744;1.776;1.808;1.84;1.872;1.904;1.936;1.968;2;2.032;2.064;2.096;2.128;2.16;2.192;2.224;2.256;2.288;2.32;2.352;2.384;2.416;2.448;2.48;2.512;2.544;2.576;2.608;2.64;2.672;2.704;2.736;2.768;2.8;2.832;2.864;2.896;2.928;2.96;2.992;3.024;3.056;3.088;3.12;3.152;3.184;3.216;3.248;3.28;3.312;3.344;3.376;3.408;3.44;3.472;3.504;3.536;3.568;3.6;3.632;3.664;3.696;3.728;3.76;3.792;3.824;3.856;3.888;3.92;3.952;3.984;4.016;4.048;4.08;4.112;4.144;4.176;4.208;4.24;4.272;4.304;4.336;4.368;4.4;4.432;4.464;4.496;4.528;4.56;4.592;4.624;4.656;4.688;4.72;4.752;4.784;4.816;4.848;4.88;4.912;4.944;4.976;5.008;5.04;5.072;5.104;5.136;5.168;5.2;5.232;5.264;5.296;5.328;5.36;5.392;5.424;5.456;5.488;5.52;5.552;5.584;5.616;5.648;5.68;5.712;5.744;5.776;5.808;5.84;5.872;5.904;5.936;5.968;6;6.032;6.064;6.096;6.128;6.16;6.192;6.224;6.256;6.288;6.32;6.352;6.384;6.416;6.448;6.48]; gtNote.start=[0.1292 0.55 1 2.14 2.559 3.45 3.829 4.25 4.65 5.038 5.5 5.889]; gtNote.duration=[0.3906 0.2573 0.5 0.3958 0.4563 0.3792 0.4209 0.3781 0.35 0.3886 0.3501 0.4229]; gtNote.pitch=[56 61 65 68 65 63 61 61 61 61 58 56]; %% DPv2 opt=pv2note('defaultOpt'); opt.method='dp'; opt.gtNote=gtNote; opt.minPitchError=0.5; figure; note=pv2note(pv, opt, 1); %% HMM pv.pitch=pv.pitch-1; opt=pv2note('defaultOpt'); opt.method='hmm'; opt.gtNote=gtNote; opt.minPitchError=0.5; figure; note=pv2note(pv, opt, 1);