一、获取代码方式

获取代码方式1:
完整代码已上传我的资源:【游戏】基于matlab GUI音乐时钟设计【含Matlab源码 1104期】

获取代码方式2:
通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。

备注:
订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三天内有效);

二、部分源代码

function varargout = untitled(varargin)
% UNTITLED M-file for untitled.fig
%      UNTITLED, by itself, creates a new UNTITLED or raises the existing
%      singleton*.
%
%      H = UNTITLED returns the handle to a new UNTITLED or the handle to
%      the existing singleton*.
%
%      UNTITLED('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in UNTITLED.M with the given input arguments.
%
%      UNTITLED('Property','Value',...) creates a new UNTITLED or raises the
%      existing singleton*.  Starting from the left, property value pairs ar
%      applied to the GUI before untitled_OpeningFcn 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)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help untitled% Last Modified by GUIDE v2.5 02-Jun-2021 00:03:55% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @untitled_OpeningFcn, ...'gui_OutputFcn',  @untitled_OutputFcn, ...'gui_LayoutFcn',  [] , ...'gui_Callback',   []);
if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});
endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
elsegui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT% --- Executes just before untitled is made visible.
function untitled_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to untitled (see VARARGIN)
if ~isempty(timerfindall), stop(timerfindall);  delete(timerfindall);end
set(handles.radiobutton2,'value',handles.clockSaveData(3));
temp=get(handles.uipanel3,'Units');
set(handles.uipanel3,'Units','pixels');
position=get(handles.uipanel3,'position');
position(4)=position(2)-17;
position(2)=12;
position(3)=position(3)+position(1)-49;
handles.sound_player= actxcontrol('wmplayer.ocx.7',position ,handles.figure1);
handles.sound_player.settings.volume=100;
set(handles.uipanel3,'Units',temp);ha=axes('units','normalized','position',[0 0 1 1]);
uistack(ha,'down')
II=imread('backgroud_picture.jpg');
image(II)
colormap gray
set(ha,'handlevisibility','off','visible','off'); handles.timer=timer;
set(handles.timer,'TimerFcn',{@timer_action,handles});
start_timer(handles);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%start_timer_solid_hour(handles);**************************************************
if (get(handles.checkbox1,'Value')==1)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!start_timer_solid_hour(handles);
elsestart_timer(handles);
end
% Choose default command line output for untitled
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);filename='alarm_icon.jpg';
javaFrame=get(hObject,'javaFrame');
set(javaFrame,'FigureIcon',javax.swing.ImageIcon(filename));% UIWAIT makes untitled wait for user response (see UIRESUME)
% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.
function varargout = untitled_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structure
varargout{1} = handles.output;% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[filename,pathname]=uigetfile(...{'*.mp3;*.wav;*.mkv','可播放';},'选择定时播放','MultiSelect','off');
handles.musicSaveData=fullfile(pathname,filename);set(handles.edit_musicFile,'String',handles.musicSaveData);
musicSaveData=handles.musicSaveData;
save('musicSaveData.txt','-ascii','musicSaveData');
handles.pushbutton1=hObject;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
guidata(hObject,handles);% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1
handles.clockSaveData(1)=get(hObject,'Value');
clockSaveData=handles.clockSaveData;
save('clockSaveData.txt','-ascii','clockSaveData');
guidata(hObject,handles);
start_timer(handles);% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
end
set(hObject,'Value',handles.clockSaveData(1));
handles.popupmenu1=hObject;
guidata(hObject,handles);% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu2
handles.clockSaveData(2)=get(hObject,'Value');
clockSaveData=handles.clockSaveData;
save('clockSaveData.txt','-ascii','clockSaveData');
guidata(hObject,handles);
start_timer(handles);% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
end
set(hObject,'Value',handles.clockSaveData(2));
handles.popupmenu2=hObject;
guidata(hObject,handles);function edit_musicFile_Callback(hObject, eventdata, handles)
% hObject    handle to edit_musicFile (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit_musicFile as text
%        str2double(get(hObject,'String')) returns contents of edit_musicFile as a double
handles.musicSaveData=get(hObject,'String');
musicSaveData=handles.musicSaveData;
save('musicSaveData.txt','-ascii','musicSaveData');
guidata(hObject,handles);% --- Executes during object creation, after setting all properties.
function edit_musicFile_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_musicFile (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
end
set(hObject,'String',handles.musicSaveData);
handles.edit_musicFile=hObject;
guidata(hObject,handles);% --- Executes during object creation, after setting all properties.
function pushbutton1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
handles.pushbutton1=hObject;
guidata(hObject,handles);

三、运行结果

四、备注

版本:2014a

【游戏】基于matlab GUI音乐时钟设计【含Matlab源码 1104期】相关推荐

  1. 【光学】基于matlab GUI杨氏双缝干涉【含Matlab源码 001期】

    一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[光学]基于matlab GUI杨氏双缝干涉[含Matlab源码 001期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: 付费 ...

  2. 基于JAVA读书网络社区设计计算机毕业设计源码+系统+lw文档+部署

    基于JAVA读书网络社区设计计算机毕业设计源码+系统+lw文档+部署 基于JAVA读书网络社区设计计算机毕业设计源码+系统+lw文档+部署 本源码技术栈: 项目架构:B/S架构 开发语言:Java语言 ...

  3. 基于JAVA科大学生党员之家设计计算机毕业设计源码+系统+mysql数据库+lw文档+部署

    基于JAVA科大学生党员之家设计计算机毕业设计源码+系统+mysql数据库+lw文档+部署 基于JAVA科大学生党员之家设计计算机毕业设计源码+系统+mysql数据库+lw文档+部署 本源码技术栈: ...

  4. 基于SSM的仓库管理系统(含完整源码+论文)

    后端框架:SSM 数据库:MySQL 开发工具:IDEA/Eclipse 系统介绍:本系统是基于SSM框架进行设计,MySQL作为底层数据库,前端采用bootstrap 模块大致介绍:包括库存管理.出 ...

  5. 【人脸识别】基于matlab GUI人数统计【含Matlab源码 2121期】

    ⛄一.人数统计简介(附课程作业报告) 1 课题背景 本课题为基于matlab的人数统计系统.近年来,很多行业对人流信息有极大的需求,如汽车公交站,地铁站台,商场出入口等.通过人数统计系统可以方便.可靠 ...

  6. 【C#+Socker+SQL Server】实现可多人联机和对话的五子棋游戏 五:五子棋大厅窗体设计(附源码和资源)

    需要源码请点赞关注收藏后评论区留言私信~~~ 一.五子棋大厅窗体概述 五子棋大厅窗体主要是在游戏者进入指定区域的指定 房间后,在用户信息列表框中显示当前进入房间的所有用户信息,当单击指定位置时,在座位 ...

  7. 【条形码识别】基于matlab GUI二维条形码识别【含Matlab源码 607期】

    ⛄一.二维条形码识别简介 采用数字图像处理技术对二维条码进行识别, 是二维条形码识别中较常用的方法, 它在处理污损的条形码方面有光电识别方法无法比拟的优势.另外图像式识别方法对识别角度的要求没有光电识 ...

  8. 【心电信号】基于matlab GUI心电信号预处理【含Matlab源码 938期】

    ⛄一.心电信号预处理方法简介 理论知识参考文献:心电信号预处理方法研究 ⛄二.部分源代码 function varargout = kaishi(varargin) gui_Singleton = 1 ...

  9. 单片机多功能电子琴课设_基于51单片机电子琴的设计(附源码及论文)

    单片机最小系统 单片机最小系统 单片机最小系统说明: 时钟信号的产生:在MCS-51芯片内部有一个高增益反相放大器,其输入端为芯片引脚XTAL1,其输出端为引脚XTAL2.而在芯片的外部,XTAL1和 ...

  10. 基于JavaScript网上商城开发设计 毕业设计-附源码261620

    Node.js网上商城的开发 摘  要 随着Internet的使用越来越广泛,在传统的商业模式中,对于日常各类商品,人们习惯于到各种商家店铺购买.然而在快节奏的新时代中,人们不一定能为购买各类商品腾出 ...

最新文章

  1. 使用中文输入法时对键盘事件的处理
  2. 【组合数学】生成函数 简要介绍 ( 生成函数定义 | 牛顿二项式系数 | 常用的生成函数 | 与常数相关 | 与二项式系数相关 | 与多项式系数相关 )
  3. torch -index_select()、Pytorch 之修改Tensor部分值、pytorch中Tensor的数据类型
  4. IS-IS详解(十一)——IS-IS 区域间防路由环路和次优路径
  5. 通过pxe远程安装linux,通过PXE远程安装Linux系统
  6. 机器学习笔记(七):线性回归 | 凌云时刻
  7. vSphere Esxi 7.0打包网卡驱动
  8. Python 获取本周、上周、下周周一、周天的日期
  9. 网络工程师基础--流水线吞吐率
  10. 【水晶报表】中如何打印条形码?
  11. Pikachu靶场全关详细教学(一)
  12. 特征选择:11 种特征选择策略总结!
  13. 广交投集团领导莅临星舆科技参观交流
  14. 疫情后推动出行即服务
  15. Leetcode 组合总和问题
  16. GD32F307VC+WIN10+VSCODE+GCC+JLINK环境build
  17. 基于传感器的人体生命体征监控技术
  18. 电大计算机网络网考,电大开放教育计算机网络专业(专科)《Flash动画制作》期末复习考试试题及参考答案...
  19. Java图片流导出图片为黑屏,Matisse预览图片黑屏,Glide内存溢出
  20. Zotero 6插件兼容设置 Quicklook插件安装

热门文章

  1. 脏检查 和 缓存清理机制
  2. Android实现局部图片滑动指引效果
  3. [转]Google Maps地图投影全解析
  4. Esp8266(4)
  5. python+Selenium2+chrome构建动态网页爬虫工具
  6. word表头宽行重复
  7. pdf文档有时打开乱码的解决方案
  8. Python 和 C++实现 九九乘法表
  9. Origin 在新打开的工作区添加列
  10. Atitit 标记语言ML(Markup Language) v6 目录 1. 标记语言ML Markup Language 1 1.1. 简介 1 2. 置标语言置标语言通常可以分为三类:标识性的