Dawn@4
|
1 function varargout = VoiceSauce(varargin)
|
Dawn@4
|
2 % VOICESAUCE M-file for VoiceSauce.fig
|
Dawn@4
|
3 % VOICESAUCE, by itself, creates a new VOICESAUCE or raises the existing
|
Dawn@4
|
4 % singleton*.
|
Dawn@4
|
5 %
|
Dawn@4
|
6 % H = VOICESAUCE returns the handle to a new VOICESAUCE or the handle to
|
Dawn@4
|
7 % the existing singleton*.
|
Dawn@4
|
8 %
|
Dawn@4
|
9 % VOICESAUCE('CALLBACK',hObject,eventData,handles,...) calls the local
|
Dawn@4
|
10 % function named CALLBACK in VOICESAUCE.M with the given input arguments.
|
Dawn@4
|
11 %
|
Dawn@4
|
12 % VOICESAUCE('Property','Value',...) creates a new VOICESAUCE or raises the
|
Dawn@4
|
13 % existing singleton*. Starting from the left, property value pairs are
|
Dawn@4
|
14 % applied to the GUI before VoiceSauce_OpeningFcn gets called. An
|
Dawn@4
|
15 % unrecognized property name or invalid value makes property application
|
Dawn@4
|
16 % stop. All inputs are passed to VoiceSauce_OpeningFcn via varargin.
|
Dawn@4
|
17 %
|
Dawn@4
|
18 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
|
Dawn@4
|
19 % instance to run (singleton)".
|
Dawn@4
|
20 %
|
Dawn@4
|
21 % See also: GUIDE, GUIDATA, GUIHANDLES
|
Dawn@4
|
22
|
Dawn@4
|
23 % Edit the above text to modify the response to help VoiceSauce
|
Dawn@4
|
24
|
Dawn@4
|
25 % Last Modified by GUIDE v2.5 10-Nov-2009 15:23:03
|
Dawn@4
|
26
|
Dawn@4
|
27 % Begin initialization code - DO NOT EDIT
|
Dawn@4
|
28 gui_Singleton = 1;
|
Dawn@4
|
29 gui_State = struct('gui_Name', mfilename, ...
|
Dawn@4
|
30 'gui_Singleton', gui_Singleton, ...
|
Dawn@4
|
31 'gui_OpeningFcn', @VoiceSauce_OpeningFcn, ...
|
Dawn@4
|
32 'gui_OutputFcn', @VoiceSauce_OutputFcn, ...
|
Dawn@4
|
33 'gui_LayoutFcn', [] , ...
|
Dawn@4
|
34 'gui_Callback', []);
|
Dawn@4
|
35 if nargin && ischar(varargin{1})
|
Dawn@4
|
36 gui_State.gui_Callback = str2func(varargin{1});
|
Dawn@4
|
37 end
|
Dawn@4
|
38
|
Dawn@4
|
39 if nargout
|
Dawn@4
|
40 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
|
Dawn@4
|
41 else
|
Dawn@4
|
42 gui_mainfcn(gui_State, varargin{:});
|
Dawn@4
|
43 end
|
Dawn@4
|
44 % End initialization code - DO NOT EDIT
|
Dawn@4
|
45
|
Dawn@4
|
46
|
Dawn@4
|
47 % --- Executes just before VoiceSauce is made visible.
|
Dawn@4
|
48 function VoiceSauce_OpeningFcn(hObject, eventdata, handles, varargin)
|
Dawn@4
|
49 % This function has no output args, see OutputFcn.
|
Dawn@4
|
50 % hObject handle to figure
|
Dawn@4
|
51 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
52 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
53 % varargin command line arguments to VoiceSauce (see VARARGIN)
|
Dawn@4
|
54
|
Dawn@4
|
55 % Choose default command line output for VoiceSauce
|
Dawn@4
|
56 handles.output = hObject;
|
Dawn@4
|
57
|
Dawn@4
|
58 % YS: add initialization variables here
|
Dawn@4
|
59 if (~isfield(handles, 'vars'))
|
Dawn@4
|
60 vars = vs_Initialize();
|
Dawn@4
|
61 handles.vars = vars;
|
Dawn@4
|
62 end
|
Dawn@4
|
63
|
Dawn@4
|
64 % Update handles structure
|
Dawn@4
|
65 guidata(hObject, handles);
|
Dawn@4
|
66
|
Dawn@4
|
67 % UIWAIT makes VoiceSauce wait for user response (see UIRESUME)
|
Dawn@4
|
68 % uiwait(handles.figure_VoiceSauce);
|
Dawn@4
|
69
|
Dawn@4
|
70
|
Dawn@4
|
71 % --- Outputs from this function are returned to the command line.
|
Dawn@4
|
72 function varargout = VoiceSauce_OutputFcn(hObject, eventdata, handles)
|
Dawn@4
|
73 % varargout cell array for returning output args (see VARARGOUT);
|
Dawn@4
|
74 % hObject handle to figure
|
Dawn@4
|
75 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
76 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
77
|
Dawn@4
|
78 % Get default command line output from handles structure
|
Dawn@4
|
79 varargout{1} = handles.output;
|
Dawn@4
|
80
|
Dawn@4
|
81
|
Dawn@4
|
82 % --- Executes on button press in button_ParameterEstimation.
|
Dawn@4
|
83 function button_ParameterEstimation_Callback(hObject, eventdata, handles)
|
Dawn@4
|
84 % hObject handle to button_ParameterEstimation (see GCBO)
|
Dawn@4
|
85 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
86 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
87
|
Dawn@4
|
88 vs_ParameterEstimation();
|
Dawn@4
|
89
|
Dawn@4
|
90
|
Dawn@4
|
91
|
Dawn@4
|
92 % --- Executes on button press in pushbutton_OutputtoText.
|
Dawn@4
|
93 function pushbutton_OutputtoText_Callback(hObject, eventdata, handles)
|
Dawn@4
|
94 % hObject handle to pushbutton_OutputtoText (see GCBO)
|
Dawn@4
|
95 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
96 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
97
|
Dawn@4
|
98 vs_OutputToText();
|
Dawn@4
|
99
|
Dawn@4
|
100 % --- Executes on button press in pushbutton_OutputtoEMU.
|
Dawn@4
|
101 function pushbutton_OutputtoEMU_Callback(hObject, eventdata, handles)
|
Dawn@4
|
102 % hObject handle to pushbutton_OutputtoEMU (see GCBO)
|
Dawn@4
|
103 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
104 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
105
|
Dawn@4
|
106 % Hint: get(hObject,'Value') returns toggle state of pushbutton_OutputtoEMU
|
Dawn@4
|
107 vs_OutputToEMU();
|
Dawn@4
|
108
|
Dawn@4
|
109 % --- Executes on button press in pushbutton_ParameterDisplay.
|
Dawn@4
|
110 function pushbutton_ParameterDisplay_Callback(hObject, eventdata, handles)
|
Dawn@4
|
111 % hObject handle to pushbutton_ParameterDisplay (see GCBO)
|
Dawn@4
|
112 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
113 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
114
|
Dawn@4
|
115 % Hint: get(hObject,'Value') returns toggle state of pushbutton_ParameterDisplay
|
Dawn@4
|
116 vs_ParameterDisplay();
|
Dawn@4
|
117
|
Dawn@4
|
118 % --- Executes on button press in pushbutton_Settings.
|
Dawn@4
|
119 function pushbutton_Settings_Callback(hObject, eventdata, handles)
|
Dawn@4
|
120 % hObject handle to pushbutton_Settings (see GCBO)
|
Dawn@4
|
121 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
122 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
123
|
Dawn@4
|
124 vs_Settings();
|
Dawn@4
|
125
|
Dawn@4
|
126 % --- Executes on button press in pushbutton_Exit.
|
Dawn@4
|
127 function pushbutton_Exit_Callback(hObject, eventdata, handles)
|
Dawn@4
|
128 % hObject handle to pushbutton_Exit (see GCBO)
|
Dawn@4
|
129 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
130 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
131
|
Dawn@4
|
132 delete(get(0, 'Children'));
|
Dawn@4
|
133
|
Dawn@4
|
134 % --- Executes on button press in pushbutton_ManualData.
|
Dawn@4
|
135 function pushbutton_ManualData_Callback(hObject, eventdata, handles)
|
Dawn@4
|
136 % hObject handle to pushbutton_ManualData (see GCBO)
|
Dawn@4
|
137 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
138 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
139
|
Dawn@4
|
140 vs_ManualData();
|
Dawn@4
|
141
|
Dawn@4
|
142 % --- Executes on button press in pushbutton_About.
|
Dawn@4
|
143 function pushbutton_About_Callback(hObject, eventdata, handles)
|
Dawn@4
|
144 % hObject handle to pushbutton_About (see GCBO)
|
Dawn@4
|
145 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
146 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
147 vs_About();
|
Dawn@4
|
148
|
Dawn@4
|
149
|
Dawn@4
|
150 % --- Executes when user attempts to close figure_VoiceSauce.
|
Dawn@4
|
151 function figure_VoiceSauce_CloseRequestFcn(hObject, eventdata, handles)
|
Dawn@4
|
152 % hObject handle to figure_VoiceSauce (see GCBO)
|
Dawn@4
|
153 % eventdata reserved - to be defined in a future version of MATLAB
|
Dawn@4
|
154 % handles structure with handles and user data (see GUIDATA)
|
Dawn@4
|
155
|
Dawn@4
|
156 % Hint: delete(hObject) closes the figure
|
Dawn@4
|
157 delete(get(0, 'Children'));
|
Dawn@4
|
158
|
Dawn@4
|
159
|