寻找大虾 现在需要个TC编的电子琴

来源:百度知道 编辑:UC知道 时间:2024/05/31 12:56:17
要做电子琴了 寻找大虾 最好TC编的
各位大虾最好详细点的 要有钢琴画面的 还能编辑和播放音乐

参考一下

C语言写的电子琴程序
#include <graphics.h>
#include <stdio.h>

void my_delay(int clicks)
{
unsigned int far *clock=(unsigned int far *)0x0000046CL;
unsigned int now;
now=*clock;
while(abs(*clock-now)<clicks){}
}
wenzixianshi()
{
int x,y,i;
char ch[2];
char str[]="1234567qwertyuasdfghj";
x=100;

setcolor(BLUE);
settextstyle(4,0,8);
outtextxy(90,10,"The C Piano");
settextstyle(0,0,2);
outtextxy(90,100,"Please use A-U to make sound");
settextstyle(0,0,1);

outtextxy(120,320,"Press ESC to exit.");
setcolor(RED);
for(i=0;i<21;i++)
{
ch[0]=str[i];
ch[1]=0;
outtextxy(x+5,160,ch);
x+=20;

}

}

donghua()
{
int i,j,x,stepx=100,stepy=180;
char ch,str[2];
unsigned int fre;
wenzixian