📄 reverbexpogui.m
字号:
function varargout = reverbexpogui(varargin)% REVERBEXPOGUI M-file for reverbexpogui.fig% REVERBEXPOGUI, by itself, creates a new REVERBEXPOGUI or raises the existing% singleton*.%% H = REVERBEXPOGUI returns the handle to a new REVERBEXPOGUI or the handle to% the existing singleton*.%% REVERBEXPOGUI('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in REVERBEXPOGUI.M with the given input arguments.%% REVERBEXPOGUI('Property','Value',...) creates a new REVERBEXPOGUI or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before reverbexpogui_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to reverbexpogui_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 reverbexpogui% Last Modified by GUIDE v2.5 18-Nov-2004 10:44:22% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @reverbexpogui_OpeningFcn, ... 'gui_OutputFcn', @reverbexpogui_OutputFcn, ... 'gui_LayoutFcn', @reverbexpogui_LayoutFcn, ... 'gui_Callback', []);if nargin & isstr(varargin{1}) gui_State.gui_Callback = str2func(varargin{1});endif 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 reverbexpogui is made visible.function reverbexpogui_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 reverbexpogui (see VARARGIN)% Choose default command line output for reverbexpoguihandles.output = hObject; guidata(hObject, handles); set(gcf,'UserData',handles); reverbexpofn; if (nargin > 3) datastruct = varargin{1}; reverbexpofn('readinput',datastruct); end% --- Outputs from this function are returned to the command line.function varargout = reverbexpogui_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 structurevarargout{1} = handles.output;% --- Executes on button press in play.function play_Callback(hObject, eventdata, handles)% hObject handle to play (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) reverbexpofn 'playsound';% --- Executes on button press in filter1.function filter1_Callback(hObject, eventdata, handles)% hObject handle to filter1 (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 filter1 reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter1_a_CreateFcn(hObject, eventdata, handles)% hObject handle to filter1_a (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'));endfunction filter1_a_Callback(hObject, eventdata, handles)% hObject handle to filter1_a (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 filter1_a as text% str2double(get(hObject,'String')) returns contents of filter1_a as a double reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter1_D_CreateFcn(hObject, eventdata, handles)% hObject handle to filter1_D (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'));endfunction filter1_D_Callback(hObject, eventdata, handles)% hObject handle to filter1_D (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 filter1_D as text% str2double(get(hObject,'String')) returns contents of filter1_D as a double reverbexpofn 'update';% --- Executes on button press in filter2.function filter2_Callback(hObject, eventdata, handles)% hObject handle to filter2 (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 filter2 reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter2_a_CreateFcn(hObject, eventdata, handles)% hObject handle to filter2_a (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'));endfunction filter2_a_Callback(hObject, eventdata, handles)% hObject handle to filter2_a (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 filter2_a as text% str2double(get(hObject,'String')) returns contents of filter2_a as a double reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter2_D_CreateFcn(hObject, eventdata, handles)% hObject handle to filter2_D (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'));endfunction filter2_D_Callback(hObject, eventdata, handles)% hObject handle to filter2_D (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 filter2_D as text% str2double(get(hObject,'String')) returns contents of filter2_D as a double reverbexpofn 'update';% --- Executes on button press in filter3.function filter3_Callback(hObject, eventdata, handles)% hObject handle to filter3 (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 filter3 reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter3_a_CreateFcn(hObject, eventdata, handles)% hObject handle to filter3_a (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'));endfunction filter3_a_Callback(hObject, eventdata, handles)% hObject handle to filter3_a (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 filter3_a as text% str2double(get(hObject,'String')) returns contents of filter3_a as a double reverbexpofn 'update';% --- Executes during object creation, after setting all properties.function filter3_D_CreateFcn(hObject, eventdata, handles)% hObject handle to filter3_D (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'));endfunction filter3_D_Callback(hObject, eventdata, handles)% hObject handle to filter3_D (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 filter3_D as text% str2double(get(hObject,'String')) returns contents of filter3_D as a double reverbexpofn 'update';% --- Executes on button press in reverberate.function reverberate_Callback(hObject, eventdata, handles)% hObject handle to reverberate (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) reverbexpofn 'reverberate';% --- Executes on button press in play_reverb.function play_reverb_Callback(hObject, eventdata, handles)% hObject handle to play_reverb (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) reverbexpofn 'playreverb';% --- Executes during object creation, after setting all properties.function time_extend_CreateFcn(hObject, eventdata, handles)% hObject handle to time_extend (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'));endfunction time_extend_Callback(hObject, eventdata, handles)% hObject handle to time_extend (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 time_extend as text% str2double(get(hObject,'String')) returns contents of time_extend as a double% --- Executes on button press in pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObject handle to pushbutton4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --- Executes during object creation, after setting all properties.function filter1_type_CreateFcn(hObject, eventdata, handles)% hObject handle to filter1_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: popupmenu 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 on selection change in filter1_type.function filter1_type_Callback(hObject, eventdata, handles)% hObject handle to filter1_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns filter1_type contents as cell array% contents{get(hObject,'Value')} returns selected item from filter1_type if get(hObject,'Value') reverbexpofn 'update'; end% --- Executes during object creation, after setting all properties.function filter2_type_CreateFcn(hObject, eventdata, handles)% hObject handle to filter2_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: popupmenu 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 on selection change in filter2_type.function filter2_type_Callback(hObject, eventdata, handles)% hObject handle to filter2_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns filter2_type contents as cell array% contents{get(hObject,'Value')} returns selected item from filter2_type if get(hObject,'Value') reverbexpofn 'update'; end% --- Executes during object creation, after setting all properties.function filter3_type_CreateFcn(hObject, eventdata, handles)% hObject handle to filter3_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: popupmenu 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 on selection change in filter3_type.function filter3_type_Callback(hObject, eventdata, handles)% hObject handle to filter3_type (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns filter3_type contents as cell array% contents{get(hObject,'Value')} returns selected item from filter3_type if get(hObject,'Value') reverbexpofn 'update'; end% --------------------------------------------------------------------function FileMenu_Callback(hObject, eventdata, handles)% hObject handle to FileMenu (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function OpenMenuItem_Callback(hObject, eventdata, handles)% hObject handle to OpenMenuItem (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) reverbexpofn 'loadsound';% --------------------------------------------------------------------function CloseMenuItem_Callback(hObject, eventdata, handles)% hObject handle to CloseMenuItem (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -