www.gusucode.com > 声音的处理有:LPC,FFT,共振峰,频谱源码程序 > siganlandsystemusingMatlab/SSUM/stocho/stochogui.m
function varargout = stochogui(varargin) % STOCHOGUI M-file for stochogui.fig % STOCHOGUI, by itself, creates a new STOCHOGUI or raises the existing % singleton*. % % H = STOCHOGUI returns the handle to a new STOCHOGUI or the handle to % the existing singleton*. % % STOCHOGUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in STOCHOGUI.M with the given input arguments. % % STOCHOGUI('Property','Value',...) creates a new STOCHOGUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before stochogui_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to stochogui_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 stochogui % Last Modified by GUIDE v2.5 24-Mar-2004 15:22:09 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @stochogui_OpeningFcn, ... 'gui_OutputFcn', @stochogui_OutputFcn, ... 'gui_LayoutFcn', @stochogui_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 stochogui is made visible. function stochogui_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; guidata(hObject, handles); set(gcf,'UserData',handles); stochofn; % --- Outputs from this function are returned to the command line. function varargout = stochogui_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output; % -------------------------------------------------------------------- function s1_compose_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 1; set(gcf,'UserData',handles); stochofn 'compose' function s2_compose_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 2; set(gcf,'UserData',handles); stochofn 'compose' function s3_compose_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 3; set(gcf,'UserData',handles); stochofn 'compose' % -------------------------------------------------------------------- function s0_plot_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 0; set(gcf,'UserData',handles); stochofn 'plot' function s1_plot_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 1; set(gcf,'UserData',handles); stochofn 'plot' function s2_plot_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 2; set(gcf,'UserData',handles); stochofn 'plot' function s3_plot_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 3; set(gcf,'UserData',handles); stochofn 'plot' % -------------------------------------------------------------------- function s0_play_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 0; set(gcf,'UserData',handles); stochofn 'play' function s1_play_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 1; set(gcf,'UserData',handles); stochofn 'play' function s2_play_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 2; set(gcf,'UserData',handles); stochofn 'play' function s3_play_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 3; set(gcf,'UserData',handles); stochofn 'play' % -------------------------------------------------------------------- function s1_vol_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 1; set(gcf,'UserData',handles); stochofn 'vol_edit' function s2_vol_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 2; set(gcf,'UserData',handles); stochofn 'vol_edit' function s3_vol_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 3; set(gcf,'UserData',handles); stochofn 'vol_edit' % -------------------------------------------------------------------- function s1_volslider_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 1; set(gcf,'UserData',handles); stochofn 'vol_slider' function s2_volslider_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 2; set(gcf,'UserData',handles); stochofn 'vol_slider' function s3_volslider_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.section = 3; set(gcf,'UserData',handles); stochofn 'vol_slider' % -------------------------------------------------------------------- function load_settings_Callback(hObject, eventdata, handles) stochofn 'load_settings' function save_settings_Callback(hObject, eventdata, handles) stochofn 'save_settings' function write_soundfile_Callback(hObject, eventdata, handles) stochofn 'write_soundfile' % -------------------------------------------------------------------- % -------------------------------------------------------------------- % -------------------------------------------------------------------- % --- Executes during object creation, after setting all properties. function s1_numnotes_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_numnotes (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 s1_numnotes_Callback(hObject, eventdata, handles) % hObject handle to s1_numnotes (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 s1_numnotes as text % str2double(get(hObject,'String')) returns contents of s1_numnotes as a double % --- Executes during object creation, after setting all properties. function s1_partials_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_partials (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 s1_partials_Callback(hObject, eventdata, handles) % hObject handle to s1_partials (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 s1_partials as text % str2double(get(hObject,'String')) returns contents of s1_partials as a double % --- Executes during object creation, after setting all properties. function s1_durs_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_durs (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 s1_durs_Callback(hObject, eventdata, handles) % hObject handle to s1_durs (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 s1_durs as text % str2double(get(hObject,'String')) returns contents of s1_durs as a double % --- Executes during object creation, after setting all properties. function s1_amps_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_amps (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 s1_amps_Callback(hObject, eventdata, handles) % hObject handle to s1_amps (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 s1_amps as text % str2double(get(hObject,'String')) returns contents of s1_amps as a double % --- Executes during object creation, after setting all properties. function s1_freqs_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_freqs (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 s1_freqs_Callback(hObject, eventdata, handles) % hObject handle to s1_freqs (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 s1_freqs as text % str2double(get(hObject,'String')) returns contents of s1_freqs as a double % --- Executes during object creation, after setting all properties. function s1_fskews_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_fskews (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 s1_fskews_Callback(hObject, eventdata, handles) % hObject handle to s1_fskews (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 s1_fskews as text % str2double(get(hObject,'String')) returns contents of s1_fskews as a double % --- Executes during object creation, after setting all properties. function s1_ampenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_ampenv (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 s1_ampenv. function s1_ampenv_Callback(hObject, eventdata, handles) % hObject handle to s1_ampenv (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 s1_ampenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s1_ampenv % --- Executes during object creation, after setting all properties. function s1_freqenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_freqenv (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 s1_freqenv. function s1_freqenv_Callback(hObject, eventdata, handles) % hObject handle to s1_freqenv (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 s1_freqenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s1_freqenv % --- Executes on button press in s1_plotamp. function s1_plotamp_Callback(hObject, eventdata, handles) % hObject handle to s1_plotamp (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in s1_plotfreq. function s1_plotfreq_Callback(hObject, eventdata, handles) % hObject handle to s1_plotfreq (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 s1_overlap_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_overlap (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 s1_overlap_Callback(hObject, eventdata, handles) % hObject handle to s1_overlap (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 s1_overlap as text % str2double(get(hObject,'String')) returns contents of s1_overlap as a double % --- Executes on button press in write. function write_Callback(hObject, eventdata, handles) % hObject handle to write (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in s1_random. function s1_random_Callback(hObject, eventdata, handles) % hObject handle to s1_random (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in channels. function channels_Callback(hObject, eventdata, handles) % hObject handle to channels (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 channels % --- Executes during object creation, after setting all properties. function s1_dist_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_dist (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 s1_dist. function s1_dist_Callback(hObject, eventdata, handles) % hObject handle to s1_dist (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 s1_dist contents as cell array % contents{get(hObject,'Value')} returns selected item from s1_dist % --- Executes during object creation, after setting all properties. function s1_npartials_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_npartials (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 s1_npartials_Callback(hObject, eventdata, handles) % hObject handle to s1_npartials (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 s1_npartials as text % str2double(get(hObject,'String')) returns contents of s1_npartials as a double % --- Executes during object creation, after setting all properties. function s1_start_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_start (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 s1_start_Callback(hObject, eventdata, handles) % hObject handle to s1_start (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 s1_start as text % str2double(get(hObject,'String')) returns contents of s1_start as a double % --- Executes on button press in savesettings. function savesettings_Callback(hObject, eventdata, handles) % hObject handle to savesettings (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 s2_numnotes_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_numnotes (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 s2_numnotes_Callback(hObject, eventdata, handles) % hObject handle to s2_numnotes (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 s2_numnotes as text % str2double(get(hObject,'String')) returns contents of s2_numnotes as a double % --- Executes during object creation, after setting all properties. function s2_npartials_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_npartials (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 s2_npartials_Callback(hObject, eventdata, handles) % hObject handle to s2_npartials (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 s2_npartials as text % str2double(get(hObject,'String')) returns contents of s2_npartials as a double % --- Executes during object creation, after setting all properties. function s2_durs_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_durs (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 s2_durs_Callback(hObject, eventdata, handles) % hObject handle to s2_durs (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 s2_durs as text % str2double(get(hObject,'String')) returns contents of s2_durs as a double % --- Executes during object creation, after setting all properties. function s2_amps_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_amps (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 s2_amps_Callback(hObject, eventdata, handles) % hObject handle to s2_amps (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 s2_amps as text % str2double(get(hObject,'String')) returns contents of s2_amps as a double % --- Executes during object creation, after setting all properties. function s2_freqs_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_freqs (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 s2_freqs_Callback(hObject, eventdata, handles) % hObject handle to s2_freqs (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 s2_freqs as text % str2double(get(hObject,'String')) returns contents of s2_freqs as a double % --- Executes during object creation, after setting all properties. function s2_fskews_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_fskews (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 s2_fskews_Callback(hObject, eventdata, handles) % hObject handle to s2_fskews (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 s2_fskews as text % str2double(get(hObject,'String')) returns contents of s2_fskews as a double % --- Executes during object creation, after setting all properties. function s2_ampenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_ampenv (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 s2_ampenv. function s2_ampenv_Callback(hObject, eventdata, handles) % hObject handle to s2_ampenv (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 s2_ampenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s2_ampenv % --- Executes during object creation, after setting all properties. function s2_freqenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_freqenv (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 s2_freqenv. function s2_freqenv_Callback(hObject, eventdata, handles) % hObject handle to s2_freqenv (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 s2_freqenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s2_freqenv % --- Executes during object creation, after setting all properties. function s2_overlap_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_overlap (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 s2_overlap_Callback(hObject, eventdata, handles) % hObject handle to s2_overlap (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 s2_overlap as text % str2double(get(hObject,'String')) returns contents of s2_overlap as a double % --- Executes during object creation, after setting all properties. function s2_partials_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_partials (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 s2_partials_Callback(hObject, eventdata, handles) % hObject handle to s2_partials (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 s2_partials as text % str2double(get(hObject,'String')) returns contents of s2_partials as a double % --- Executes during object creation, after setting all properties. function s2_start_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_start (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 s2_start_Callback(hObject, eventdata, handles) % hObject handle to s2_start (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 s2_start as text % str2double(get(hObject,'String')) returns contents of s2_start as a double % --- Executes during object creation, after setting all properties. function s3_numnotes_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_numnotes (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 s3_numnotes_Callback(hObject, eventdata, handles) % hObject handle to s3_numnotes (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 s3_numnotes as text % str2double(get(hObject,'String')) returns contents of s3_numnotes as a double % --- Executes during object creation, after setting all properties. function s3_npartials_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_npartials (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 s3_npartials_Callback(hObject, eventdata, handles) % hObject handle to s3_npartials (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 s3_npartials as text % str2double(get(hObject,'String')) returns contents of s3_npartials as a double % --- Executes during object creation, after setting all properties. function s3_durs_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_durs (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 s3_durs_Callback(hObject, eventdata, handles) % hObject handle to s3_durs (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 s3_durs as text % str2double(get(hObject,'String')) returns contents of s3_durs as a double % --- Executes during object creation, after setting all properties. function s3_amps_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_amps (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 s3_amps_Callback(hObject, eventdata, handles) % hObject handle to s3_amps (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 s3_amps as text % str2double(get(hObject,'String')) returns contents of s3_amps as a double % --- Executes during object creation, after setting all properties. function s3_freqs_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_freqs (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 s3_freqs_Callback(hObject, eventdata, handles) % hObject handle to s3_freqs (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 s3_freqs as text % str2double(get(hObject,'String')) returns contents of s3_freqs as a double % --- Executes during object creation, after setting all properties. function s3_fskews_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_fskews (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 s3_fskews_Callback(hObject, eventdata, handles) % hObject handle to s3_fskews (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 s3_fskews as text % str2double(get(hObject,'String')) returns contents of s3_fskews as a double % --- Executes during object creation, after setting all properties. function s3_ampenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_ampenv (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 s3_ampenv. function s3_ampenv_Callback(hObject, eventdata, handles) % hObject handle to s3_ampenv (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 s3_ampenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s3_ampenv % --- Executes during object creation, after setting all properties. function s3_freqenv_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_freqenv (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 s3_freqenv. function s3_freqenv_Callback(hObject, eventdata, handles) % hObject handle to s3_freqenv (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 s3_freqenv contents as cell array % contents{get(hObject,'Value')} returns selected item from s3_freqenv % --- Executes during object creation, after setting all properties. function s3_overlap_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_overlap (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 s3_overlap_Callback(hObject, eventdata, handles) % hObject handle to s3_overlap (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 s3_overlap as text % str2double(get(hObject,'String')) returns contents of s3_overlap as a double % --- Executes during object creation, after setting all properties. function s3_partials_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_partials (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 s3_partials_Callback(hObject, eventdata, handles) % hObject handle to s3_partials (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 s3_partials as text % str2double(get(hObject,'String')) returns contents of s3_partials as a double % --- Executes during object creation, after setting all properties. function s3_start_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_start (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 s3_start_Callback(hObject, eventdata, handles) % hObject handle to s3_start (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 s3_start as text % str2double(get(hObject,'String')) returns contents of s3_start as a double % --- Executes on button press in load. function load_Callback(hObject, eventdata, handles) % hObject handle to load (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % -------------------------------------------------------------------- function File_Callback(hObject, eventdata, handles) % hObject handle to File (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in s1_mix. function s1_mix_Callback(hObject, eventdata, handles) % hObject handle to s1_mix (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 s1_mix % --- Executes on button press in s2_mix. function s2_mix_Callback(hObject, eventdata, handles) % hObject handle to s2_mix (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 s2_mix % --- Executes on button press in s3_mix. function s3_mix_Callback(hObject, eventdata, handles) % hObject handle to s3_mix (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 s3_mix % --- Executes during object creation, after setting all properties. function s1_vol_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_vol (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background, change % 'usewhitebg' to 0 to use default. See ISPC and COMPUTER. usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes during object creation, after setting all properties. function s2_volslider_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_volslider (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background, change % 'usewhitebg' to 0 to use default. See ISPC and COMPUTER. usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes during object creation, after setting all properties. function s3_volslider_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_volslider (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background, change % 'usewhitebg' to 0 to use default. See ISPC and COMPUTER. usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes during object creation, after setting all properties. function s2_vol_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_vol (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 s3_vol_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_vol (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 s1_volslider_CreateFcn(hObject, eventdata, handles) % hObject handle to s1_volslider (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background, change % 'usewhitebg' to 0 to use default. See ISPC and COMPUTER. usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end %% --- Executes during object creation, after setting all properties. %function s1_vol2_CreateFcn(hObject, eventdata, handles) %% hObject handle to s1_vol (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 s1_vol2_Callback(hObject, eventdata, handles) %% hObject handle to s1_vol (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 s1_vol as text %% str2double(get(hObject,'String')) returns contents of s1_vol as a double % --- Executes during object creation, after setting all properties. function s2_dist_CreateFcn(hObject, eventdata, handles) % hObject handle to s2_dist (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 s2_dist. function s2_dist_Callback(hObject, eventdata, handles) % hObject handle to s2_dist (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 s2_dist contents as cell array % contents{get(hObject,'Value')} returns selected item from s2_dist % --- Executes during object creation, after setting all properties. function s3_dist_CreateFcn(hObject, eventdata, handles) % hObject handle to s3_dist (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 s3_dist. function s3_dist_Callback(hObject, eventdata, handles) % hObject handle to s3_dist (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 s3_dist contents as cell array % contents{get(hObject,'Value')} returns selected item from s3_dist % --- Executes on button press in s3_random. function s3_random_Callback(hObject, eventdata, handles) % hObject handle to s3_random (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in s2_random. function s2_random_Callback(hObject, eventdata, handles) % hObject handle to s2_random (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % -------------------------------------------------------------------- function close_Callback(hObject, eventdata, handles) % hObject handle to close (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) stochofn 'close'; % -------------------------------------------------------------------- function help_Callback(hObject, eventdata, handles) % hObject handle to help (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) stochofn 'help' % --- Creates and returns a handle to the GUI figure. function h1 = stochogui_LayoutFcn(policy) % policy - create a new figure or use a singleton. 'new' or 'reuse'. persistent hsingleton; if strcmpi(policy, 'reuse') & ishandle(hsingleton) h1 = hsingleton; return; end h1 = figure(... 'Units','characters',... 'Color',[0.925490196078431 0.913725490196078 0.847058823529412],... 'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],... 'IntegerHandle','off',... 'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),... 'MenuBar','none',... 'Name','stocho',... 'NumberTitle','off',... 'PaperPosition',get(0,'defaultfigurePaperPosition'),... 'Position',[103.8 15.3076923076923 180.2 46.1538461538461],... 'Renderer',get(0,'defaultfigureRenderer'),... 'RendererMode','manual',... 'HandleVisibility','callback',... 'Tag','stocho_fig',... 'UserData',zeros(1,0)); setappdata(h1, 'GUIDEOptions', struct(... 'active_h', 1.120006e+002, ... 'taginfo', struct(... 'figure', 2, ... 'text', 38, ... 'edit', 41, ... 'frame', 5, ... 'popupmenu', 14, ... 'pushbutton', 30, ... 'togglebutton', 4, ... 'radiobutton', 5, ... 'checkbox', 4, ... 'slider', 4), ... 'override', 1, ... 'release', 13, ... 'resize', 'simple', ... 'accessibility', 'callback', ... 'mfile', 1, ... 'callbacks', 1, ... 'singleton', 1, ... 'syscolorfig', 1, ... 'lastSavedFile', 'C:\Documents and Settings\All Users\Documents\VLDCMCaR\SSUM.PC\stocho\stocho.m')); h2 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',18,... 'FontWeight','bold',... 'ForegroundColor',[1 0.691386014657364 0.103712316513137],... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.00740055504162812 0.938628158844765 0.77890841813136 0.0541516245487365],... 'String','The Catastochastic Additive Synthesis Composition Machine',... 'Style','text',... 'Tag','text1',... 'UserData',zeros(1,0)); h3 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0242047026279391 0.740646258503402 0.145228215767635 0.0331632653061225],... 'String','Number of Notes',... 'Style','text',... 'Tag','text2',... 'UserData',zeros(1,0)); h4 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0691562932226833 0.630102040816327 0.100276625172891 0.0350056689342404],... 'String','Num Partials',... 'Style','text',... 'Tag','text3',... 'UserData',zeros(1,0)); h5 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0518672199170124 0.517715419501134 0.117565698478562 0.0350056689342404],... 'String','Note Durations',... 'Style','text',... 'Tag','text5',... 'UserData',zeros(1,0)); h6 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.070308898109728 0.460600907029479 0.0979714153988013 0.0350056689342404],... 'String','Amplitudes',... 'Style','text',... 'Tag','text14',... 'UserData',zeros(1,0)); h7 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0543840177580466 0.405 0.114317425083241 0.0333333333333333],... 'String','Frequencies',... 'Style','text',... 'Tag','text15',... 'UserData',zeros(1,0)); h8 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0155382907880133 0.343333333333334 0.152053274139845 0.0333333333333333],... 'String','Frequency Skews',... 'Style','text',... 'Tag','text16',... 'UserData',zeros(1,0)); h9 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'ListboxTop',0,... 'Position',[0.177501152604887 0.0552721088435374 0.260488704472107 0.795918367346939],... 'String',{ '' },... 'Style','frame',... 'Tag','frame1',... 'UserData',zeros(1,0)); h10 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'FontWeight','bold',... 'ListboxTop',0,... 'Position',[0.188679245283019 0.798333333333333 0.0887902330743618 0.0333333333333333],... 'String','Section I',... 'Style','text',... 'Tag','text18',... 'UserData',zeros(1,0)); h11 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'ListboxTop',0,... 'Position',[0.448363301060397 0.0552721088435374 0.260488704472107 0.795918367346939],... 'String',{ '' },... 'Style','frame',... 'Tag','frame3'); h12 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'FontSize',12,... 'FontWeight','bold',... 'ListboxTop',0,... 'Position',[0.460599334073252 0.798333333333333 0.0943396226415094 0.0333333333333333],... 'String','Section II',... 'Style','text',... 'Tag','text19'); h13 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'ListboxTop',0,... 'Position',[0.719225449515906 0.0552721088435374 0.260488704472107 0.795918367346939],... 'String',{ '' },... 'Style','frame',... 'Tag','frame4'); h14 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'FontSize',12,... 'FontWeight','bold',... 'ListboxTop',0,... 'Position',[0.726970033296338 0.798333333333333 0.0943396226415094 0.0333333333333333],... 'String','Section III',... 'Style','text',... 'Tag','text20'); h15 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_numnotes_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','10',... 'Style','edit',... 'CreateFcn','stochogui(''s1_numnotes_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_numnotes'); h16 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_npartials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.626417233560091 0.0875979714153988 0.0405328798185941],... 'String','min max',... 'Style','edit',... 'CreateFcn','stochogui(''s1_npartials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_npartials'); h17 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_durs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.515873015873016 0.204011065006916 0.0405328798185941],... 'String','min max (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s1_durs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_durs'); h18 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_amps_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.458758503401361 0.204011065006916 0.0405328798185941],... 'String','min max (0-1)',... 'Style','edit',... 'CreateFcn','stochogui(''s1_amps_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_amps'); h19 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_freqs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.399801587301587 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s1_freqs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_freqs'); h20 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_fskews_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.342687074829932 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s1_fskews_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_fskews'); h21 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_ampenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.189027201475334 0.280045351473923 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'Percussive' 'Sustained' 'Triangle' 'Wedge' 'InvWedge' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s1_ampenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_ampenv'); h22 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0345781466113417 0.283730158730159 0.133702166897188 0.0331632653061225],... 'String','Amp Envelope',... 'Style','text',... 'Tag','text21',... 'UserData',zeros(1,0)); h23 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0345781466113417 0.215561224489796 0.133702166897188 0.0331632653061225],... 'String','Freq Envelope',... 'Style','text',... 'Tag','text22',... 'UserData',zeros(1,0)); h24 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_freqenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.189027201475334 0.206349206349206 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'UpSweep' 'DownSweep' 'Triangle' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s1_freqenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_freqenv'); h25 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0218994928538497 0.683531746031746 0.147533425541724 0.0331632653061225],... 'String','Percent Overlap',... 'Style','text',... 'Tag','text23',... 'UserData',zeros(1,0)); h26 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_overlap_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.681689342403628 0.0875979714153988 0.0405328798185941],... 'String','50',... 'Style','edit',... 'CreateFcn','stochogui(''s1_overlap_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_overlap'); h27 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s1_compose_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.251267865375749 0.00736961451247166 0.0691562932226833 0.0405328798185941],... 'String','Compose',... 'Tag','s1_compose'); h28 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s0_play_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.837943752881513 0.867772108843537 0.0691562932226833 0.0386904761904762],... 'String','Play All',... 'Tag','s0_play'); h29 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s1_play_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.325034578146611 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Play',... 'Tag','s1_play'); h30 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s1_random_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.200553250345781 0.103174603174603 0.0772245274319963 0.0405328798185941],... 'String','Randomize',... 'Tag','s1_random'); h31 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_dist_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.300829875518672 0.103174603174603 0.117565698478562 0.0405328798185941],... 'String',{ 'Distribution' 'Uniform' 'Normal' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s1_dist_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_dist'); h32 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontAngle','italic',... 'FontWeight','light',... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.00691562932226833 0.906462585034014 0.281235592438912 0.0350056689342404],... 'String','by Bob L. Sturm',... 'Style','text',... 'Tag','text26',... 'UserData',zeros(1,0)); h33 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0 0 0],... 'CData',zeros(1,0),... 'FontSize',12,... 'ForegroundColor',[1 1 1],... 'HorizontalAlignment','right',... 'ListboxTop',0,... 'Position',[0.0726141078838174 0.567460317460318 0.0968188105117566 0.0386904761904762],... 'String','Partials List',... 'Style','text',... 'Tag','text28',... 'UserData',zeros(1,0)); h34 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_partials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.187874596588289 0.571145124716553 0.204011065006916 0.0386904761904762],... 'String','mult amp',... 'Style','edit',... 'CreateFcn','stochogui(''s1_partials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_partials'); h35 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s1_start_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.286998616874136 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','0 (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s1_start_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_start'); h36 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.286998616874136 0.783021541950113 0.0841401567542647 0.0350056689342404],... 'String','Start Time',... 'Style','text',... 'Tag','text8i43',... 'UserData',zeros(1,0)); h37 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s1_plot_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.378054402950668 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Plot',... 'Tag','s1_plot'); h38 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_numnotes_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','10',... 'Style','edit',... 'CreateFcn','stochogui(''s2_numnotes_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_numnotes'); h39 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_npartials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.626417233560091 0.0875979714153988 0.0405328798185941],... 'String','min max',... 'Style','edit',... 'CreateFcn','stochogui(''s2_npartials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_npartials'); h40 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_durs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.515873015873016 0.204011065006916 0.0405328798185941],... 'String','min max (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s2_durs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_durs'); h41 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_amps_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.458758503401361 0.204011065006916 0.0405328798185941],... 'String','min max (0-1)',... 'Style','edit',... 'CreateFcn','stochogui(''s2_amps_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_amps'); h42 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_freqs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.399801587301587 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s2_freqs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_freqs'); h43 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_fskews_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.342687074829932 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s2_fskews_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_fskews'); h44 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_ampenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.458736745043799 0.280045351473923 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'Percussive' 'Sustained' 'Triangle' 'Wedge' 'InvWedge' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s2_ampenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_ampenv'); h45 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_freqenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.458736745043799 0.206349206349206 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'UpSweep' 'DownSweep' 'Triangle' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s2_freqenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_freqenv'); h46 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_overlap_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.681689342403628 0.0875979714153988 0.0405328798185941],... 'String','50',... 'Style','edit',... 'CreateFcn','stochogui(''s2_overlap_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_overlap'); h47 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s2_compose_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.520977408944214 0.00736961451247166 0.0691562932226833 0.0405328798185941],... 'String','Compose',... 'Tag','s2_compose'); h48 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s2_play_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.595896726602121 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Play',... 'Tag','s2_play'); h49 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s2_random_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.470262793914246 0.103174603174603 0.0772245274319963 0.0405328798185941],... 'String','Randomize',... 'Tag','s2_random'); h50 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_dist_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.570539419087137 0.103174603174603 0.117565698478562 0.0405328798185941],... 'String',{ 'Distribution' 'Uniform' 'Normal' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s2_dist_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_dist'); h51 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_partials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.457584140156754 0.571145124716553 0.204011065006916 0.0386904761904762],... 'String','mult amp',... 'Style','edit',... 'CreateFcn','stochogui(''s2_partials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_partials'); h52 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_start_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.560165975103734 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','0 (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s2_start_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_start'); h53 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.560165975103734 0.783021541950113 0.0841401567542647 0.0350056689342404],... 'String','Start Time',... 'Style','text',... 'Tag','text30',... 'UserData',zeros(1,0)); h54 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s2_plot_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.648916551406178 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Plot',... 'Tag','s2_plot'); h55 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_numnotes_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','10',... 'Style','edit',... 'CreateFcn','stochogui(''s3_numnotes_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_numnotes'); h56 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_npartials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.626417233560091 0.0875979714153988 0.0405328798185941],... 'String','min max',... 'Style','edit',... 'CreateFcn','stochogui(''s3_npartials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_npartials'); h57 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_durs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.515873015873016 0.204011065006916 0.0405328798185941],... 'String','min max (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s3_durs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_durs'); h58 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_amps_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.458758503401361 0.204011065006916 0.0405328798185941],... 'String','min max (0-1)',... 'Style','edit',... 'CreateFcn','stochogui(''s3_amps_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_amps'); h59 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_freqs_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.399801587301587 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s3_freqs_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_freqs'); h60 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_fskews_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.342687074829932 0.204011065006916 0.0405328798185941],... 'String','min max (Hz)',... 'Style','edit',... 'CreateFcn','stochogui(''s3_fskews_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_fskews'); h61 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_ampenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.727293683725219 0.280045351473923 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'Percussive' 'Sustained' 'Triangle' 'Wedge' 'InvWedge' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s3_ampenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_ampenv'); h62 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_freqenv_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.727293683725219 0.206349206349206 0.117565698478562 0.0405328798185941],... 'String',{ 'Flat' 'UpSweep' 'DownSweep' 'Triangle' 'Random' 'Create' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s3_freqenv_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_freqenv'); h63 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_overlap_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.681689342403628 0.0875979714153988 0.0405328798185941],... 'String','50',... 'Style','edit',... 'CreateFcn','stochogui(''s3_overlap_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_overlap'); h64 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s3_compose_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.789534347625634 0.00736961451247166 0.0691562932226833 0.0405328798185941],... 'String','Compose',... 'Tag','s3_compose'); h65 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s3_play_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.864453665283541 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Play',... 'Tag','s3_play'); h66 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s3_random_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.738819732595666 0.103174603174603 0.0772245274319963 0.0405328798185941],... 'String','Randomize',... 'Tag','s3_random'); h67 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_dist_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.839096357768557 0.103174603174603 0.117565698478562 0.0405328798185941],... 'String',{ 'Distribution' 'Uniform' 'Normal' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn','stochogui(''s3_dist_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_dist'); h68 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_partials_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.726141078838174 0.571145124716553 0.204011065006916 0.0386904761904762],... 'String','mult amp',... 'Style','edit',... 'CreateFcn','stochogui(''s3_partials_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_partials'); h69 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_start_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.831028123559244 0.738803854875284 0.0875979714153988 0.0405328798185941],... 'String','0 (seconds)',... 'Style','edit',... 'CreateFcn','stochogui(''s3_start_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_start'); h70 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.831028123559244 0.783021541950113 0.0841401567542647 0.0350056689342404],... 'String','Start Time',... 'Style','text',... 'Tag','text31',... 'UserData',zeros(1,0)); h71 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s3_plot_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.917473490087598 0.00736961451247166 0.0484094052558783 0.0405328798185941],... 'String','Plot',... 'Tag','s3_plot'); h72 = uimenu(... 'Parent',h1,... 'Callback','stochogui(''File_Callback'',gcbo,[],guidata(gcbo))',... 'Label','File',... 'Tag','File'); h73 = uimenu(... 'Parent',h72,... 'Callback','stochogui(''load_settings_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Load Settings',... 'Tag','load_settings'); h74 = uimenu(... 'Parent',h72,... 'Callback','stochogui(''save_settings_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Save Settings',... 'Tag','save_settings'); h75 = uimenu(... 'Parent',h72,... 'Callback','stochogui(''write_soundfile_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Write Soundfile',... 'Tag','write_soundfile'); h76 = uimenu(... 'Parent',h72,... 'Callback','stochogui(''close_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Close',... 'Separator','on',... 'Tag','close'); h77 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s0_plot_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.912863070539419 0.867772108843537 0.0691562932226833 0.0386904761904762],... 'String','Plot All',... 'Tag','s0_plot'); h78 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s1_mix_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.383817427385892 0.757227891156463 0.0449515905947441 0.0368480725623583],... 'String','Mix',... 'Style','checkbox',... 'Tag','s1_mix'); h79 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s2_mix_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.656984785615491 0.757227891156463 0.0449515905947441 0.0368480725623583],... 'String','Mix',... 'Style','checkbox',... 'Tag','s2_mix'); h80 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'Callback','stochogui(''s3_mix_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.926694329183956 0.757227891156463 0.0449515905947441 0.0368480725623583],... 'String','Mix',... 'Style','checkbox',... 'Tag','s3_mix'); h81 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0.9 0.9 0.9],... 'Callback','stochogui(''s1_volslider_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.411479944674966 0.226615646258503 0.0138312586445367 0.514030612244898],... 'String',{ '' },... 'Style','slider',... 'Value',1,... 'CreateFcn','stochogui(''s1_volslider_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_volslider'); h82 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0.9 0.9 0.9],... 'Callback','stochogui(''s2_volslider_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.682342093130475 0.226615646258503 0.0138312586445367 0.514030612244898],... 'String','1',... 'Style','slider',... 'Value',1,... 'CreateFcn','stochogui(''s2_volslider_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_volslider'); h83 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0.9 0.9 0.9],... 'Callback','stochogui(''s3_volslider_Callback'',gcbo,[],guidata(gcbo))',... 'ListboxTop',0,... 'Position',[0.95205163669894 0.226615646258503 0.0138312586445367 0.514030612244898],... 'String','1',... 'Style','slider',... 'Value',1,... 'CreateFcn','stochogui(''s3_volslider_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_volslider'); h84 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.305440295066851 0.672477324263039 0.0841401567542647 0.0350056689342404],... 'String','Volume',... 'Style','text',... 'Tag','text32',... 'UserData',zeros(1,0)); h85 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s2_vol_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.572844628861226 0.628259637188209 0.0875979714153988 0.0405328798185941],... 'String','1.0',... 'Style','edit',... 'CreateFcn','stochogui(''s2_vol_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s2_vol'); h86 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.573997233748271 0.672477324263039 0.0841401567542647 0.0350056689342404],... 'String','Volume',... 'Style','text',... 'Tag','text33',... 'UserData',zeros(1,0)); h87 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','stochogui(''s3_vol_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.841401567542646 0.628259637188209 0.0875979714153988 0.0405328798185941],... 'String','1.0',... 'Style','edit',... 'CreateFcn','stochogui(''s3_vol_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s3_vol'); h88 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'CData',zeros(1,0),... 'FontSize',12,... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.841401567542646 0.672477324263039 0.0841401567542647 0.0350056689342404],... 'String','Volume',... 'Style','text',... 'Tag','text34',... 'UserData',zeros(1,0)); h89 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[0.9 0.9 0.9],... 'Callback','stochogui(''s1_vol_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'ListboxTop',0,... 'Position',[0.303135085292762 0.626417233560091 0.0875979714153988 0.0405328798185941],... 'String','1.0',... 'Style','edit',... 'CreateFcn','stochogui(''s1_vol_CreateFcn'',gcbo,[],guidata(gcbo))',... 'Tag','s1_vol'); h90 = uimenu(... 'Parent',h1,... 'Callback','stochogui(''help_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Help',... 'Tag','help'); hsingleton = h1; % --- Handles default GUIDE GUI creation and callback dispatch function varargout = gui_mainfcn(gui_State, varargin) % GUI_MAINFCN provides these command line APIs for dealing with GUIs % % STOCHOGUI, by itself, creates a new STOCHOGUI or raises the existing % singleton*. % % H = STOCHOGUI returns the handle to a new STOCHOGUI or the handle to % the existing singleton*. % % STOCHOGUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in STOCHOGUI.M with the given input arguments. % % STOCHOGUI('Property','Value',...) creates a new STOCHOGUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before untitled_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to untitled_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % Copyright 1984-2002 The MathWorks, Inc. % $Revision: 1.4 $ $Date: 2002/05/31 21:44:31 $ gui_StateFields = {'gui_Name' 'gui_Singleton' 'gui_OpeningFcn' 'gui_OutputFcn' 'gui_LayoutFcn' 'gui_Callback'}; gui_Mfile = ''; for i=1:length(gui_StateFields) if ~isfield(gui_State, gui_StateFields{i}) error('Could not find field %s in the gui_State struct in GUI M-file %s', gui_StateFields{i}, gui_Mfile); elseif isequal(gui_StateFields{i}, 'gui_Name') gui_Mfile = [getfield(gui_State, gui_StateFields{i}), '.m']; end end numargin = length(varargin); if numargin == 0 % STOCHOGUI % create the GUI gui_Create = 1; elseif numargin > 3 & ischar(varargin{1}) & ishandle(varargin{2}) % STOCHOGUI('CALLBACK',hObject,eventData,handles,...) gui_Create = 0; else % STOCHOGUI(...) % create the GUI and hand varargin to the openingfcn gui_Create = 1; end if gui_Create == 0 varargin{1} = gui_State.gui_Callback; if nargout [varargout{1:nargout}] = feval(varargin{:}); else feval(varargin{:}); end else if gui_State.gui_Singleton gui_SingletonOpt = 'reuse'; else gui_SingletonOpt = 'new'; end % Open fig file with stored settings. Note: This executes all component % specific CreateFunctions with an empty HANDLES structure. % Do feval on layout code in m-file if it exists if ~isempty(gui_State.gui_LayoutFcn) gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt); else gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt); % If the figure has InGUIInitialization it was not completely created % on the last pass. Delete this handle and try again. if isappdata(gui_hFigure, 'InGUIInitialization') delete(gui_hFigure); gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt); end end % Set flag to indicate starting GUI initialization setappdata(gui_hFigure,'InGUIInitialization',1); % Fetch GUIDE Application options gui_Options = getappdata(gui_hFigure,'GUIDEOptions'); if ~isappdata(gui_hFigure,'GUIOnScreen') % Adjust background color if gui_Options.syscolorfig set(gui_hFigure,'Color', get(0,'DefaultUicontrolBackgroundColor')); end % Generate HANDLES structure and store with GUIDATA guidata(gui_hFigure, guihandles(gui_hFigure)); end % If user specified 'Visible','off' in p/v pairs, don't make the figure % visible. gui_MakeVisible = 1; for ind=1:2:length(varargin) if length(varargin) == ind break; end len1 = min(length('visible'),length(varargin{ind})); len2 = min(length('off'),length(varargin{ind+1})); if ischar(varargin{ind}) & ischar(varargin{ind+1}) & ... strncmpi(varargin{ind},'visible',len1) & len2 > 1 if strncmpi(varargin{ind+1},'off',len2) gui_MakeVisible = 0; elseif strncmpi(varargin{ind+1},'on',len2) gui_MakeVisible = 1; end end end % Check for figure param value pairs for index=1:2:length(varargin) if length(varargin) == index break; end try, set(gui_hFigure, varargin{index}, varargin{index+1}), catch, break, end end % If handle visibility is set to 'callback', turn it on until finished % with OpeningFcn gui_HandleVisibility = get(gui_hFigure,'HandleVisibility'); if strcmp(gui_HandleVisibility, 'callback') set(gui_hFigure,'HandleVisibility', 'on'); end feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); if ishandle(gui_hFigure) % Update handle visibility set(gui_hFigure,'HandleVisibility', gui_HandleVisibility); % Make figure visible if gui_MakeVisible set(gui_hFigure, 'Visible', 'on') if gui_Options.singleton setappdata(gui_hFigure,'GUIOnScreen', 1); end end % Done with GUI initialization rmappdata(gui_hFigure,'InGUIInitialization'); end % If handle visibility is set to 'callback', turn it on until finished with % OutputFcn if ishandle(gui_hFigure) gui_HandleVisibility = get(gui_hFigure,'HandleVisibility'); if strcmp(gui_HandleVisibility, 'callback') set(gui_hFigure,'HandleVisibility', 'on'); end gui_Handles = guidata(gui_hFigure); else gui_Handles = []; end if nargout [varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles); else feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles); end if ishandle(gui_hFigure) set(gui_hFigure,'HandleVisibility', gui_HandleVisibility); end end function gui_hFigure = local_openfig(name, singleton) if nargin('openfig') == 3 gui_hFigure = openfig(name, singleton, 'auto'); else % OPENFIG did not accept 3rd input argument until R13, % toggle default figure visible to prevent the figure % from showing up too soon. gui_OldDefaultVisible = get(0,'defaultFigureVisible'); set(0,'defaultFigureVisible','off'); gui_hFigure = openfig(name, singleton); set(0,'defaultFigureVisible',gui_OldDefaultVisible); end