资源描述:
《4x4键盘多功能电子琴》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、4X4键盘多功能电子琴#include#include#include"12864.c"#include"math.h"#include"stdio.h"#defineucharunsignedchar#defineuintunsignedintexternvoidmusic(void);#defineDO63622//523#defineRE63831//587#defineMI64017//659#defineFA64102//698#defineSO64259//784#defineLA64398//880#defineTI64522//988#
2、defineDO_H64578//1046#defineRE_H64683//1174#defineMI_H64776//1318#defineFA_H64819//1397#defineSO_H64897//1568#defineLA_H64966//1760#defineTI_H65028//1976#defineDO_HH65057//2093constucharsound[]={//乐曲数据表0x40,0x4c,0x4a,0x49,0xc8,0x49,0x47,0x46,0xe5,0x4e,0x4d,0x4e,0x6c,0x2d,0x4e,0x4d,0x2c,0x2d,0x2e,0x
3、2d,0x6f,0x2d,0x2c,0x2d,0x2c,0x29,0x2a,0x2b,0x2a,0x29,0xc8,0x4c,0x4e,0x49,0x46,0x48,0xc5,0x26,0x28,0xe5,0x83,0x65,0x26,0x68,0x29,0x26,0x28,0x45,0x6c,0x2f,0x3d,0x1c,0x2a,0x2c,0xe9,0x69,0x2a,0x47,0x46,0x65,0x26,0x48,0x49,0x43,0x48,0x36,0x15,0x26,0x18,0xe5,0x6a,0x2c,0x47,0x49,0x26,0x28,0x85,0x33,0x15,0
4、x43,0x25,0x26,0x27,0x29,0xc6,0x25,0x26,0x68,0x29,0x4c,0x4a,0x49,0x2a,0x29,0x49,0x26,0x25,0x83,0x88,0x26,0x28,0x26,0x25,0x23,0x25,0x26,0x28,0xc5,0x04,0x04,/*************希望*****************/0x49,0x4a,0x4a,0x6a,0x29,0x48,0x46,0x68,0x29,0xc8,0x49,0x4a,0x4a,0x6a,0x2c,0x4a,0x4a,0x49,0x4a,0xca,0x4c,0x4d,0
5、x4d,0x6d,0x2c,0x4a,0x4a,0x4c,0x4d,0xcc,0x49,0x4a,0x4a,0x69,0x2a,0x4a,0x49,0x4a,0x46,0x18,0xe6,0x29,0x29,0x29,0x28,0x46,0x29,0x29,0x29,0x28,0x46,0x49,0x4a,0x48,0x69,0x2a,0x4c,0x2d,0x2d,0x2d,0x2c,0x4a,0x29,0x29,0x29,0x28,0x46,0x46,0x45,0x46,0xe6,/***********喀秋莎*********/0x66,0x27,0x68,0x26,0x28,0x28,
6、0x27,0x26,0x47,0x43,0x67,0x28,0x69,0x27,0x29,0x29,0x28,0x27,0x46,0x46,0x4a,0x4d,0x4c,0x2d,0x2c,0x2b,0x2b,0x2a,0x29,0x4a,0x46,0x20,0x4b,0x29,0x6a,0x28,0x27,0x23,0x28,0x27,0x46,0x46,0x4a,0x4d,0x4c,0x2d,0x2c,0x2b,0x2b,0x2a,0x29,0x4a,0x46,0x20,0x4b,0x29,0x6a,0x28,0x27,0x23,0x28,0x27,0x46,0x46,/********
7、*********同一首歌**************/0x85,0x48,0x49,0x6a,0x2b,0x4a,0x48,0x89,0x48,0x46,0xf8,0x85,0x48,0x49,0x4a,0x2a,0x2b,0x4c,0x48,0x6b,0x2a,0x4c,0x29,0x2a,0x2a,0x29,0x89,0x8a,0x4c,0x4e,0x6e,0x2d,0x8d,0x4c,0x2c,0x2