📄 agif.m
字号:
%
% Automatic glottal inverse filtering algorithm
% Various analysis method could be chosen
% Author : Minkyu Lee
% Date 12-Oct-1994
% Modified by D. G. Childers
%
PV=[100 20 300 380];
s2 = 'Automatic GIF contol box';
% Open analysis window
while exist('agif_con_win_h')==1
try1 = 'get(agif_con_win_h,''position'');';
eval(try1,catch2);
if check ==0
clear agif_con_win_h;
check = 1;
break;
end
s1 = get(agif_con_win_h,'Name');
if ~strcmp(s1,s2)
clear agif_con_win_h;
break;
end
figure(agif_con_win_h);
break;
end;
if exist('agif_con_win_h')~=1;
% If the end points of analysis frame is not defined, return
if exist('xsmax') ~=1 | exist('xsmin') ~= 1
disp('Please select the analysis frame first');
return;
end
ydata_m=speech(xsmin:xsmax);
% Open control box for automatic glottal inverse filtering
agif_con_win_h=figure('Position',PV,...
'Resize','on',...
'Numbertitle','off',...
'color',BACK_COLOR,...
'Name',s2);
% Checkbox for Pitch Asynchronous GIF
agif_cb_asyn_h=uicontrol('Style','Checkbox',...
'Position',[10 170 200 20],...
'String','Asynchronous Analysis',...
'Value',asyn_flag);
% Checkbox for Iterative analysis
agif_cb_iter_h=uicontrol('Style','Checkbox',...
'Position',[10 140 200 20],...
'String','Iterative Analysis',...
'Value',iter_flag);
% Checkbox for ARMA model analysis
agif_cb_arma_h=uicontrol('Style','Checkbox',...
'Position',[10 110 200 20],...
'String','ARMA Model Analysis',...
'Value',arma_flag);
% Checkbox for Closed LP analysis
agif_cb_clpc_h=uicontrol('Style','Checkbox',...
'Position',[10 80 200 20],...
'String','Closed LPC Analysis',...
'Value',clpc_flag);
% Checkbox for Closed WRLS analysis
agif_cb_cwrls_h=uicontrol('Style','Checkbox',...
'Position',[10 50 200 20],...
'String','Closed WRLS Analysis',...
'Value',cwrls_flag);
agif_pb_can_h=uicontrol('Style','Pushbutton',...
'Position',[20 10 80 30],...
'Callback','agif_go',...
'String','Go');
agif_pb_re_h=uicontrol('Style','Pushbutton',...
'Position',[120 10 80 30],...
'Callback','agif_ca',...
'String','Cancel');
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -