Professional Documents
Culture Documents
% singleton*.
% existing singleton*. Starting from the left, property value pairs are
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
gui_Singleton = 1;
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
else
gui_mainfcn(gui_State, varargin{:});
end
handles.output = hObject;
guidata(hObject, handles);
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
varargout{1} = handles.output;
% --- Executes on button press in rekamsuara.
y=[-1:1];
fs=8000;
guidata(hObject,handles);
x =wavrecord(8000,8000, 'double');
cla;
line ([1:8000],x);
handles.fs=fs;
handles.x=x;
guidata(hobject,handles);
fs=handles.fs;
x=handles.x;
wavplay(x,fs)
guidata(hobject,handles);