Dawn@4: function varargout = VoiceSauce(varargin) Dawn@4: % VOICESAUCE M-file for VoiceSauce.fig Dawn@4: % VOICESAUCE, by itself, creates a new VOICESAUCE or raises the existing Dawn@4: % singleton*. Dawn@4: % Dawn@4: % H = VOICESAUCE returns the handle to a new VOICESAUCE or the handle to Dawn@4: % the existing singleton*. Dawn@4: % Dawn@4: % VOICESAUCE('CALLBACK',hObject,eventData,handles,...) calls the local Dawn@4: % function named CALLBACK in VOICESAUCE.M with the given input arguments. Dawn@4: % Dawn@4: % VOICESAUCE('Property','Value',...) creates a new VOICESAUCE or raises the Dawn@4: % existing singleton*. Starting from the left, property value pairs are Dawn@4: % applied to the GUI before VoiceSauce_OpeningFcn gets called. An Dawn@4: % unrecognized property name or invalid value makes property application Dawn@4: % stop. All inputs are passed to VoiceSauce_OpeningFcn via varargin. Dawn@4: % Dawn@4: % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one Dawn@4: % instance to run (singleton)". Dawn@4: % Dawn@4: % See also: GUIDE, GUIDATA, GUIHANDLES Dawn@4: Dawn@4: % Edit the above text to modify the response to help VoiceSauce Dawn@4: Dawn@4: % Last Modified by GUIDE v2.5 10-Nov-2009 15:23:03 Dawn@4: Dawn@4: % Begin initialization code - DO NOT EDIT Dawn@4: gui_Singleton = 1; Dawn@4: gui_State = struct('gui_Name', mfilename, ... Dawn@4: 'gui_Singleton', gui_Singleton, ... Dawn@4: 'gui_OpeningFcn', @VoiceSauce_OpeningFcn, ... Dawn@4: 'gui_OutputFcn', @VoiceSauce_OutputFcn, ... Dawn@4: 'gui_LayoutFcn', [] , ... Dawn@4: 'gui_Callback', []); Dawn@4: if nargin && ischar(varargin{1}) Dawn@4: gui_State.gui_Callback = str2func(varargin{1}); Dawn@4: end Dawn@4: Dawn@4: if nargout Dawn@4: [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); Dawn@4: else Dawn@4: gui_mainfcn(gui_State, varargin{:}); Dawn@4: end Dawn@4: % End initialization code - DO NOT EDIT Dawn@4: Dawn@4: Dawn@4: % --- Executes just before VoiceSauce is made visible. Dawn@4: function VoiceSauce_OpeningFcn(hObject, eventdata, handles, varargin) Dawn@4: % This function has no output args, see OutputFcn. Dawn@4: % hObject handle to figure Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: % varargin command line arguments to VoiceSauce (see VARARGIN) Dawn@4: Dawn@4: % Choose default command line output for VoiceSauce Dawn@4: handles.output = hObject; Dawn@4: Dawn@4: % YS: add initialization variables here Dawn@4: if (~isfield(handles, 'vars')) Dawn@4: vars = vs_Initialize(); Dawn@4: handles.vars = vars; Dawn@4: end Dawn@4: Dawn@4: % Update handles structure Dawn@4: guidata(hObject, handles); Dawn@4: Dawn@4: % UIWAIT makes VoiceSauce wait for user response (see UIRESUME) Dawn@4: % uiwait(handles.figure_VoiceSauce); Dawn@4: Dawn@4: Dawn@4: % --- Outputs from this function are returned to the command line. Dawn@4: function varargout = VoiceSauce_OutputFcn(hObject, eventdata, handles) Dawn@4: % varargout cell array for returning output args (see VARARGOUT); Dawn@4: % hObject handle to figure Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: % Get default command line output from handles structure Dawn@4: varargout{1} = handles.output; Dawn@4: Dawn@4: Dawn@4: % --- Executes on button press in button_ParameterEstimation. Dawn@4: function button_ParameterEstimation_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to button_ParameterEstimation (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: vs_ParameterEstimation(); Dawn@4: Dawn@4: Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_OutputtoText. Dawn@4: function pushbutton_OutputtoText_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_OutputtoText (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: vs_OutputToText(); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_OutputtoEMU. Dawn@4: function pushbutton_OutputtoEMU_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_OutputtoEMU (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: % Hint: get(hObject,'Value') returns toggle state of pushbutton_OutputtoEMU Dawn@4: vs_OutputToEMU(); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_ParameterDisplay. Dawn@4: function pushbutton_ParameterDisplay_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_ParameterDisplay (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: % Hint: get(hObject,'Value') returns toggle state of pushbutton_ParameterDisplay Dawn@4: vs_ParameterDisplay(); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_Settings. Dawn@4: function pushbutton_Settings_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_Settings (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: vs_Settings(); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_Exit. Dawn@4: function pushbutton_Exit_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_Exit (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: delete(get(0, 'Children')); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_ManualData. Dawn@4: function pushbutton_ManualData_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_ManualData (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: vs_ManualData(); Dawn@4: Dawn@4: % --- Executes on button press in pushbutton_About. Dawn@4: function pushbutton_About_Callback(hObject, eventdata, handles) Dawn@4: % hObject handle to pushbutton_About (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: vs_About(); Dawn@4: Dawn@4: Dawn@4: % --- Executes when user attempts to close figure_VoiceSauce. Dawn@4: function figure_VoiceSauce_CloseRequestFcn(hObject, eventdata, handles) Dawn@4: % hObject handle to figure_VoiceSauce (see GCBO) Dawn@4: % eventdata reserved - to be defined in a future version of MATLAB Dawn@4: % handles structure with handles and user data (see GUIDATA) Dawn@4: Dawn@4: % Hint: delete(hObject) closes the figure Dawn@4: delete(get(0, 'Children')); Dawn@4: Dawn@4: