#include <sys/io.h>
#include <unistd.h>
void play(unsigned int* freq, unsigned int* delay);
main()
{
int i;
unsigned int freq[]={ 330 , 392 , 330 , 294 , 330 , 392 ,
330 , 394 , 330 , 330 , 392 , 330 ,
294 , 262 , 294 , 330 , 392 , 294 ,
262 , 262 , 220 , 196 , 196 , 220 ,
262 , 294 , 330 , 262 , 0 } ;
unsigned int time[]={ 50 , 50 , 50 , 25 , 25 , 50 ,
25 , 25 , 100, 50 , 50 , 25 ,
25 , 50 , 50 , 25 , 25 , 100,
50 , 25 , 25 , 50 , 25 , 25 ,
50 , 25 , 25 , 100 };
unsigned int freq2[]={
196,262,262,262,330,294,262,294,330,294,262,
330,394,440,440,394,330,330,262,294,262,294,
330,294,262,230,230,196,262,440,394,330,330,
262,294,262,294,440,394,330,330,394,440,523,
394,330,330,262,294,262,294,330,294,262,230,
230,196,262,440,394,330,330,262,294,262,294,
440,394,330,330,394,440,523,394,330,330,262,
294,262,294,330,294,262,230,230,196,262,0
};
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载
- 1
- 2
前往页