文件名称:music
介绍说明--下载内容均来自于网络,请自行研究使用
基于单片机的电子琴课程设计
(1)键盘扫描程序:
检测是否有键按下,有键按下则记录按下键的键值,并跳转至功能转移程序;无键按下,则返回键盘扫描程序继续检测
(2)功能转移程序:
对检测到得按键值进行判断,是琴键则跳转至琴键处理程序,是功能键则跳转至相应的功能程序,我们设计的功能程序有两种,即音色调节功能和自动播放乐曲功能
(3)琴键处理程序:
根据检测到得按键值,查询音律表,给计时器赋值,使发出相应频率的声音
(4)自动播放歌曲程序:
检测到按键按下的是自动播放歌曲功能键后执行该程序,电子琴会自动播放事先已经存放好的歌曲,歌曲播放完毕之后自动返回至键盘扫描程序,继续等待是否有键按下-SCM keyboard curriculum design (1) Based on a keyboard scanner: detecting whether a key is pressed, a key is pressed the record button is pressed keys, and jump to the function of the transfer process no key is pressed, then return the keyboard scan program continues to detect (2) the transfer function of the program: to get the key value for the detection of judgment, is the key then jump to the key handler function keys jump to the appropriate functional programs, we have designed the program has two functions, That tone adjustment function and auto-play music functions (3) key processes: get the keys to the detected values, temperament query table to assign a timer, so that issue the corresponding frequency sound (4) Auto Play Songs procedures: press buttons detected Under the program is executed automatically play songs function keys, the keyboard will automatically play a good song that has been stored in advance, after the song has finished playing automatically returns to the k
(1)键盘扫描程序:
检测是否有键按下,有键按下则记录按下键的键值,并跳转至功能转移程序;无键按下,则返回键盘扫描程序继续检测
(2)功能转移程序:
对检测到得按键值进行判断,是琴键则跳转至琴键处理程序,是功能键则跳转至相应的功能程序,我们设计的功能程序有两种,即音色调节功能和自动播放乐曲功能
(3)琴键处理程序:
根据检测到得按键值,查询音律表,给计时器赋值,使发出相应频率的声音
(4)自动播放歌曲程序:
检测到按键按下的是自动播放歌曲功能键后执行该程序,电子琴会自动播放事先已经存放好的歌曲,歌曲播放完毕之后自动返回至键盘扫描程序,继续等待是否有键按下-SCM keyboard curriculum design (1) Based on a keyboard scanner: detecting whether a key is pressed, a key is pressed the record button is pressed keys, and jump to the function of the transfer process no key is pressed, then return the keyboard scan program continues to detect (2) the transfer function of the program: to get the key value for the detection of judgment, is the key then jump to the key handler function keys jump to the appropriate functional programs, we have designed the program has two functions, That tone adjustment function and auto-play music functions (3) key processes: get the keys to the detected values, temperament query table to assign a timer, so that issue the corresponding frequency sound (4) Auto Play Songs procedures: press buttons detected Under the program is executed automatically play songs function keys, the keyboard will automatically play a good song that has been stored in advance, after the song has finished playing automatically returns to the k
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文件夹
..........\12.c
..........\c.txt
..........\CH451C54.C
..........\CH451DS1.PDF
..........\test.c