码迷,mamicode.com
首页 > 其他好文 > 详细

Beep音乐:Only My Railgun

时间:2018-10-15 20:40:53      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:int   密码   ref   http   tin   baidu   tps   https   windows   

嗯,这只是一个Beep音乐。

好吧,代码给你们吧。

百度网盘:https://pan.baidu.com/s/1uE8LciC82Hk3zhHA2h3b_w

密码:sdt2

代码:

#include <windows.h>
#define qdo 262 
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865


int pai=400,ban=200;
int ting=128;
int main()
{
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(si,pai);
    Beep(so,pai);
    Beep(fa1,pai);
    Beep(re1,pai);
    
    Sleep(ting);
    
    Beep(re1,ban);
    Beep(re1,ban/4*3);
    Beep(re1,ban);
    Beep(mi1,ban);
    Sleep(ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(si,pai);
    Beep(so,pai);
    Beep(mi,pai);
    Beep(so,pai);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban/2);
    Beep(mi,ban/2);
    Beep(mi,ban);
    Beep(mi,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,pai*2);
    
    Sleep(ting);
     
    Beep(la,pai*4);
    
    Sleep(pai*4);
    //前奏
    
     
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(do1,pai*2);
    Beep(do1,ban);
    Beep(re1,ban);
    Beep(do1,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(do1,ban);
    Beep(si,ban);
    Beep(la,ban);
    Beep(mi1,ban);
    Beep(do1,pai*2);
    
    Sleep(ting);
    
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(do1,pai);
    Beep(fa,pai);
    Beep(si,ban);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    
    Sleep(ting);
    
    Beep(so,ban+pai);
    Beep(fa,ban);
    Beep(fa,pai*2);
    
    Sleep(ting);
    
    Beep(do1,ban);
    Beep(do1,ban/2);
    Beep(do1,ban/2);
    Beep(do1,ban/2);
    Beep(do1,ban/2);
    Beep(do1,ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(la,ban);
    
    Sleep(ting);
    
    Beep(so,pai);
    Beep(so,ban);
    Beep(mi1,ban/2);
    Beep(mi1,ban/2);
    Beep(mi1,ban+pai);
    Beep(mi1,ban/2);
    Beep(mi1,ban/2);
    
    Sleep(ting);
    
    Beep(mi1,ban);
    Beep(re1,ban);
    Beep(do1,ban);
    Beep(qsi,ban);
    Beep(re1,ban/2);
    Beep(do1,ban/2);
    Beep(do1,ban/2);
    Beep(si,ban/2);
    Beep(si,ban);
    Beep(la,ban);
    
    Sleep(ting);
    
    Beep(so,ban+pai);
    Beep(so,ban/2);
    Beep(so,ban);
    Beep(fa,ban);
    Beep(la,pai*2);
    
    Sleep(ting);
    
    Beep(la,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(si,ban);
    
    Sleep(ting);
    
    Beep(si,pai);
    Beep(si,ban);
    Beep(so,ban/2);
    Beep(so,ban/2);
    Beep(so,pai);
    Sleep(ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(fa,pai);
    Beep(fa,ban);
    Beep(mi,ban);
    Beep(fa,ban);
    Beep(so,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    
    Sleep(ting);
    
    Beep(la,ban+pai);
    Beep(so,ban/2);
    Beep(fa,ban/2);
    Beep(so,pai*2);
    
    Sleep(ting);
    
    Beep(mi1,ban);
    Sleep(ban);
    Beep(mi1,ban);
    Sleep(ban);
    Beep(mi1,ban);
    Sleep(ban);
    Beep(si,ban);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(si,pai);
    Beep(so,pai);
    Beep(fa1,pai);
    Beep(re1,pai);
    
    Sleep(ting);
    
    Beep(re1,ban+pai);
    Beep(re1,ban/2);
    Beep(re1,ban);
    Beep(mi1,ban);
    Sleep(ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);

    Sleep(ting);

    Beep(la,pai*2);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(si,ban+pai);
    Beep(so,ban/2);
    Beep(so,ban);
    Beep(mi,ban);
    Sleep(ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(la,ban);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
        
    Beep(la,pai*2);
    Beep(la,ban);
    Beep(si,ban);
    Beep(do1,ban);
    Beep(re1,ban);
    
    Sleep(ting);
    
    Beep(si,pai);
    Beep(so,pai);
    Beep(mi,pai);
    Beep(so,pai);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,ban);
    Beep(do1,ban);
    Beep(si,ban);
    Beep(so,ban/2);
    Beep(mi,ban/2);
    Beep(mi,ban);
    Beep(so,ban);
    
    Sleep(ting);
    
    Beep(so,ban);
    Beep(la,ban/2);
    Beep(la,ban/2);
    Beep(la,pai*3);
    
    Sleep(ting);
    
    Beep(so,pai*4);
}

Beep音乐:Only My Railgun

标签:int   密码   ref   http   tin   baidu   tps   https   windows   

原文地址:https://www.cnblogs.com/MaxDYF/p/9792666.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!