function fig = mvrip_gui()
% MVRIP_GUI Graphical User Interface for generating moving ripples
%	The action function mvripgui.m calls the multimvripfft.m to generate
%	the moving ripples.  Please refer the multimvripfft.m for definitions
%	of all parameters. 
%
%	To open this interface, just type the name of the M-file at the MATLAB
%	prompt. The M-file and its associated MAT-file must be on your path.

% Auther: Taishih Chi (tschi@isr.umd.edu), NSL, UMD
% v1.00: 06-Jan-99

loadload; colormap(jet);
load mvrip_gui 

h0 = figure('Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'Position',[393 328 680 450], ...
	'Tag','Fig1');
h1 = axes('Parent',h0, ...
	'FontUnits','normalized', ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat1, ...
	'FontSize',0.03577441077441078, ...
	'Position',[0.07205882352941177 0.1755555555555556 0.5147058823529411 0.7333333333333333], ...
	'Tag','Axes1', ...
	'XColor',[0 0 0], ...
	'YColor',[0 0 0], ...
	'ZColor',[0 0 0], ...
	'ZGrid','on');
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[0.4971264367816092 -0.06079027355623112 9.160254037844386], ...
	'Tag','Axes1Text4', ...
	'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[-0.06896551724137932 0.4954407294832825 9.160254037844386], ...
	'Rotation',90, ...
	'Tag','Axes1Text3', ...
	'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','right', ...
	'Position',mat2, ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[0.4971264367816092 1.015197568389058 9.160254037844386], ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'Callback','x = mvripgui(''play'');', ...
	'FontSize',0.2951388888888889, ...
	'ListboxTop',0, ...
	'Position',[0.06944444444444445 0.03935185185185185 0.2430555555555556 0.06558641975308642], ...
	'String','Play Sound', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'Callback','x = mvripgui(''plot'');', ...
	'FontSize',0.2951388888888889, ...
	'ListboxTop',0, ...
	'Position',[0.3472222222222223 0.03935185185185185 0.2430555555555556 0.06558641975308642], ...
	'String','Plot Auditory Spectrogram', ...
	'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat3, ...
	'String','# of rip', ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.8972222222222223 0.15625 0.04197530864197531], ...
	'String','Bandwidth (oct)', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3577441077441078, ...
	'ListboxTop',0, ...
	'Position',[0.6279411764705882 0.8422222222222223 0.1573529411764706 0.05111111111111111], ...
	'String','5', ...
	'Style','edit', ...
	'Tag','EditText01');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat4, ...
	'String','Relative Amp', ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.7660493827160494 0.15625 0.04197530864197531], ...
	'String','Relative Amplitude', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3577441077441078, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.7135802469135802 0.15625 0.05246913580246913], ...
	'String','1', ...
	'Style','edit', ...
	'Tag','EditText02');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat5, ...
	'String','Rate', ...
	'Style','frame', ...
	'Tag','Frame3');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat6, ...
	'String','Scale', ...
	'Style','frame', ...
	'Tag','Frame4');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat7, ...
	'String','Phase', ...
	'Style','frame', ...
	'Tag','Frame5');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat8, ...
	'String','Duration', ...
	'Style','frame', ...
	'Tag','Frame6');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.2071150097465887, ...
	'ListboxTop',0, ...
	'Position',mat9, ...
	'String','SF', ...
	'Style','frame', ...
	'Tag','Frame7');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.6348765432098765 0.15625 0.04197530864197531], ...
	'String','Rate (Hz)', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.5037037037037038 0.15625 0.04197530864197531], ...
	'String','Scale (cyc/oct)', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.3725308641975308 0.15625 0.04197530864197531], ...
	'String','Phase', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.241358024691358 0.15625 0.04197530864197531], ...
	'String','Duration (sec)', ...
	'Style','text', ...
	'Tag','StaticText6');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'FontSize',0.407088122605364, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.1101851851851852 0.15625 0.04197530864197531], ...
	'String','SF (kHz)', ...
	'Style','text', ...
	'Tag','StaticText7');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3577441077441078, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.5824074074074074 0.15625 0.05246913580246913], ...
	'String','4,12,[4 12]', ...
	'Style','edit', ...
	'Tag','EditText03');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3577441077441078, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.4512345679012346 0.15625 0.05246913580246913], ...
	'String','2', ...
	'Style','edit', ...
	'Tag','EditText04');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3577441077441078, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.3200617283950618 0.15625 0.05246913580246913], ...
	'String','0', ...
	'Style','edit', ...
	'Tag','EditText05');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3472222222222222, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.1888888888888889 0.15625 0.05246913580246913], ...
	'String','1', ...
	'Style','edit', ...
	'Tag','EditText06');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'FontSize',0.3472222222222222, ...
	'ListboxTop',0, ...
	'Position',[0.6293402777777778 0.05771604938271605 0.15625 0.05246913580246913], ...
	'String','8', ...
	'Style','edit', ...
	'Tag','EditText07');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'ListboxTop',0, ...
	'Position',mat10, ...
	'String','Spacing flag', ...
	'Style','frame', ...
	'Tag','Frame8');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'ListboxTop',0, ...
	'Position',mat11, ...
	'String','freq spacing', ...
	'Style','frame', ...
	'Tag','Frame9');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'ListboxTop',0, ...
	'Position',mat12, ...
	'String','roll-off', ...
	'Style','frame', ...
	'Tag','Frame10');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',mat13, ...
	'String','Amplitude flag', ...
	'Style','frame', ...
	'Tag','Frame11');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'ListboxTop',0, ...
	'Position',mat14, ...
	'String','amp modulation', ...
	'Style','frame', ...
	'Tag','Frame12');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.7135802469135802 0.15625 0.05246913580246913], ...
	'String','1/16', ...
	'Style','edit', ...
	'Tag','EditText08');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.5824074074074074 0.15625 0.05246913580246913], ...
	'String','0', ...
	'Style','edit', ...
	'Tag','EditText09');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.1888888888888889 0.15625 0.05246913580246913], ...
	'String','0.9', ...
	'Style','edit', ...
	'Tag','EditText10');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.241358024691358 0.15625 0.04197530864197531], ...
	'String','Amp. Modulation', ...
	'Style','text', ...
	'Tag','StaticText8');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.3725308641975308 0.15625 0.04197530864197531], ...
	'String','Amp.  Unit', ...
	'Style','text', ...
	'Tag','StaticText9');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.6348765432098765 0.15625 0.04197530864197531], ...
	'String','Roll-off (dB/oct)', ...
	'Style','text', ...
	'Tag','StaticText10');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.7660493827160494 0.15625 0.04197530864197531], ...
	'String','Freq. Spacing', ...
	'Style','text', ...
	'Tag','StaticText11');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Position',[0.8203125000000001 0.8972222222222223 0.15625 0.04197530864197531], ...
	'String','Component Spacing', ...
	'Style','text', ...
	'Tag','StaticText12');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'ListboxTop',0, ...
	'Max',2, ...
	'Min',1, ...
	'Position',[0.8203125000000001 0.8447530864197531 0.15625 0.05246913580246913], ...
	'String',['Log Spacing(oct)';'  Harmonic  (Hz)'], ...
	'Style','popupmenu', ...
	'Tag','PopupMenu1', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'BackgroundColor',[0.701960784313725 0.701960784313725 0.701960784313725], ...
	'ListboxTop',0, ...
	'Max',2, ...
	'Min',1, ...
	'Position',[0.8203125000000001 0.3200617283950618 0.15625 0.05246913580246913], ...
	'String',['Linear';' Log  '], ...
	'Style','popupmenu', ...
	'Tag','PopupMenu2', ...
	'Value',1);
if nargout > 0, fig = h0; end
