Wake Up

2018-08-20 20:36:45


最爱的海贼王op:Wake Up

C++实现蜂鸣器唱Wake Up(施工中,暂时是未完整版)

#include <cstdio>
#include <windows.h>
#define qdo 262
#define qri 294
#define qmi 330     //q前缀为低音,1后缀为高音,s前缀为半音阶 
#define qfa 349
#define qso 392
#define qla 440
#define qxi 494
#define doo 523
#define ri 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define xi 988
#define do1 1046
#define ri1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define xi1 1976
int main() {
    int pai=400,ban=200;
    int ting=128;
    printf("いくぜShining! Running! Forever\n");
    printf("前进吧 闪耀!奔跑!永远\n\n");
    Beep(doo,ban);
    Beep(mi,ban);
    Beep(fa,ban);
    Beep(la,pai);
    Beep(so,pai);
    Beep(la,pai);
    Beep(so,pai);
    Beep(la,pai);
    Beep(xi,ban);
    Beep(so,pai);
    Sleep(ting);
    printf("前へ突き進むのさ\n");
    printf("奋勇前进\n\n");
    Beep(doo,ban);
    Beep(mi,ban);
    Beep(fa,ban);
    Beep(la,pai);
    Beep(so,pai);
    Beep(la,pai);
    Beep(so,pai);
    Beep(la,pai);
    Beep(xi,ban);
    Beep(so,pai);
    printf("変わることの");
    Sleep(ting);
    Beep(mi,ban);
    Beep(mi,ban);
    Beep(xi,ban);
    Beep(xi,ban);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,pai);
    printf("ない絆はきっと\n");
    printf("那永不改变的羁绊\n\n");
    Beep(mi,ban);
    Beep(mi,ban);
    Beep(xi,ban);
    Beep(xi,ban);
    Beep(la,ban);
    Beep(so,ban);
    Beep(mi,pai);
    printf("夢の果て”照らし出す\n");
    printf("必定会照亮梦想的前方\n\n");
    Beep(mi,ban);
    Beep(mi,ban);
    Beep(fa,ban);
    Beep(so,pai);
    Beep(mi,pai);
    Beep(so,pai);
    Beep(xi,pai);
    Beep(la,pai);
    Beep(so,pai);
    Beep(fa,pai);
    Beep(ri,pai);
    printf("Wake up!");
    Beep(ri,ban);
    Beep(mi,pai);
    printf("Wake up!");
    Beep(ri,ban);
    Beep(mi,pai);
    printf("Wake up!");
    Beep(ri,ban);
    Beep(mi,pai);
    printf("Wake up heart beat!\n");
    printf("觉醒!觉醒!觉醒!觉醒的心跳!\n\n");
    Beep(ri,ban);
    Beep(mi,pai);
    Beep(so,pai);
    Beep(fa,pai);
    Beep(ri,ban);
    Beep(mi,pai);
    printf("We are the one! Go ahead!\n");
    printf("我们就是唯一!向前进发!\n\n");
    Beep(fa,ban);
    Beep(so,pai);
    Beep(la,ban);
    Beep(xi,pai);
    Sleep(ting);
    printf("伴奏部分\n\n");
    Beep(doo,pai);
    Beep(doo,pai);
    Beep(doo,ban);
    Beep(qxi,ban);
    Beep(qla,ban);
    Beep(qso,pai);
    Beep(qla,ban);
    Beep(qxi,ban);
    Beep(doo,pai);
    Beep(doo,ban);
    Beep(ri,ban);
    Beep(doo,ban);

    Beep(doo,pai);
    Beep(doo,pai);
    Beep(doo,ban);
    Beep(ri,ban);
    Beep(fa,ban);
    Beep(so,pai);
    Beep(la,ban);
    Beep(do1,ban);
    Beep(doo,pai);
    Beep(doo,ban);
    Beep(ri,ban);
    Beep(doo,ban);
    Sleep(ting*2);
    printf("自由だけが羅針盤さ\n");
    printf("自由是唯一的罗盘\n\n");
    Beep(xi,ban);
    Beep(xi,ban);
    Beep(xi,ban);
    Beep(xi,ban);
    Beep(la,ban);
    Beep(so,ban);
    Beep(la,ban);
    Beep(xi,pai);
    Beep(do1,ban);
    Beep(mi1,pai);
    Beep(fa1,pai);
    Beep(so1,pai);
    printf("We are best friends\n");
    printf("我们是最好的朋友\n\n");
    Beep(so1,pai);
    Beep(fa1,pai);
    Beep(mi1,pai);
    Beep(ri1,pai);
    Beep(fa1,ban);
    Beep(mi1,pai);
    printf("俺たちの航路\n");
    printf("我们的航路\n\n");
    Beep(mi1,ban);
    Beep(ri1,ban);
    Beep(xi,ban);
    Beep(so,ban);
    Beep(la,pai);
    Beep(mi1,ban);
    Beep(ri1,pai);
    Beep(la,pai);
    printf("これからも 俺たちで切り开くぜ\n");
    printf("今后也由我们自己来开拓\n\n");
    Beep(la,ban);
    Beep(xi,pai);
    Beep(mi1,ban);
    Beep(ri1,pai);
    Beep(xi,pai);
    Beep(la,ban);
    Beep(fa,pai);
    Beep(so,pai);
    Beep(la,pai);
    Beep(xi,pai);
    Beep(mi1,pai);
    Beep(ri1,pai);
    Beep(do1,pai);
    Beep(ri1,pai);
    return 0;
}

持续施工中,未完待续……