📄 vtpchg.m
字号:
% Function : change the voicetype classification for the GCI display using the mouse.
% vtpchg will chnage the voicetype from voiced to unvoiced, or vice versa.
%
% vtpchg.m is a call_function executed by "chg_vtp" on figure(Vchek_f).
%----------------------------------------%
% change the voicetype classification %
%----------------------------------------%
figure(Vchek_f);
% select frame to change
[xx yy]=ginput(1);
[dummy,choise]=min(abs( (xx+m_len/2)-m_len*idx ));
idx=round(left/m_len)+1:round(right/m_len);
if vctyp0( idx(choise) )==0
vctyp0( idx(choise) )=1;
stg=['U->V'];
else
vctyp0( idx(choise) )=0;
stg=['V->U'];
end
% plot the changed voicetype
plot(left:right,signal(left:right),'b',left+m_len/2:m_len:right,8000*vctyp0(idx));
for kf=idx
if vctyp0(kf)
text(m_len*kf-m_len/2,9000,'V');
else
text(m_len*kf-m_len/2,9000,'U');
end
end
text(m_len*idx(choise)-m_len/2,7500,stg);
axis([left right -10000 10000])
grid;
%----------------------------------%
% plot the voicetype for reference %
%----------------------------------%
figure(Vcontour_f);
plot(1:lens,signal,'b',1+m_len/2:m_len:lens,10000*vctyp0,'r:');
title('Voicetype classification along the speech signal (dash line: voicetype)');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -