asdfa.txt
资源名称:10_11.rar [点击查看]
上传用户:abcwxk
上传日期:2016-05-20
资源大小:434k
文件大小:1k
源码类别:
midi
开发平台:
Visual C++
- figure(1)
- plot(data_in_window)
- figure(2)
- plot(correlation_of_window)
- figure(3)
- plot(diff1)
- figure(4);
- plot(correlation_of_window(2:end));hold on
- plot(correlation_of_window( 1 : (length(correlation_of_window)-1) ));hold off;
- figure(5)
- plot(diff2)
- [y,fs]=wavread('c:hum测试数据2完美生活_歌词.wav');
- load h;
- yf=filter(h,1,y);
- %----------无LP----------
- pitch = Pitch_Detection_Autocorrelation(y,fs,30,20);
- t=0:0.02:(length(pitch)-1)*0.02;
- figure;plot(t,pitch);
- title('La noLP 4430');
- title('La noLP 70-1000');
- %------------------------
- %----------LP1000----------
- pitch = Pitch_Detection_Autocorrelation(yf,fs,30,20);
- t=0:0.02:(length(pitch)-1)*0.02;
- figure;plot(t,pitch);
- title('La LP1000 4430');
- title('La LP1000 70-1000');
- %------------------------
- %-------中值滤波---------
- mm=zeros(length(pitch)-4,1);
- for i=1:(length(pitch)-4)
- mm(i)=median(pitch(i:(i+4)));
- end
- figure;plot(mm);
- title('La LP1000 4430 Median');
- title('La LP1000 70-1000 Median');
- title('La noLP 4430 Median');
- title('La noLP 70-1000 Median');
- %------------------------
- pitch = Pitch_Detection_Autocorrelation(yf,fs,30,20);
- figure;plot(t,pitch);
- title(' 无LP ');
- title('LP1000')
- mm=zeros(length(pitch_h)-4,1);
- for i=1:(length(pitch_h)-4)
- mm(i)=median(pitch_h(i:(i+4)));
- end