sh_set.m
来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 193 行
M
193 行
% sh_set.m
% modified by D. G. Childers 7/14/98
m4_h=figure('Position',[300 100 400 375], 'NumberTitle','off','color',BACK_COLOR, ...
'Resize','off','Name','Articulatory Position Settings');
axis('off');
ss=sprintf('Tongue Body Center Position:');
text(-0.08,1.01,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('Target Frame:');
text(0.76,1.01,ss,'color',TEXT_COLOR,'FontSize',10);
m4_1_h = uicontrol('Style','slider','Position', ...
[160 316 100 20],'Min',0,'Max',1000,'Value',300,'Callback', ...
'set(m4_2_h,''String'',round(get(m4_1_h,''Value'')))');
m4_2_h=uicontrol('Style','edit','Position', ...
[105 316 45 19],'Callback', ...
'set(m4_1_h,''Value'',eval(get(m4_2_h,''String'')))');
set(m4_2_h,'String',300);
ss=sprintf('X Coor :');
text(-0.08,0.925,ss,'color',TEXT_COLOR,'FontSize',10);
m4_3_h = uicontrol('Style','slider','Position', ...
[160 295 100 20],'Min',0,'Max',1000,'Value',600,'Callback', ...
'set(m4_4_h,''String'',round(get(m4_3_h,''Value'')))');
m4_4_h=uicontrol('Style','edit','Position', ...
[105 295 45 19],'Callback', ...
'set(m4_3_h,''Value'',eval(get(m4_4_h,''String'')))');
set(m4_4_h,'String',600);
ss=sprintf('Y Coor :');
text(-0.08,0.86,ss,'color',TEXT_COLOR,'FontSize',10);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ss=sprintf('Tongue Tip Position:');
text(-0.08,0.78,ss,'color',TEXT_COLOR,'FontSize',10);
m4_5_h = uicontrol('Style','slider','Position', ...
[160 248 100 20],'Min',0,'Max',1000,'Value',600,'Callback', ...
'set(m4_6_h,''String'',round(get(m4_5_h,''Value'')))');
m4_6_h=uicontrol('Style','edit','Position', ...
[105 248 45 19],'Callback', ...
'set(m4_5_h,''Value'',eval(get(m4_6_h,''String'')))');
set(m4_6_h,'String',600);
ss=sprintf('X Coor :');
text(-0.08,0.70,ss,'color',TEXT_COLOR,'FontSize',10);
m4_7_h = uicontrol('Style','slider','Position', ...
[160 227 100 20],'Min',0,'Max',1000,'Value',400,'Callback', ...
'set(m4_8_h,''String'',round(get(m4_7_h,''Value'')))');
m4_8_h=uicontrol('Style','edit','Position', ...
[105 227 45 19],'Callback', ...
'set(m4_7_h,''Value'',eval(get(m4_8_h,''String'')))');
set(m4_8_h,'String',400);
ss=sprintf('Y Coor :');
text(-0.08,0.635,ss,'color',TEXT_COLOR,'FontSize',10);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ss=sprintf('Lip Position:');
text(-0.08,0.555,ss,'color',TEXT_COLOR,'FontSize',10);
m4_9_h = uicontrol('Style','slider','Position', ...
[160 175 100 20],'Min',0,'Max',1000,'Value',600,'Callback', ...
'set(m4_10_h,''String'',round(get(m4_9_h,''Value'')))');
m4_10_h=uicontrol('Style','edit','Position', ...
[105 175 45 19],'Callback', ...
'set(m4_9_h,''Value'',eval(get(m4_10_h,''String'')))');
set(m4_10_h,'String',600);
ss=sprintf('Protrusion :');
text(-0.08,0.47,ss,'color',TEXT_COLOR,'FontSize',10);
m4_11_h = uicontrol('Style','slider','Position', ...
[160 155 100 20],'Min',0,'Max',1000,'Value',200,'Callback', ...
'set(m4_12_h,''String'',round(get(m4_11_h,''Value'')))');
m4_12_h=uicontrol('Style','edit','Position', ...
[105 155 45 19],'Callback', ...
'set(m4_11_h,''Value'',eval(get(m4_12_h,''String'')))');
set(m4_12_h,'String',200);
ss=sprintf('Opening :');
text(-0.08,0.405,ss,'color',TEXT_COLOR,'FontSize',10);
m4_13_h = uicontrol('Style','slider','Position', ...
[160 135 100 20],'Min',0,'Max',800,'Value',500,'Callback', ...
'set(m4_14_h,''String'',round(get(m4_13_h,''Value'')))');
m4_14_h=uicontrol('Style','edit','Position', ...
[115 135 35 19],'Callback', ...
'set(m4_13_h,''Value'',eval(get(m4_14_h,''String'')))');
set(m4_14_h,'String',500);
ss=sprintf('Jaw :');
text(-0.08,0.34,ss,'color',TEXT_COLOR,'FontSize',10);
m4_15_h = uicontrol('Style','slider','Position', ...
[160 115 100 20],'Min',0,'Max',519,'Value',0,'Callback', ...
'set(m4_16_h,''String'',round(get(m4_15_h,''Value'')))');
m4_16_h=uicontrol('Style','edit','Position', ...
[115 115 35 19],'Callback', ...
'set(m4_15_h,''Value'',eval(get(m4_16_h,''String'')))');
set(m4_16_h,'String',0);
ss=sprintf('Velum Ang :');
text(-0.08,0.270,ss,'color',TEXT_COLOR,'FontSize',10);
m4_17_h = uicontrol('Style','slider','Position', ...
[160 95 100 20],'Min',0,'Max',1000,'Value',400,'Callback', ...
'set(m4_18_h,''String'',round(get(m4_17_h,''Value'')))');
m4_18_h=uicontrol('Style','edit','Position', ...
[105 95 45 19],'Callback', ...
'set(m4_17_h,''Value'',eval(get(m4_18_h,''String'')))');
set(m4_18_h,'String',400);
ss=sprintf('Hyoid :');
text(-0.08,0.20,ss,'color',TEXT_COLOR,'FontSize',10);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
m4_19_h=uicontrol('Style','Pushbutton','Position',[290 308 85 20], ...
'String','Draw','Callback','sagiplot');
m4_20_h=uicontrol('Style','Pushbutton','Position',[290 271 85 20], ...
'String','Defaults','Callback','sh_defau');
m4_21_h=uicontrol('Style','Pushbutton','Position',[290 234 85 20], ...
'String','Clear','Callback','dr_clear');
m4_22_h=uicontrol('Style','Pushbutton','Position',[290 197 85 20], ...
'String','Next','Callback','nexttar');
m4_23_h=uicontrol('Style','Pushbutton','Position',[290 160 85 20], ...
'String','Previous','Callback','prevtar');
%m4_24_h=uicontrol('Style','Pushbutton','Position',[290 123 85 20], ...
% 'String','Go To','Callback','fb_unmk');
m4_25_h=uicontrol('Style','Pushbutton','Position',[290 86 85 20], ...
'String','Sagittal','Callback','drsagrid');
%m4_26_h=uicontrol('Style','Pushbutton','Position',[145 60 115 20], ...
% 'String','Config. ready','Callback','shconfig');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ss=sprintf('Current frame :');
text(-0.08,-0.01,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('Total frame :');
text(0.53,-0.01,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('Begin time :');
text(-0.08,-0.07,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('sec');
text(0.385,-0.07,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('Duration :');
text(0.53,-0.07,ss,'color',TEXT_COLOR,'FontSize',10);
ss=sprintf('sec');
text(0.955,-0.07,ss,'color',TEXT_COLOR,'FontSize',10);
m_curr_h=uicontrol('Style','edit','Position', ...
[130 32 45 17]);
m_tot_h=uicontrol('Style','edit','Position', ...
[305 32 45 17]);
m_begt_h=uicontrol('Style','edit','Position', ...
[108 13 60 17]);
m_durt_h=uicontrol('Style','edit','Position', ...
[285 13 60 17]);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
set(m_curr_h,'String',1);
set(m_tot_h,'String',totfno);
if exist('tartime')==0
eval('%s=sort(eval(mkname))',mkname);
tartime=eval(mkname)/FS*frame_step;
end
if exist('tdur')==0
for j=1:totfno-1,
tdur(j,1)=tartime(j+1)-tartime(j);
end
tdur(totfno,1)=filelen/FS*frame_step-tartime(totfno);
end
pharyflag=zeros(1,totfno);
nt1a=zeros(1,totfno);
area=zeros(totfno,60);
leng=zeros(totfno,60);
set(m_begt_h,'String',tartime(1));
set(m_durt_h,'String',eval('tdur(1)'));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if exist('art_set')==1
set(m4_1_h,'Value',art_set(1,1));
set(m4_2_h,'String',round(art_set(1,1)));
set(m4_3_h,'Value',art_set(1,2));
set(m4_4_h,'String',round(art_set(1,2)));
set(m4_5_h,'Value',art_set(1,3));
set(m4_6_h,'String',round(art_set(1,3)));
set(m4_7_h,'Value',art_set(1,4));
set(m4_8_h,'String',round(art_set(1,4)));
set(m4_9_h,'Value',art_set(1,5));
set(m4_10_h,'String',round(art_set(1,5)));
set(m4_11_h,'Value',art_set(1,6));
set(m4_12_h,'String',round(art_set(1,6)));
set(m4_13_h,'Value',art_set(1,7));
set(m4_14_h,'String',round(art_set(1,7)));
set(m4_15_h,'Value',art_set(1,8));
set(m4_16_h,'String',round(art_set(1,8)));
set(m4_17_h,'Value',art_set(1,9));
set(m4_18_h,'String',round(art_set(1,9)));
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?