51XXMP3

所属分类:其他
开发工具:Asm
文件大小:3KB
下载次数:88
上传日期:2007-03-03 23:46:15
上 传 者mcs-51
说明:   曲谱存贮格式 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)

文件列表:
51单片机播放音乐.txt (14100, 2006-10-30)

近期下载者

相关文件


收藏者