syn_win.m
来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 147 行
M
147 行
%
% Callback function for syn_win.m
% Author : D. G. Childers
% Date : 5/31/99
%
%
% Set position and size of synthesis window
%
%
% clear and close the figure opened creating the excitation
if exist('exc_sou_h')==1
eval('close(exc_sou_h);',catch1);
clear exc_sou_h;
end
if exist('exc_sou1_h')==1
eval('close(exc_sou1_h);',catch1);
clear exc_sou1_h;
end
if exist('exc_set_h')==1
eval('close(exc_set_h);',catch1);
clear exc_set_h;
end
if exist('jittshim_h')==1
eval('close(jittshim_h);',catch1);
clear jittshim_h;
end
if exist('aspino_h')==1
eval('close(aspino_h);',catch1);
clear aspino_h;
end
if exist('subglot_h')==1
eval('close(subglot_h);',catch1);
clear subglot_h;
end
if exist('voice_h')==1
eval('close(voice_h);',catch1);
clear voice_h;
end
if exist('noise_h')==1
eval('close(noise_h);',catch1);
clear noise_h;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PV=[20 100 170 350];
if exist('syn_win_h')~=1;
syn_win_h=figure('Position',PV, ...
'Resize','on',...
'NumberTitle','off',...
'color',[1 1 1],...
'Name','Articulatory Synthesis Window');
syn_start_win_h=uicontrol('Style','pushbutton',...
'Position',[15 300 130 30],...
'String','Start',...
'Callback','syn_fire');
syn_animate_win_h=uicontrol('Style','pushbutton',...
'Position',[15 250 130 30],...
'String','Animate',...
'Callback','animate1');
syn_play_win_h=uicontrol('Style','pushbutton',...
'Position',[15 200 130 30],...
'String','Play',...
'Callback','syn_play');
syn_clear_win_h=uicontrol('Style','pushbutton',...
'Position',[15 150 130 30],...
'String','Clear',...
'Callback','synclear');
syn_save_win_h=uicontrol('Style','pushbutton',...
'Position',[15 100 130 30],...
'String','Save',...
'Callback','syn_save');
syn_cancel_win_h=uicontrol('Style','pushbutton',...
'Position',[15 50 130 30],...
'String','Cancel',...
'Callback','syn_cancel');
end
syn_win1_h=figure('Position',[170 150 630 350], 'NumberTitle','off',...
'Name','Canvas for Articulatory Synthesis', ...
'Resize','on','color',BACK_COLOR);
axis('off');
syn_set_h=figure('Position',[170 70 420 150], 'NumberTitle','off',...
'Name','Articulatory Synthesis Parameters Window', ...
'color',BACK_COLOR,'Resize','on');
axis('off');
figure(syn_set_h);
ss=sprintf('Display Choices :');
text(-0.16,0.96,ss,'color',TEXT_COLOR,'FontSize',10);
syn_areavtsyn_h=uicontrol('Style','radiobutton','Position',[35 105 325 20],...
'String', 'Area Func. / Midsagittal / Syn. Speech display choice 1',...
'Callback','dpych01');
syn_artisyn_h=uicontrol('Style','radiobutton','Position', ...
[35 76 325 20],'String', 'Articulators'' Trajectories / Syn. Speech display choice 2',...
'Callback','dpych02');
syn_tfpsdsyn_h=uicontrol('Style','radiobutton','Position', ...
[35 47 325 20],'String','T.F. / Exci. PSD / Pres. / Vol. Vel. / Syn. Sp. display choice 3',...
'Callback','dpych03');
set(syn_areavtsyn_h,'Value',1);
ss=sprintf('Syn. Samp. Freq.:');
text(-.16,0.0,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('KHz');
text(0.2,0.0,ss,'color',TEXT_COLOR,'FontSize',10);
syn_10_h=uicontrol('Style','radiobutton','Position', ...
[155 10 40 20],'String', '10',...
'Callback','sampch10');
syn_20_h=uicontrol('Style','radiobutton','Position', ...
[200 10 40 20],'String','20',...
'Callback','sampch20');
syn_30_h=uicontrol('Style','radiobutton','Position', ...
[245 10 40 20],'String','30',...
'Callback','sampch30');
syn_40_h=uicontrol('Style','radiobutton','Position', ...
[290 10 40 20],'String', '40',...
'Callback','sampch40');
syn_50_h=uicontrol('Style','radiobutton','Position', ...
[335 10 40 20],'String','50',...
'Callback','sampch50');
syn_60_h=uicontrol('Style','radiobutton','Position', ...
[380 10 40 20],'String','60',...
'Callback','sampch60');
set(syn_20_h,'Value',1);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?