function varargout = programa_separa(varargin) % PROGRAMA_SEPARA M-file for programa_separa.fig % PROGRAMA_SEPARA, by itself, creates a new PROGRAMA_SEPARA or raises the existing % singleton*. % % H = PROGRAMA_SEPARA returns the handle to a new PROGRAMA_SEPARA or the handle to % the existing singleton*. % % PROGRAMA_SEPARA('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in PROGRAMA_SEPARA.M with the given input arguments. % % PROGRAMA_SEPARA('Property','Value',...) creates a new PROGRAMA_SEPARA or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before programa_separa_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to programa_separa_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help programa_separa % Last Modified by GUIDE v2.5 21-Jan-2007 15:52:26 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @programa_separa_OpeningFcn, ... 'gui_OutputFcn', @programa_separa_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin & isstr(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before programa_separa is made visible. function programa_separa_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to programa_separa (see VARARGIN) % Choose default command line output for programa_separa handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes programa_separa wait for user response (see UIRESUME) % uiwait(handles.figure1); clear all; % --- Outputs from this function are returned to the command line. function varargout = programa_separa_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; % --- Executes during object creation, after setting all properties. function edit_s1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit_s1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes during object creation, after setting all properties. function edit_s2_CreateFcn(hObject, eventdata, handles) % hObject handle to edit_s2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function edit_s2_Callback(hObject, eventdata, handles) % hObject handle to edit_s2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit_s2 as text % str2double(get(hObject,'String')) returns contents of edit_s2 as a double % La ruta y nombre del segundo .wav fuente sera fuente2 global fuente2; fuente2=get(gcbo,'String'); % Activamos el radioboton de 2 fuentes y desactivamos el de 3 set(handles.radioGenera2Fuentes,'Value',1); set(handles.radioGenera3Fuentes,'Value',0); set(handles.radioCarga,'Value',0); set(handles.edit_x,'String',''); % --- Executes during object creation, after setting all properties. function edit_s3_CreateFcn(hObject, eventdata, handles) % hObject handle to edit_s3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function edit_s3_Callback(hObject, eventdata, handles) % hObject handle to edit_s3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit_s3 as text % str2double(get(hObject,'String')) returns contents of edit_s3 as a double % La ruta y nombre del tercer .wav fuente sera fuente3 global fuente3; fuente3=get(gcbo,'String'); % Activamos el radioboton de 3 fuentes y desactivamos el de 2 set(handles.radioGenera2Fuentes,'Value',0); set(handles.radioGenera3Fuentes,'Value',1); set(handles.radioCarga,'Value',0); set(handles.edit_x,'String',''); % --- Executes on button press in radioGenera2Fuentes. function radioGenera2Fuentes_Callback(hObject, eventdata, handles) % hObject handle to radioGenera2Fuentes (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radioGenera2Fuentes % Cuando se activa este boton los otros se desactivan set(handles.radioGenera2Fuentes,'Value',1); set(handles.radioGenera3Fuentes,'Value',0); set(handles.radioCarga,'Value',0); set(handles.edit_x,'String',''); % --- Executes on button press in radioGenera3Fuentes. function radioGenera3Fuentes_Callback(hObject, eventdata, handles) % hObject handle to radioGenera3Fuentes (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radioGenera3Fuentes % Cuando se activa este boton los otros se desactivan set(handles.radioGenera2Fuentes,'Value',0); set(handles.radioGenera3Fuentes,'Value',1); set(handles.radioCarga,'Value',0); set(handles.edit_x,'String',''); % --- Executes during object creation, after setting all properties. function edit_x_CreateFcn(hObject, eventdata, handles) % hObject handle to edit_x (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function edit_x_Callback(hObject, eventdata, handles) % hObject handle to edit_x (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit_x as text % str2double(get(hObject,'String')) returns contents of edit_x as a double % La ruta y nombre del .wav que contiene la mezcla sera mezcla_x global mezcla_x; mezcla_x=get(gcbo,'String'); % Activamos el radioboton adecuado y desactivamos los otros 2 set(handles.radioGenera2Fuentes,'Value',0); set(handles.radioGenera3Fuentes,'Value',0); set(handles.radioCarga,'Value',1); % Borro los campos correspondientes set(handles.edit_s1,'String',''); set(handles.edit_s2,'String',''); set(handles.edit_s3,'String',''); % --- Executes on button press in radioCarga. function radioCarga_Callback(hObject, eventdata, handles) % hObject handle to radioCarga (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of radioCarga % Cuando se activa este boton los otros se desactivan set(handles.radioGenera2Fuentes,'Value',0); set(handles.radioGenera3Fuentes,'Value',0); set(handles.radioCarga,'Value',1); set(handles.edit_s1,'String',''); set(handles.edit_s2,'String',''); set(handles.edit_s3,'String',''); % --- Executes on button press in cargarGenerar. function cargarGenerar_Callback(hObject, eventdata, handles) % hObject handle to cargarGenerar (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Cargamos las voces en s1,s3,s3 global s fs fuente1 fuente2 fuente3 n; [s1,fs]=wavread(fuente1); s2=wavread(fuente2); if get(handles.radioGenera2Fuentes,'Value') if length(s1) e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


SEPARACIÓN CIEGA DE FUENTES EN MEZCLAS SINTÉTICAS DE VOZ

: Muñoz Cueva, Óscar
: Ingeniería Telecomunicación
Contenido del proyecto: