📄 cl_gci1b.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% clean_gci1b.m
%
% jmw
%
% late 1993 ...
%
% script to display and manually edit gcis
% modified by D. G. Childers 2/12/98
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
disp(' ');
disp('SCRIPT: clean_gci1b.m ***********************************');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
file_string = sprintf('temp/%s_GCI.mat', name);
st=sprintf('loading ./%s from hard disk ...',file_string);
disp(st);
st=sprintf('load %s', file_string);
eval(st);
file_string = sprintf('temp/%s.mat', name);
st=sprintf('loading ./%s from hard disk ...',file_string);
disp(st);
st=sprintf('load %s', file_string);
eval(st);
signal = eval(name);
% signal is the speech data
gci0=gci; %this is the gci to be modified if desired
gci_safe=gci; %save the original gci
ir0=ir_save; %saved from pkpk_1b.m; used in addgci.m
lens=length(signal); % the length of the signal
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following is an edited version of file exe1.m in the system
% folder in VOCOS, D. G. Childers 2/12/98
disp('GCIs are located.');
disp('You may inspect the result');
% create message window and write message in that window also
message_win3_f=figure('Unit','normalized',...
'Position',[0.22 0.2 0.72 0.15],...
'Resize','off',...
'Color',BACK_COLOR,...
'Numbertitle','off',...
'Name','Message');
axis('off');
ss=sprintf('GCIs are located. You may inspect the result after this window closes in 4 seconds. ');
text(-0.05,1,ss,'color',[0 0 1],'FontSize',10);
pause(0.1);
% create GUI for manual correction
c_win_f=figure('Unit','normalized',...
'Position',[0.05 0.2 0.15 0.2],...
'Resize','off',...
'Color',BACK_COLOR,...
'Numbertitle','off',...
'Name','Manual Correction');
c_pb_gci=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[0.05 0.6 0.9 0.3],...
'String','GCIs Inspection',...
'CallBack','gchek');
% callback function [gchek.m]
c_pb_close=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[0.05 0.1 0.9 0.3],...
'String','Continue',...
'Callback','gci_ed;close(c_win_f);A1_cont');
% end of edit of exe1.m
pause(4.);
close (message_win3_f);
clear message_win3_f;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -