资源简介
利用MATLAB实现钢琴按键的模拟、仿真效果很是不错、
可以下载看看
代码片段和文件信息
function varargout = piano2(varargin)
% PIANO2 M-file for piano2.fig
% PIANO2 by itself creates a new PIANO2 or raises the existing
% singleton*.
%
% H = PIANO2 returns the handle to a new PIANO2 or the handle to
% the existing singleton*.
%
% PIANO2(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in PIANO2.M with the given input arguments.
%
% PIANO2(‘Property‘‘Value‘...) creates a new PIANO2 or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before piano2_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to piano2_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 piano2
% Last Modified by GUIDE v2.5 29-Aug-2008 11:01:33
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @piano2_OpeningFcn ...
‘gui_OutputFcn‘ @piano2_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(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
% AUTHOR: MARK FRANKOSKY (MFRANKOSKY@GMAIL.COM)
% --- Executes just before piano2 is made visible.
function piano2_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 piano2 (see VARARGIN)
% Choose default command line output for piano2
handles.output = hobject;
handles.SampleRate = 1/20000;
handles.SoundVector = 0;
handles.TimeValue = 0.3488;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes piano2 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = piano2_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 GShparp3.
function GShparp3_Callback(hobject eventdata handles)
% hObje
- 上一篇:NPC型三电平有源电力滤波器仿真
- 下一篇:生态系统动力学仿真matlab程序
相关资源
- 生态系统动力学仿真matlab程序
- DMR中的4FSK的matlab仿真
- 《数字信号处理》 MATLAB上机实验全部
- 图像融合的Matlab代码
- ASK调制matlab代码
- Boosting matlab代码
- matlab dtmf
- matlab孤立点提取函数
- MIMO信道容量仿真matlab代码
- 图像彩色增强matlab源码
- 轮廓波变换及其去噪的程序
- 平稳小波变换程序及其应用
- 电力负荷分配matlab程序part2
- 电力负荷分配matlab程序
- 基于MATLAB的二级斜齿轮减速器优化设
- matlab电磁波趋肤深度程序
- 基于MATLAB标定工具箱的鱼眼相机标定
- MATLAB控制系统仿真与详解附书光盘.
- 锯齿波的傅里叶级数matlab实现
- 史密斯圆图动态展示
- 基于相关系数的影像匹配matlab
- 图像分割评价函数
- 2*1的Alamouti空时码BER性能曲线matlab源码
- MATLAB音乐合成
- 保持邻域嵌入算法也就是NPE算法的M
- 免疫算法和遗传算法解决物流选址问
- 微分方程求解原理 matlab 代码+斜率图
- QPSK信号+白噪声程序MATLAB
- 迈克尔逊干涉仪matlab仿真程序
- matlab图像双三次插值自写函数
评论
共有 条评论