vtchg.m

来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 27 行

M
27
字号
% Function : change the voicetype classification for the GCI display using the mouse.
%     vtchg will change the voicetype from voiced to unvoiced, or vice versa.
%
%     vtchg.m is a call_function executed by "chg_vtp" on figure(Vtset_f).

 %----------------------------------------% 
 % change the voicetype classification    %
 %----------------------------------------%
 
  if vctyp1(cfram)==1
     vctyp1(cfram)=0;
     set(vt_text,'String','unvoiced');
  else
     vctyp1(cfram)=1;
     set(vt_text,'String','voiced');
  end 

  % the first and last frame must be unvoiced!!
  if cfram==1
     vctyp1(1)=0;
  elseif cfram==nfram
     vctyp1(nfram)=0;
  end
  
  % plot the changed voicetype
  vt_plt;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?