sh_fmt.m

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

M
38
字号
% Function : shift the formant from the GCI display using the mouse.
%    sh_fmt will shift one formant up or down by clicking the mouse.
%
%    sh_fmt.m is a call_function executed by "shift_up" on figure(Fchek_f).

  
   % plot the selected formant

     dev_ff=min(ori_ff/50,50);

     plot(xpoint,ori_ff,'rx');
     hold on;


if sh_UP==1  % shift the formant frequency up

     FF0(xpoint,ypoint)=FF0(xpoint,ypoint)+dev_ff;

elseif sh_UP==-1 % shift the formant frequency down

     FF0(xpoint,ypoint)=FF0(xpoint,ypoint)-dev_ff;
end

   %------------------------%
   % plot the formant track %
   %------------------------%

plot(Left:Rite,FF0(Left:Rite,:),'k');

frm=find(vctyp0>0);
frm=frm( frm>=Left & frm<=Rite );

for kk=1:numf
    plot(frm,FF0(frm,kk),'bo');
end
hold off;
clear frm;

⌨️ 快捷键说明

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