文件名称:51XXMP3
介绍说明--下载内容来自于网络,使用问题请自行百度
曲谱存贮格式 unsigned char code MusicName{音高,音长,音高,音长...., 0,0} 末尾:0,0 表示结束(Important)
音高由三位数字组成: 个位是表示 1~7 这七个音符 十位是表示音符所在的音区:1-低音,2-中音,3-高音 百位表示这个音符是否要升半音: 0-不升,1-升半音。 音长最多由三位数字组成: 个位表示音符的时值,其对应关系是: |数值(n): |0 |1 |2 |3 | 4 | 5 | 6 |几分音符: |1 |2 |4 |8 |16 |32 |64 音符=2^n 十位表示音符的演奏效果(0-2): 0-普通,1-连音,2-顿音 百位是符点位: 0-无符点,1-有符点
调用演奏子程序的格式
Play(乐曲名,调号,升降八度,演奏速度)
|乐曲名 : 要播放的乐曲指针,结尾以(0,0)结束
|调号(0-11) : 是指乐曲升多少个半音演奏
|升降八度(1-3) : 1:降八度, 2:不升不降, 3:升八度
|演奏速度(1-12000): 值越大速度越快 -scores storage format unsigned char code MusicName (pitch. duration, pitch, duration ...., 0,0) end : 0, 0 indicates that the end (Important) pitch by three figures : positions expressed a 7-7 notes that 10 expressed notes of where the tone region : 1-bass, 2-tenor, 3-100 Treble said the notes whether or semitone : 0-level, the 1 - or semitone. Duration of up to three figures : a single-note said that the current value, the relationship is : | value (n) : | 0 | 1 | 2 | 3 | 4 | 5 | 6 | bit notes : | 1 | 2 | 4 | 8 | 16 | 32 | 64 notes n = 2 ^ 10 notes of the concert said the effect (0-2) : 0-general, 1-Link Music, 2 - staccato 100 is in accord point : 0-No website, 1-Fu point of the subroutine call recital format Play (music, and tone mark, landing eight, Play speed) | music Name : to play t
音高由三位数字组成: 个位是表示 1~7 这七个音符 十位是表示音符所在的音区:1-低音,2-中音,3-高音 百位表示这个音符是否要升半音: 0-不升,1-升半音。 音长最多由三位数字组成: 个位表示音符的时值,其对应关系是: |数值(n): |0 |1 |2 |3 | 4 | 5 | 6 |几分音符: |1 |2 |4 |8 |16 |32 |64 音符=2^n 十位表示音符的演奏效果(0-2): 0-普通,1-连音,2-顿音 百位是符点位: 0-无符点,1-有符点
调用演奏子程序的格式
Play(乐曲名,调号,升降八度,演奏速度)
|乐曲名 : 要播放的乐曲指针,结尾以(0,0)结束
|调号(0-11) : 是指乐曲升多少个半音演奏
|升降八度(1-3) : 1:降八度, 2:不升不降, 3:升八度
|演奏速度(1-12000): 值越大速度越快 -scores storage format unsigned char code MusicName (pitch. duration, pitch, duration ...., 0,0) end : 0, 0 indicates that the end (Important) pitch by three figures : positions expressed a 7-7 notes that 10 expressed notes of where the tone region : 1-bass, 2-tenor, 3-100 Treble said the notes whether or semitone : 0-level, the 1 - or semitone. Duration of up to three figures : a single-note said that the current value, the relationship is : | value (n) : | 0 | 1 | 2 | 3 | 4 | 5 | 6 | bit notes : | 1 | 2 | 4 | 8 | 16 | 32 | 64 notes n = 2 ^ 10 notes of the concert said the effect (0-2) : 0-general, 1-Link Music, 2 - staccato 100 is in accord point : 0-No website, 1-Fu point of the subroutine call recital format Play (music, and tone mark, landing eight, Play speed) | music Name : to play t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
51单片机播放音乐.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.