comparison Code/Descriptors/Matlab/MPEG7/FromWeb/VoiceSauce/vs_ShowWaveform.m @ 4:92ca03a8fa99 tip

Update to ICASSP 2013 benchmark
author Dawn Black
date Wed, 13 Feb 2013 11:02:39 +0000
parents
children
comparison
equal deleted inserted replaced
3:e1cfa7765647 4:92ca03a8fa99
1 function varargout = vs_ShowWaveform(varargin)
2 % VS_SHOWWAVEFORM M-file for vs_ShowWaveform.fig
3 % VS_SHOWWAVEFORM, by itself, creates a new VS_SHOWWAVEFORM or raises the existing
4 % singleton*.
5 %
6 % H = VS_SHOWWAVEFORM returns the handle to a new VS_SHOWWAVEFORM or the handle to
7 % the existing singleton*.
8 %
9 % VS_SHOWWAVEFORM('CALLBACK',hObject,eventData,handles,...) calls the local
10 % function named CALLBACK in VS_SHOWWAVEFORM.M with the given input arguments.
11 %
12 % VS_SHOWWAVEFORM('Property','Value',...) creates a new VS_SHOWWAVEFORM or raises the
13 % existing singleton*. Starting from the left, property value pairs are
14 % applied to the GUI before vs_ShowWaveform_OpeningFcn gets called. An
15 % unrecognized property name or invalid value makes property application
16 % stop. All inputs are passed to vs_ShowWaveform_OpeningFcn via varargin.
17 %
18 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
19 % instance to run (singleton)".
20 %
21 % See also: GUIDE, GUIDATA, GUIHANDLES
22
23 % Edit the above text to modify the response to help vs_ShowWaveform
24
25 % Last Modified by GUIDE v2.5 24-Jul-2009 14:54:12
26
27 % Begin initialization code - DO NOT EDIT
28 gui_Singleton = 1;
29 gui_State = struct('gui_Name', mfilename, ...
30 'gui_Singleton', gui_Singleton, ...
31 'gui_OpeningFcn', @vs_ShowWaveform_OpeningFcn, ...
32 'gui_OutputFcn', @vs_ShowWaveform_OutputFcn, ...
33 'gui_LayoutFcn', [] , ...
34 'gui_Callback', []);
35 if nargin && ischar(varargin{1})
36 gui_State.gui_Callback = str2func(varargin{1});
37 end
38
39 if nargout
40 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
41 else
42 gui_mainfcn(gui_State, varargin{:});
43 end
44 % End initialization code - DO NOT EDIT
45
46
47 % --- Executes just before vs_ShowWaveform is made visible.
48 function vs_ShowWaveform_OpeningFcn(hObject, eventdata, handles, varargin)
49 % This function has no output args, see OutputFcn.
50 % hObject handle to figure
51 % eventdata reserved - to be defined in a future version of MATLAB
52 % handles structure with handles and user data (see GUIDATA)
53 % varargin command line arguments to vs_ShowWaveform (see VARARGIN)
54
55 % Choose default command line output for vs_ShowWaveform
56 handles.output = hObject;
57
58 PEfig = vs_ParameterEstimation;
59 PEhandle = guidata(PEfig);
60 handles.PEfig = PEfig;
61 handles.PEhandle = PEhandle;
62
63 if (~isfield(PEhandle, 'SWfig'))
64 VSData = guidata(PEhandle.VSHandle);
65 VSData.vars.PE_showwaveform = 1;
66 guidata(PEhandle.VSHandle, VSData);
67 end
68
69 % Update handles structure
70 guidata(hObject, handles);
71
72 % UIWAIT makes vs_ShowWaveform wait for user response (see UIRESUME)
73 % uiwait(handles.figure_ShowWaveform);
74
75
76 % --- Outputs from this function are returned to the command line.
77 function varargout = vs_ShowWaveform_OutputFcn(hObject, eventdata, handles)
78 % varargout cell array for returning output args (see VARARGOUT);
79 % hObject handle to figure
80 % eventdata reserved - to be defined in a future version of MATLAB
81 % handles structure with handles and user data (see GUIDATA)
82
83 % Get default command line output from handles structure
84 varargout{1} = handles.output;
85
86
87 % --- Executes when user attempts to close figure_ShowWaveform.
88 function figure_ShowWaveform_CloseRequestFcn(hObject, eventdata, handles)
89 % hObject handle to figure_ShowWaveform (see GCBO)
90 % eventdata reserved - to be defined in a future version of MATLAB
91 % handles structure with handles and user data (see GUIDATA)
92
93 set(handles.PEhandle.checkbox_showwaveform, 'Value', 0);
94 PEData = guidata(handles.PEfig);
95 if (isfield(PEData, 'SWfig'))
96 PEData = rmfield(PEData, 'SWfig');
97 guidata(handles.PEfig, PEData);
98 VSData = guidata(PEData.VSHandle);
99 VSData.vars.PE_showwaveform = 0;
100 guidata(PEData.VSHandle, VSData);
101 end
102
103 delete(hObject);
104
105