exc_sou.m
来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 173 行
M
173 行
% exc_sou.m
% modified by D. G. Childers 7/16/98, 5/31/99
PV=[20 100 170 350];
if exist('exc_sou_h')~=1;
exc_sou_h=figure('Position',PV, ...
'Resize','on',...
'NumberTitle','off',...
'color',[1 1 1],...
'Name','Excitation Source Window');
exc_sou_load_h=uicontrol('Style','pushbutton',...
'Position',[15 310 130 30],...
'String','Load Excitation Source',...
'Callback','exc_load');
exc_sou_savexc_win_h=uicontrol('Style','pushbutton',...
'Position',[15 260 130 30],...
'String','Save Excitation Source',...
'Callback','exc_save');
exc_sou_next_win_h=uicontrol('Style','pushbutton',...
'Position',[15 210 130 30],...
'String','Next',...
'Callback','nextexcf');
exc_sou_previous_win_h=uicontrol('Style','pushbutton',...
'Position',[15 160 130 30],...
'String','Previous',...
'Callback','prevexcf');
exc_sou_clear_win_h=uicontrol('Style','pushbutton',...
'Position',[15 110 130 30],...
'String','Clear',...
'Callback','exc_clf');
exc_sou_draw_win_h=uicontrol('Style','pushbutton',...
'Position',[15 60 130 30],...
'String','Draw',...
'Callback','draw_src');
exc_sou_cancel_win_h=uicontrol('Style','pushbutton',...
'Position',[15 10 130 30],...
'String','Close/Cancel',...
'Callback','close_excitation');
end
exc_sou1_h=figure('Position',[300 80 500 340], 'NumberTitle','off',...
'Resize','on','Name','Canvas for Excitation Source Window',...
'color',BACK_COLOR);
axis('off');
exc_set_h=figure('Position',[300 110 500 183], 'NumberTitle','off',...
'Name','Excitation Parameter Window',...
'Resize','off','color',BACK_COLOR);
axis('off');
figure(exc_set_h);
ss=sprintf('Exci. Place:');
text(-0.15,0.98,ss,'color',TEXT_COLOR,'FontSize',9);
exc_glo_h = uicontrol('Style','radiobutton','Position', ...
[83 156 65 20],'String', 'Glottal',...
'Callback','glott_on');
exc_vt_h=uicontrol('Style','radiobutton','Position', ...
[150 156 45 20],'String','VT',...
'Callback','vt_on');
ss=sprintf('Exci. Mode:');
text(0.345,0.98,ss,'color',TEXT_COLOR,'FontSize',9);
exc_voi_h=uicontrol('Style','radiobutton','Position', ...
[276 156 70 20],'String', 'Voiced',...
'Callback','popvoice');
exc_unv_h=uicontrol('Style','radiobutton','Position', ...
[348 156 85 20],'String','Unvoiced',...
'Callback','popunvoi');
exc_mix_h=uicontrol('Style','radiobutton','Position', ...
[435 156 62 20],'String','Mixed',...
'Callback','popmix');
set(exc_voi_h,'Enable','off');
set(exc_unv_h,'Enable','off');
set(exc_mix_h,'Enable','off');
ss=sprintf('Exci. Wave:');
text(-0.15,0.80,ss,'color',TEXT_COLOR,'FontSize',9);
exc_wav_h=uicontrol('Style','Popup','Position',[87 130 111 20], ...
'String','LF pulse','Value',1,'Enable','on');
ss=sprintf('Loca.:');
text(0.365,0.80,ss,'color',TEXT_COLOR,'FontSize',9);
exc_loca_e_h=uicontrol('Style','edit','Position',[248 130 23 20], ...
'Enable','off');
ss=sprintf('(29~58)');
text(0.535,0.80,ss,'color',TEXT_COLOR,'FontSize',9);
ss=sprintf('Included:');
text(-0.13,0.62,ss,'color',TEXT_COLOR,'FontSize',9);
exc_jitshi_h=uicontrol('Style','checkbox','Position', ...
[80 104 130 20],'String', 'Jitter & Shimmer',...
'Callback','popjtsh');
exc_aspira_h=uicontrol('Style','checkbox','Position', ...
[217 104 130 20],'String','Aspiration noise',...
'Callback','popaspi');
exc_subglo_h=uicontrol('Style','checkbox','Position', ...
[353 104 130 20],'String','Subglottal model',...
'Callback','popsbglo');
set(exc_jitshi_h,'Enable','off');
set(exc_aspira_h,'Enable','off');
set(exc_subglo_h,'Enable','off');
ss=sprintf('Current frame No.:');
text(-0.13,0.44,ss,'color',TEXT_COLOR,'FontSize',9);
exc_curf_e_h=uicontrol('Style','edit','Position',[134 78 50 20]);
ss=sprintf('Total frame No.:');
text(0.51,0.44,ss,'color',TEXT_COLOR,'FontSize',9);
exc_totf_e_h=uicontrol('Style','edit','Position',[366 78 50 20]);
ss=sprintf('Begin time:');
text(-0.15,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
ss=sprintf('sec');
text(0.18,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
exc_beg_e_h=uicontrol('Style','edit','Position',[80 50 50 20]);
ss=sprintf('End time:');
text(0.31,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
ss=sprintf('sec');
text(0.62,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
exc_end_e_h=uicontrol('Style','edit','Position',[250 50 50 20]);
ss=sprintf('Duration:');
text(0.75,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
ss=sprintf('sec');
text(1.05,0.26,ss,'color',TEXT_COLOR,'FontSize',9);
exc_dur_e_h=uicontrol('Style','edit','Position',[416 50 50 20]);
exc_apply_h=uicontrol('Style','pushbutton','Position', ...
[140 17 58 20],'String', 'Apply',...
'Callback','excapply');
set(exc_apply_h,'Enable','off');
if exist('m4_h')==1
eval('close(m4_h);',catch1);
clear m4_h;
end
if exist('opt_set_h')==1
eval('close(opt_set_h);',catch1);
clear opt_set_h;
end
if exist('message_win_h')==1
eval('close(message_win_h);',catch1);
clear message_win_h;
end
if exist('message_win2_h')==1
eval('close(message_win2_h);',catch1);
clear message_win2_h;
end
if exist('sa_h')==1
eval('close(sa_h);',catch1);
clear sa_h;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?