📄 sndanalsynthgui.m
字号:
% Hint: get(hObject,'Value') returns toggle state of analcola sndanalsynthfn 'colacheck';% --------------------------------------------------------------------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) sndanalsynthfn 'help';% --- Executes on button press in normalize.function normalize_Callback(hObject, eventdata, handles)% hObject handle to normalize (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) sndanalsynthfn 'normalize';% --- Creates and returns a handle to the GUI figure. function h1 = sndanalsynthgui_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;endh1 = figure(...'Units','characters',...'Color',[0.701960784313725 0.701960784313725 0.701960784313725],...'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','Sound Analysis/Synthesis',...'NumberTitle','off',...'PaperOrientation','landscape',...'PaperPosition',get(0,'defaultfigurePaperPosition'),...'PaperSize',[11 8.5],...'Pointer','crosshair',...'Position',[128.6 13 183.4 41.3076923076923],...'Renderer',get(0,'defaultfigureRenderer'),...'RendererMode','manual',...'HandleVisibility','callback',...'Tag','sndanalsynth_fig',...'UserData',[]);setappdata(h1, 'GUIDEOptions',struct(...'active_h', [], ...'taginfo', struct(...'figure', 2, ...'axes', 7, ...'pushbutton', 14, ...'popupmenu', 16, ...'listbox', 2, ...'text', 28, ...'slider', 2, ...'checkbox', 7, ...'radiobutton', 5, ...'frame', 5, ...'edit', 5), ...'override', 1, ...'release', 13, ...'resize', 'simple', ...'accessibility', 'callback', ...'mfile', 1, ...'callbacks', 1, ...'singleton', 1, ...'syscolorfig', 1, ...'lastSavedFile', '/Users/bobsturm/gibson/SSUM/analsynth/sound/sndanalsynth.m', ...'blocking', 0));h2 = uimenu(...'Parent',h1,...'Callback','sndanalsynthgui(''FileMenu_Callback'',gcbo,[],guidata(gcbo))',...'Label','File',...'Tag','FileMenu');h3 = uimenu(...'Parent',h2,...'Callback','sndanalsynthgui(''OpenMenuItem_Callback'',gcbo,[],guidata(gcbo))',...'Label','Open ...',...'Tag','OpenMenuItem');h4 = uimenu(...'Parent',h2,...'Callback','sndanalsynthgui(''saveresynth_Callback'',gcbo,[],guidata(gcbo))',...'Label','Save Resynthesis',...'Tag','saveresynth');h5 = uimenu(...'Parent',h2,...'Callback','sndanalsynthgui(''PrintMenuItem_Callback'',gcbo,[],guidata(gcbo))',...'Label','Print ...',...'Tag','PrintMenuItem');h6 = uimenu(...'Parent',h2,...'Callback','sndanalsynthgui(''CloseMenuItem_Callback'',gcbo,[],guidata(gcbo))',...'Label','Close',...'Separator','on',...'Tag','CloseMenuItem');h7 = axes(...'Parent',h1,...'Units','characters',...'ALim',get(0,'defaultaxesALim'),...'ALimMode','manual',...'CameraPosition',[0.5 0.5 9.16025403784439],...'CameraPositionMode','manual',...'CameraTarget',[0.5 0.5 0.5],...'CameraTargetMode','manual',...'CameraUpVector',[0 1 0],...'CameraUpVectorMode','manual',...'CameraViewAngle',6.60861036031192,...'CameraViewAngleMode','manual',...'CLim',get(0,'defaultaxesCLim'),...'CLimMode','manual',...'Color',get(0,'defaultaxesColor'),...'ColorOrder',get(0,'defaultaxesColorOrder'),...'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),...'DataAspectRatioMode','manual',...'DrawMode','fast',...'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),...'PlotBoxAspectRatioMode','manual',...'Position',[8 3.46153846153846 140 15.3846153846154],...'TickDir',get(0,'defaultaxesTickDir'),...'TickDirMode','manual',...'XColor',get(0,'defaultaxesXColor'),...'XLim',get(0,'defaultaxesXLim'),...'XLimMode','manual',...'XTick',[0 0.2 0.4 0.6 0.8 1],...'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'XTickLabelMode','manual',...'XTickMode','manual',...'YColor',get(0,'defaultaxesYColor'),...'YLim',get(0,'defaultaxesYLim'),...'YLimMode','manual',...'YTick',[0 0.2 0.4 0.6 0.8 1],...'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'YTickLabelMode','manual',...'YTickMode','manual',...'ZColor',get(0,'defaultaxesZColor'),...'ZLim',get(0,'defaultaxesZLim'),...'ZLimMode','manual',...'ZTick',[0 0.5 1],...'ZTickLabel','',...'ZTickLabelMode','manual',...'ZTickMode','manual',...'Tag','timeplot2',...'UserData',[]);h8 = get(h7,'title');set(h8,...'Parent',h7,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496575342465753 1.04452054794521 1.00005459937205],...'VerticalAlignment','bottom',...'HandleVisibility','off');h9 = get(h7,'xlabel');set(h9,...'Parent',h7,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496575342465753 -0.160958904109589 1.00005459937205],...'VerticalAlignment','cap',...'HandleVisibility','off');h10 = get(h7,'ylabel');set(h10,...'Parent',h7,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[-0.195205479452055 0.48972602739726 1.00005459937205],...'Rotation',90,...'VerticalAlignment','bottom',...'HandleVisibility','off');h11 = get(h7,'zlabel');set(h11,...'Parent',h7,...'Color',[0 0 0],...'HorizontalAlignment','right',...'Position',[-0.565068493150685 1.45547945205479 1.00005459937205],...'HandleVisibility','off',...'Visible','off');h12 = uicontrol(...'Parent',h1,...'Units','characters',...'ListboxTop',0,...'Position',[155 24.3076923076923 25 15],...'String',{ '' },...'Style','frame',...'Tag','frame4');h13 = uicontrol(...'Parent',h1,...'Units','characters',...'FontSize',14,...'ListboxTop',0,...'Position',[164.2 38.4615384615385 14 1.76923076923077],...'String','Analysis',...'Style','text',...'Tag','text19');h14 = axes(...'Parent',h1,...'Units','characters',...'ALim',get(0,'defaultaxesALim'),...'ALimMode','manual',...'CameraPosition',[0.5 0.5 9.16025403784439],...'CameraPositionMode','manual',...'CameraTarget',[0.5 0.5 0.5],...'CameraTargetMode','manual',...'CameraUpVector',[0 1 0],...'CameraUpVectorMode','manual',...'CameraViewAngle',6.60861036031192,...'CameraViewAngleMode','manual',...'CLim',get(0,'defaultaxesCLim'),...'CLimMode','manual',...'Color',get(0,'defaultaxesColor'),...'ColorOrder',get(0,'defaultaxesColorOrder'),...'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),...'DataAspectRatioMode','manual',...'DrawMode','fast',...'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),...'PlotBoxAspectRatioMode','manual',...'Position',[8 23.0769230769231 140 15.3846153846154],...'TickDir',get(0,'defaultaxesTickDir'),...'TickDirMode','manual',...'XColor',get(0,'defaultaxesXColor'),...'XLim',get(0,'defaultaxesXLim'),...'XLimMode','manual',...'XTick',[0 0.2 0.4 0.6 0.8 1],...'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'XTickLabelMode','manual',...'XTickMode','manual',...'YColor',get(0,'defaultaxesYColor'),...'YLim',get(0,'defaultaxesYLim'),...'YLimMode','manual',...'YTick',[0 0.2 0.4 0.6 0.8 1],...'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'YTickLabelMode','manual',...'YTickMode','manual',...'ZColor',get(0,'defaultaxesZColor'),...'ZLim',get(0,'defaultaxesZLim'),...'ZLimMode','manual',...'ZTick',[0 0.5 1],...'ZTickLabel','',...'ZTickLabelMode','manual',...'ZTickMode','manual',...'Tag','timeplot1',...'UserData',[]);h15 = get(h14,'title');set(h15,...'Parent',h14,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.497297297297297 1.02972972972973 1.00005459937205],...'VerticalAlignment','bottom',...'HandleVisibility','off');h16 = get(h14,'xlabel');set(h16,...'Parent',h14,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.497297297297297 -0.105405405405405 1.00005459937205],...'VerticalAlignment','cap',...'HandleVisibility','off');h17 = get(h14,'ylabel');set(h17,...'Parent',h14,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[-0.12972972972973 0.494594594594595 1.00005459937205],...'Rotation',90,...'VerticalAlignment','bottom',...'HandleVisibility','off');h18 = get(h14,'zlabel');set(h18,...'Parent',h14,...'Color',[0 0 0],...'HorizontalAlignment','right',...'Position',[-1.65405405405405 1.14864864864865 1.00005459937205],...'HandleVisibility','off',...'Visible','off');h19 = uicontrol(...'Parent',h1,...'Units','characters',...'FontSize',14,...'FontWeight','bold',...'HorizontalAlignment','right',...'ListboxTop',0,...'Position',[125.4 0.307692307692308 56.2 1.76923076923077],...'String','Sound Analysis/Synthesis',...'Style','text',...'Tag','text3');h20 = uicontrol(...'Parent',h1,...'Units','characters',...'ListboxTop',0,...'Position',[155 5.92307692307692 25 17.4615384615385],...'String',{ '' },...'Style','frame',...'Tag','frame3');h21 = uicontrol(...'Parent',h1,...'Units','characters',...'FontSize',14,...'ListboxTop',0,...'Position',[161.6 22.3846153846154 17.4 1.76923076923077],...'String','Synthesis',...'Style','text',...'Tag','text14');h22 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sndanalsynthgui(''play1_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[169.2 25 8 1.46153846153846],...'String','Play',...'Tag','play1');h23 = uimenu(...'Parent',h1,...'Callback','sndanalsynthgui(''Untitled_1_Callback'',gcbo,[],guidata(gcbo))',...'Label','Original',...'Tag','Untitled_1');h24 = uimenu(...'Parent',h23,...'Callback','sndanalsynthgui(''Untitled_2_Callback'',gcbo,[],guidata(gcbo))',...'Label','Send To...',...'Tag','Untitled_2');h25 = uimenu(...'Parent',h24,...'Callback','sndanalsynthgui(''sendorigfourier_Callback'',gcbo,[],guidata(gcbo))',...'Label','Fourier Explorer',...'Tag','sendorigfourier');h26 = uimenu(...'Parent',h24,...'Callback','sndanalsynthgui(''sendorigsonogram_Callback'',gcbo,[],guidata(gcbo))',...'Label','Sonogram Explorer',...'Tag','sendorigsonogram');h27 = uimenu(...'Parent',h1,...'Callback','sndanalsynthgui(''Untitled_5_Callback'',gcbo,[],guidata(gcbo))',...'Label','Synthesis',...'Tag','Untitled_5');h28 = uimenu(...'Parent',h27,...'Callback','sndanalsynthgui(''Untitled_6_Callback'',gcbo,[],guidata(gcbo))',...'Label','Send To...',...'Tag','Untitled_6');h29 = uimenu(...'Parent',h28,...'Callback','sndanalsynthgui(''sendsynthfourier_Callback'',gcbo,[],guidata(gcbo))',...'Label','Fourier Explorer',...'Tag','sendsynthfourier');h30 = uimenu(...'Parent',h28,...'Callback','sndanalsynthgui(''sendsynthsonogram_Callback'',gcbo,[],guidata(gcbo))',...'Label','Sonogram Explorer',...'Tag','sendsynthsonogram');h31 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sndanalsynthgui(''play2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[170.4 6.46153846153846 8 1.46153846153846],...'String','Play',...'Tag','play2');h32 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sndanalsynthgui(''synthesize_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[156.8 6.46153846153846 12 1.46153846153846],...'String','Synthesize',...'Tag','synthesize');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -