📄 e_play.m
字号:
%
% Callback function for Play button of edit_file window
% Author : Minkyu Lee
% Date : 25-March-1995
% Modified by Karthik on 05/25/97
% Modified by D. G. Childers
val=get(m_ed_po_play_h,'Value');
if val== 1
soundsc(SPEECH_OLD(LEFT:RIGHT),1/Ts,16);
end
if val == 2
figure(ana_wav_win_h);
if exist('left_line_h') == 1
set(left_line_h,'Visible','off');
set(right_line_h,'Visible','off');
end
V=axis;
if exist('left_line_h') == 0
left_line_h=line([1 1],[V(3) V(4)]);
right_line_h=line([1 1],[V(3) V(4)]);
end
disp('Choose analysis frame boundaries using left mouse buttons');
[x,y,button]=ginput(2);
x=round(x);
set(left_line_h,'Xdata',[x(1) x(1)],'Visible','on');
set(right_line_h,'Xdata',[x(2) x(2)],'Visible','on');
pause(0.1);
if x(1) > x(2)
tmp=x(1);
x(1)=x(2);
x(2)=tmp;
end
soundsc(SPEECH_OLD(x(1)+1:x(2)),1/Ts,16);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -