极乐净土 music 蜂鸣器 c++

#include 
#include 
#define q1 262
#define q2 294
#define q3 330     
#define q4 349
#define q5 392
#define q6 440
#define q7 494
#define c1 523
#define c2 578
#define c3 659
#define c4 698
#define c5 784
#define c6 880
#define c7 988
#define d1 1046
#define d2 1175
#define d3 1318
#define d4 1480
#define d5 1568
#define d6 1760
#define d7 1976
#define e1 2092
#define e2 2350
#define e3 2636
#define e4 2960
#define e5 3136
#define e6 3560
#define e7 3952
int main() {
    int pai=400,ban=200;
    int ting=200;
	
    Beep(c3,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(d1,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c3,ban);
    Sleep(ting);
    Beep(c3,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(d3,ban);
    Beep(d1,ban);
    Beep(d2,ban);
    Beep(c6,ban);
    Sleep(ting);
    Beep(c3,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(d1,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c3,ban);
    Beep(c5,ban);
    Beep(c1,ban);
    Beep(c2,ban);
    Beep(c3,pai);
    Beep(d1,pai);
    Beep(c6,pai);
    Beep(d3,pai);
    Beep(d2,ban);
    Beep(d3,ban>>1);
    Beep(d2,ban>>1);
    Beep(d1,ban);
    Beep(d2,ban);
    Beep(c6,pai);
    Sleep(ting);
    Sleep(ting);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban>>1);
    Beep(d1,ban>>1);
    Beep(d2,ban>>1);
    Beep(d3,ban>>1);
 
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban>>1);
    Beep(d1,ban>>1);
    Beep(d2,ban>>1);
    Beep(d3,ban>>1);
    
    Beep(c6,pai);
    Beep(c6,ban);
    Beep(d4,ban);
    Beep(d4,ban);
    Beep(d3,ban);
    
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban>>1);
    Beep(d1,ban>>1);
    Beep(d2,ban>>1);
    Beep(d3,ban>>1);
    
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,pai);
    Beep(c6,ban>>1);
    Beep(d1,ban>>1);
    Beep(d2,ban>>1);
    Beep(d3,ban>>1);
    
    Beep(d6,ban*3);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c6,pai);
    Sleep(ting*3);
    
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c5,ban>>1);
    Beep(c5,ban/2*3);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c3,ban);
    Beep(c3,ban);
    Beep(c5,ban>>1);
    Beep(c3,ban/2*3);
    Sleep(ting);
     Sleep(ting);
      Sleep(ting);
       Sleep(ting);
        Sleep(ting);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c7,ban);
    Beep(d1,pai);
    Beep(c7,ban*2);
    Beep(c6,ban);
    Beep(c7,ban>>1);
    Beep(c6,ban>>1);
    
    Beep(c5,pai);
     Sleep(ting); Sleep(ting); Sleep(ting);
     
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban>>1);
    Beep(c5,ban/2*3);
    Beep(c3,ban);
    Beep(c3,ban);
    Beep(c5,ban>>1);
    Beep(c3,ban>>1*3);
     Sleep(ting);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Sleep(ting);
    Beep(c6,pai/4);
    Beep(c7,ban>>1);
    Beep(d1,pai);
    Beep(d2,pai);
    Beep(c6,ban);
    Beep(c3,ban);
    Beep(c3,ban);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
	    Sleep(ting);
    Beep(d3,ban);
    Beep(d2,pai);
	    Sleep(ting);
    Beep(c6,ban);
	    Sleep(ting);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(d3,ban);
    Beep(d2,pai);
	    Sleep(ting);    Sleep(ting);Sleep(ting);
    Beep(d2,ban);
    Beep(d2,ban);
    Beep(d1,ban);
    Beep(d2,ban);
    Beep(d1,ban>>1);
    Beep(c6,ban/2*3);
    Beep(c5,ban*2);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c3,ban);
    Beep(c3,ban);
    Beep(c5,ban);
	  Beep(c5,ban);
    Beep(c6,ban);
	    Sleep(ting);
    Beep(d3,ban);
    Beep(d2,pai);
	    Sleep(ting);
    Beep(c6,ban);
	    Sleep(ting);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(d3,ban);
    Beep(d2,pai);
	    Sleep(ting);    Sleep(ting);Sleep(ting);
    Beep(d2,ban);
    Beep(d2,ban);
    Beep(d1,ban);
    Beep(d2,ban);
    Beep(d1,ban>>1);
    Beep(c6,ban);
    Beep(c3,ban>>1);
    Beep(c5,ban*2);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c6,ban*2);
	Sleep(ting);
    Beep(c3,ban>>1);
    Beep(c5,ban>>1);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(c6,ban);
    Beep(d3,ban);
    Beep(d3,pai);
	Sleep(ting);
    Beep(c7,ban>>1);
    Beep(d1,ban>>1);
    Beep(d2,ban/2*3);
    Beep(d3,ban);
    Beep(c6,pai);
	Sleep(ting);
    Beep(c5,ban>>1);
    Beep(c5,ban>>1);
    Beep(c6,pai);
    Beep(d3,ban/2*3);
    Beep(d3,ban/2);
    Beep(d2,ban);
    Beep(d1,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c6,ban/2*3);
    Beep(c6,ban/2*3);
    Beep(d1,ban);
    Beep(d2,pai);
	Sleep(ting);Sleep(ting);
    Beep(c6,ban);
    Beep(c6,ban>>1);
    Beep(c6,ban/2*3);
    Beep(c5,ban>>1);
    Beep(c5,ban>>1);
	Beep(c6,ban);
    Beep(d3,ban);
	Sleep(ting);
    Beep(d1,ban);
    Beep(d2,ban);
    Beep(d1,ban>>1);
    Beep(d2,ban/2*3);
    Beep(d3,ban);
	Sleep(ting);
    Beep(c6,ban);
    Beep(d1,ban);
	Sleep(ting);
    Beep(c5,ban);
    Beep(c6,ban);
    Beep(d3,ban);
    Sleep(ting);
	Beep(d3,ban>>1);
    Beep(d2,ban>>1);
    Beep(d1,ban);
    Beep(c7,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c5,ban);
    Beep(c6,pai);
	Sleep(ting);
	
	Sleep(ting);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c3,ban);
    Beep(c2,ban);
    Beep(c3,ban);
    Beep(c1,ban);
    Beep(q5,ban);
    Beep(q6,ban);
    Beep(q5,ban);
    Beep(q6,ban);
	Sleep(ting);
    Beep(q6,pai);
	Sleep(ting);Sleep(ting);
    Beep(q6,pai);
	Sleep(ting);Sleep(ting);
    Beep(q7,pai);
	Sleep(ting);Sleep(ting);
    Beep(q6,ban>>1);
    Beep(q7,ban>>1);
    Beep(q6,ban);
    Beep(q6,ban>>1);
    Beep(q7,ban>>1);
    Beep(q6,ban);
    Beep(c1,pai);
	Sleep(ting);Sleep(ting);
    Beep(q7,ban);
    Beep(c6,ban);
    Beep(c5,ban);
    Beep(c3,ban);
    Beep(c2,ban);
    Beep(c3,ban);
    Beep(c1,ban);
    Beep(q5,ban);
    return 0;
}

感觉后面的没有打好,见谅见谅。。。 

 

你可能感兴趣的:(其他)