《孤勇者》等热门歌曲伴奏--源代码

2023-12-12 23:30

本文主要是介绍《孤勇者》等热门歌曲伴奏--源代码,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

目录 

使用方法

《起风了》歌词伴奏

《起风了》歌词

《生日歌》歌词伴奏

《生日歌》歌词 

《童话》歌词伴奏

《童话》歌词

《光阴的故事》歌词伴奏

《光阴的故事》歌词

​《千本樱》歌词伴奏

《千本樱》中文歌词

《平凡之路》歌词伴奏

《平凡之路》歌词

《孤勇者》歌词伴奏

《孤勇者》歌词

《海阔天空》歌词伴奏

《海阔天空》歌词


 

使用方法

Visual Studio 2022版的C/C++创建一个 .cpp 文件,直接粘贴复制即可。 

《起风了》歌词伴奏

261be14eab4b468db2b7221fa621bb25.png

#include <iostream>
#include <Windows.h>
#pragma comment(lib,"winmm.lib")
using namespace std;
enum Scale
{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,LOW_SPEED = 500, MIDDLE_SPEED = 400, HIGH_SPEED = 300,_ = 0XFF};void Wind()
{HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);// midiOutShortMsg(handle, 2 << 8 | 0xC0);int volume = 0x7f;int voice = 0x0;int sleep = 350;int wind[] ={400,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,L7,M1,M2,M3,300,L2,0,M5,M3,M2,M3,M1,M2,L7,M1,300,L5,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,L7,M1,M2,M3,300,L2,0,M5,M3,M2,M3,M1,M2,L7,M1,300,L5,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,L7,M1,M2,M3,300,L2,0,M5,M3,M2,M3,M1,M2,L7,M1,300,L5,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,M6,M3,M2,L6,M3,L6,M2,M3,L6,_,_,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M1,300,M2,700,0,M1,M2,M3,M2,M1,300,L5,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M3,300,M2,0,M1,700,300,M2,_,_,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M3,300,M2,0,M1,700,300,L6,_,0,M3,M2,M1,M2,300,M1,_,0,M3,M2,M1,M2,300,M1,700,0,L5,M3,M2,M1,M2,300,M1,_,_,_,M1,M2,M3,M1,M6,0,M5,M6,300,_,700,0,M1,300,M7,0,M6,M7,300,_,_,M7,0,M6,M7,300,_,M3,0,H1,H2,H1,M7,300,M6,M5,M6,0,M5,M6,_,M5,M6,M5,300,M6,0,M5,M2,300,_,0,M5,700,300,M3,_,_,_,M1,M2,M3,M1,M6,0,M5,M6,300,_,700,0,M1,300,M7,0,M6,M7,300,_,_,M7,0,M6,M7,300,_,M3,0,H1,H2,H1,M7,300,M6,M5,M6,0,H3,H3,300,_,M5,M6,0,H3,H3,300,_,0,M5,700,300,M6,_,_,_,_,_,H1,H2,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H2,0,H1,M6,300,_,0,H1,H1,300,H2,0,H1,300,M6,700,0,_,300,H1,700,H3,_,0,H3,H4,H3,H2,H3,300,H2,700,H1,H2,H3,0,H6,H5,_,H6,H5,_,H6,H5,300,_,H3,H3,0,H6,H5,_,H6,H5,_,H6,H5,700,300,H3,700,H2,0,H1,M6,700,300,H3,700,H2,0,H1,300,M6,700,H1,H1,_,_,_,_,_,0,M6,300,H3,700,H2,0,H1,M6,700,300,H3,H2,700,300,0,H1,M6,300,700,H1,H1,_,_,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,L7,M1,M2,M3,300,L2,0,M5,M3,M2,M3,M1,M2,L7,M1,300,L5,0,L7,M1,M2,M3,300,L3,0,M5,M3,300,L2,L5,2,_,0,M6,M3,M2,L6,M3,L6,M2,M3,L6,_,_,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M1,300,M2,700,0,M1,M2,M3,M2,M1,300,L5,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M3,300,M2,0,M1,700,300,M2,_,_,_,M2,700,0,M1,300,M2,700,0,M1,300,M2,M3,M5,0,M3,700,300,M2,700,0,M3,300,M2,0,M1,700,300,L6,_,0,M3,M2,M1,M2,300,M1,_,0,M3,M2,M1,M2,300,M1,700,0,L5,M3,M2,M1,M2,300,M1,_,_,_,M1,M2,M3,M1,M6,0,M5,M6,300,_,700,0,M1,300,M7,0,M6,M7,300,_,_,M7,0,M6,M7,300,_,M3,0,H1,H2,H1,M7,300,M6,M5,M6,0,M5,M6,_,M5,M6,M5,300,M6,0,M5,M2,300,_,0,M5,700,300,M3,_,_,_,M1,M2,M3,M1,M6,0,M5,M6,300,_,700,0,M1,300,M7,0,M6,M7,300,_,_,M7,0,M6,M7,300,_,M3,0,H1,H2,H1,M7,300,M6,M5,M6,0,H3,H3,300,_,M5,M6,0,H3,H3,300,_,0,M5,700,300,M6,_,_,_,_,_,H1,H2,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H2,0,H1,M6,300,_,0,H1,H1,300,H2,0,H1,300,M6,700,0,_,300,H1,700,H3,_,0,H3,H4,H3,H2,H3,300,H2,700,H1,H2,H3,0,H6,H5,_,H6,H5,_,H6,H5,300,_,H3,H3,0,H6,H5,_,H6,H5,_,H6,H5,700,300,H3,700,H2,0,H1,M6,700,300,H3,700,H2,0,H1,300,M6,700,H1,H1,_,_,_,_,_,H1,H2,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H2,0,H1,M6,300,_,0,H1,H1,300,H2,0,H1,300,M6,700,0,_,300,H1,700,H3,_,0,H3,H4,H3,H2,H3,300,H2,700,H2,H3,0,H6,H5,_,H6,H5,_,H6,H5,300,_,H3,H3,0,H6,H5,_,H6,H5,_,H6,H5,700,300,H3,700,H2,0,H1,M6,700,300,H3,700,H2,0,H1,300,M6,700,H1,H1,_,_,_,_,_,H1,H2,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H3,0,H6,H5,300,_,0,H6,H5,300,_,0,H6,H5,300,_,0,H2,H3,300,H2,0,H1,M6,300,_,0,H1,H1,300,H2,0,H1,300,M6,700,0,_,300,H1,700,H3,_,0,H3,H4,H3,H2,H3,300,H2,700,H1,H2,H3,0,H6,H5,_,H6,H5,_,H6,H5,300,_,H3,H3,0,H6,H5,_,H6,H5,_,H6,H5,700,300,H3,700,H2,0,H1,M6,700,300,H3,700,H2,0,H1,300,M6,700,H1,H1,_,_,_,_,_,0,M6,300,H3,700,H2,0,H1,M6,700,300,H3,H2,700,300,0,H1,M6,300,700,H1,H1,_,_,_,_,_,_,_,};for (auto i : wind) {if (i == 0) { sleep = 175; continue; }if (i == 700) { Sleep(175); continue; }if (i == 300) { sleep = 350; continue; }if (i == _) {Sleep(350);continue;}// if (i == 900) volume += 100;voice = (volume << 16) + ((i) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);// midiOutShortMsg(handle, 0x7BB0);}midiOutClose(handle);
}
int main()
{Wind();return 0;
}

《起风了》歌词

这一路上走走停停
顺着少年漂流的痕迹
迈出车站的前一刻
竟有些犹豫

不禁笑这近乡情怯
仍无法避免
而长野的天 依旧那么暖
风吹起了从前

从前初识这世间 万般流连
看着天边似在眼前
也甘愿赴汤蹈火去走它一遍
如今走过这世间 万般流连
翻过岁月不同侧脸
措不及防闯入你的笑颜

我曾难自拔于世界之大
也沉溺于其中梦话
不得真假 不做挣扎 不惧笑话

我曾将青春翻涌成她
也曾指尖弹出盛夏
心之所动 且就随缘去吧
逆着光行走 任风吹雨打

短短的路走走停停
也有了几分的距离
不知抚摸的是故事
还是段心情

也许期待的不过是
与时间为敌
再次见到你 微凉晨光里
笑得很甜蜜

从前初识这世间 万般流连
看着天边似在眼前
也甘愿赴汤蹈火去走它一遍
如今走过这世间 万般流连
翻过岁月不同侧脸
措不及防闯入你的笑颜

我曾难自拔于世界之大
也沉溺于其中梦话
不做真假 不做挣扎 不惧笑话

我曾将青春翻涌成她
也曾指尖弹出盛夏
心之所动 且就随缘去吧

晚风吹起你鬓间的白发
抚平回忆留下的疤
你的眼中 明暗交杂 一笑生花

暮色遮住你蹒跚的步伐
走进床头藏起的画
画中的你 低着头说话

我仍感叹于世界之大
也沉醉于儿时情话
不剩真假 不做挣扎 无谓笑话

我终将青春还给了她
连同指尖弹出的盛夏
心之所动 就随风去了
以爱之名 你还愿意吗

《生日歌》歌词伴奏

031bd1a9c86f4451a9a870eebcc340b1.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,LOW_SPEED = 500, MIDDLE_SPEED = 400, HIGH_SPEED = 300,_ = 0XFF};void SRKL(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);//midiOutShortMsg(handle, 40 << 8 | 0xC0);int volume = 0x7f;int voice = 0x0;int sleep = 400; int tmp = 6;int srkl[] ={L5,L5,L6,_,L5,_,M1,_,L7,_,_,_,L5,L5,L6,_,L5,_,M2,_,M1,_,_,L5,L5,M5,_,M3,_,M1,_,L7,_,L6,_,M4,M4,M3,_,M1,_,M2,_,M1,_,_,_,L5,L5,L6,_,L5,_,M1,_,L7,_,_,_,L5,L5,L6,_,L5,_,M2,_,M1,_,_,L5,L5,M5,_,M3,_,M1,_,L7,_,L6,_,M4,M4,M3,_,M1,_,M2,_,M1,_,_,_,};for (auto i : srkl) {if (i == LOW_SPEED || i == HIGH_SPEED || i == MIDDLE_SPEED) {sleep = i;//Sleep(i/2);continue;}if (i == 0) { sleep = 200; continue; }if (i == 700) { Sleep(200); continue; }if (i == _) {Sleep(400);continue;}if (i == 1000) { tmp = +5; continue; }// if (i == 900) volume += 100;voice = (volume << 16) + ((i + tmp) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);//midiOutShortMsg(handle, 0x7BB0);}midiOutClose(handle);}int main(){SRKL();return 0;} 

《生日歌》歌词 

祝你生日快乐
祝你生日快乐
祝你生日快乐
祝你生日快乐
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
祝你生日快乐
祝你生日快乐
祝你生日快乐
祝你永远快乐
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU
祝你生日快乐
祝你生日快乐
祝你天天快乐
祝你永远快乐
祝你生日快乐
祝你生日快乐
祝你天天快乐
祝你永远快乐

《童话》歌词伴奏

4e75fa9fcfdd403ca3e903cc4520cc0f.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,_ = 0XFF};void TH(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);int volume = 0x7f;int voice = 0x0;int sleep = 300; int tmp = 5;int th[] ={H3,_,_,_,_,_,H3,700,0,H2,300,H2,700,0,H1,300,H1,_,_,_,H1,700,0,M7,300,M7,700,0,M6,300,M6,_,_,_,M6,700,0,M5,300,M5,_,_,_,_,L5,M1,L7,M1,700,0,L5,300,L5,_,_,L5,M1,L7,M1,700,0,L5,300,L5,_,_,L5,M1,L7,M1,_,_,M1,M1,L6,L6,L5,L5,_,_,_,_,L5,M1,L7,M1,L5,L5,_,_,L5,M3,700,0,M2,300,M2,M1,M1,_,_,L5,M1,L7,M1,L6,_,L6,L6,M1,M6,M5,M5,_,_,_,_,M2,M2,M4,M4,M3,M3,_,_,M3,M2,L7,M2,700,0,M1,300,M1,0,L7,M1,300,_,M1,L7,M1,M4,_,_,L5,M5,M4,M3,M2,M2,_,_,_,_,M2,M2,M4,M4,M3,M3,_,_,M3,M3,M7,M7,M6,M7,H1,_,H1,M2,M1,M6,_,_,M6,M6,M5,M5,M5,M5,_,_,_,_,L5,M5,M4,M3,_,M3,0,M4,M3,300,_,_,M3,M4,M3,M4,M3,0,M2,M1,300,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,0,M4,M3,300,M3,_,_,_,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,M4,M3,M4,M3,0,M2,M1,300,M1,_,M2,0,M2,M3,300,L6,_,L6,M1,M1,_,L7,_,M1,_,_,_,_,M3,M4,M5,M6,_,_,M5,M5,_,M6,_,M5,_,M5,_,M5,M2,M2,M4,M4,M3,M3,_,_,M3,M2,L7,M2,700,0,M1,300,M1,0,L7,M1,300,_,M1,L7,M1,M4,_,_,L5,M5,M4,M3,M2,M2,_,_,_,_,M2,M2,M4,M4,M3,M3,_,_,M3,M3,M7,M7,M6,M7,H1,_,H1,M2,M1,M6,_,_,M6,M6,M5,M5,M5,M5,_,_,_,_,L5,M5,M4,M3,_,M3,0,M4,M3,300,_,_,M3,M4,M3,M4,M3,0,M2,M1,300,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,0,M4,M3,300,M3,_,_,_,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,M4,M3,M4,M3,0,M2,M1,300,M1,_,M2,0,M2,M3,300,L6,_,L6,M1,M1,_,L7,_,M1,_,_,_,L5,M5,M4,M3,_,M3,0,M4,M3,300,_,_,M3,M4,M3,M4,M3,0,M2,M1,300,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,0,M4,M3,300,M3,_,_,_,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,M4,M3,M4,M3,0,M2,M1,300,M1,_,M2,0,M2,M3,300,L6,_,L6,M1,M1,_,L7,_,M1,_,_,_,L5,M5,M4,M3,_,M3,0,M4,M3,300,_,_,M3,M4,M3,M4,M3,0,M2,M1,300,_,M1,M3,M5,M6,_,M6,0,M6,M5,300,M5,M2,M2,0,M4,M3,300,M3,_,_,_,_,M1,M3,M5,M6,_,M6,0,M6,M7,300,M7,M6,M5,M4,M3,M4,M3,0,M2,M1,300,M1,_,M2,0,M2,M3,300,L6,_,L6,M1,M1,L7,L7,M1,M1,_,_,_,_,_,M2,0,M2,M3,300,0,M3,M2,M3,M2,M1,M2,300,M1,M1,_,M2,0,M2,M3,300,L6,_,L6,M1,M1,L7,L7,M1,M1,_,_,_,_,_,_,_,M1,_,_,_,_,_,_,_,M1,_,_,_,_,_,_,_,};for (auto i : th) {if (i == 300) { sleep = 300; continue; }if (i == 0) { sleep = 150; continue; }if (i == 700) { Sleep(150); continue; }if (i == _) {Sleep(300);continue;}if (i == 1000) { tmp = +5; continue; }voice = (volume << 16) + ((i + tmp) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);}midiOutClose(handle);}int main(){TH();return 0;} 

《童话》歌词

-- 光良

忘了有多久
再没听到你
对我说你
最爱的故事
我想了很久
我开始慌了
是不是我又做错了什么?
你哭着对我说童话里都是骗人的
我不可能是你的王子
也许你不会懂
从你说爱我以后
我的天空星星都亮了
我愿变成童话里
你爱的那个天使
张开双手变成翅膀守护你
你要相信
相信我们会像童话故事里
幸福和快乐是结局
你哭着对我说童话里都是骗人的
我不可能是你的王子
也许你不会懂
从你说爱我以后
我的天空星星都亮了
我愿变成童话里
你爱的那个天使
张开双手变成翅膀守护你
你要相信
相信我们会像童话故事里
幸福和快乐是结局
我要变成童话里
你爱的那个天使
张开双手变成翅膀守护你
你要相信
相信我们会像童话故事里
幸福和快乐是结局
我会变成童话里
你爱的那个天使
张开双手变成翅膀守护你
你要相信
相信我们会像童话故事里
幸福和快乐是结局
一起写我们的结局

《光阴的故事》歌词伴奏

d2e1c110a02a4ca0b3fcb554b1134ee1.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,Y1 = C6, Y2 = D6, Y3 = E6, Y4 = F6, Y5 = G6, Y6 = A6, Y7 = B6,_ = 0XFF,};void GY(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);//midiOutShortMsg(handle, 40 << 8 | 0xC0);int volume = 0x7f;int voice = 0x0;int sleep = 300; int tmp = 7;int gy[] ={ H1,H1,H1,H1,M7,M6,M5,M5,M5,M5,M4,M3,M4,M4,M4,M6,M5,M4,M3,_,_,M3,_,_,M5,M5,M5,M6,_,M5,M3,0,M3,M2,300,M3,_,0,M1,M3,300,H1,H1,M6,H1,_,0,M6,M5,300,M5,_,_,_,_,_,H1,H1,M6,H1,_,M6,M5,M5,0,M6,M5,300,M5,M1,M3,M5,M5,M6,M5,_,M3,M2,_,_,_,_,_,M5,M5,M5,M6,_,M5,M3,0,M3,M2,300,M3,_,0,M1,M3,300,H1,H1,M6,H1,_,0,M6,M5,300,M5,_,_,_,_,_,H1,H1,M6,H1,_,M6,M5,M5,M6,M5,M1,M3,H1,H1,H1,M6,M7,H1,H2,_,_,_,_,_,H2,H2,M5,H3,H2,H2,H1,H1,M6,H2,H1,H1,M5,M5,M3,M5,_,M6,M5,_,_,_,_,_,H2,H2,M5,H3,H2,H2,H1,H1,M6,H2,H1,H1,M5,M6,M5,H2,_,H3,H1,_,_,_,_,_,H1,H1,H1,M7,M6,M5,M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_,_,_,_,_,M5,M5,M5,M6,_,M5,M3,0,M3,M2,300,M3,_,0,M1,M3,300,H1,H1,M6,H1,_,0,M6,M5,300,M5,_,_,_,_,_,H1,H1,M6,H1,_,M6,M5,M5,M6,M5,M1,M3,H1,H1,H1,M6,M7,H1,H2,_,_,_,_,_,H2,H2,M5,H3,H2,H2,H1,H1,M6,H2,H1,H1,M5,M5,M3,M5,_,M6,M5,_,_,_,_,_,H2,H2,M5,H3,H2,H2,H1,H1,M6,H2,H1,H1,M5,M6,M5,H2,_,H3,H1,_,_,_,_,_,M5,M5,M5,M6,_,M5,M3,M3,M2,M3,M1,M3,H1,H1,M6,H1,_,M6,M5,_,_,_,_,_,H1,H1,M6,H1,_,M6,M5,M6,M5,M5,M1,M3,M5,M5,M6,M5,_,M3,M2,_,_,_,_,_,M5,M5,M5,M6,_,M5,M3,M3,M2,M3,M1,M3,H1,H1,M6,H1,_,M6,M5,_,_,_,_,_,H1,H1,M6,H1,_,M6,M5,M5,M6,M5,M1,M3,H1,H1,H1,M6,M7,H1,H2,_,_,_,_,_,H1,H1,H1,H1,M7,M6,M5,M5,M5,M5,M4,M3,M4,M4,M4,M6,M5,M4,M3,_,_,M3,_,_,};for (auto i : gy) {if (i == 0) { sleep = 150; continue; }if (i == 700) { Sleep(150); continue; }if (i == _) {Sleep(300);continue;}if (i == 300) { sleep = 300; continue; }//if (i == 1000) { tmp = -2;continue; }// if (i == 900) volume += 100;voice = (volume << 16) + ((i + tmp) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);//midiOutShortMsg(handle, 0x7BB0);}midiOutClose(handle);}int main(){GY();return 0;} 

《光阴的故事》歌词

春天的花开秋天的风以及冬天的落阳
忧郁的青春年少的我
曾经无知的这么想
风车在四季轮回的歌里它天天地流转
风花雪月的诗句里我在年年的成长
流水它带走光阴的故事改变了一个人
就在那多愁善感而初次等待的青春

发黄的相片古老的信
以及褪色的圣诞卡
年轻时为你写的歌恐怕你早已忘了吧
过去的誓言就象那课本里缤纷的书签
刻划着多少美丽的诗
可是终究是一阵烟
流水它带走光阴的故事改变了两个人
就在那多愁善感而初次流泪的青春

遥远的路程昨日的梦以及远去的笑声
再次的见面我们又历经了多少的路程
不再是旧日熟悉的我
有着旧日狂热的梦
也不是旧日熟悉的你有着依然的笑容
流水它带走光阴的故事改变了我们
就在那多愁善感而初次回忆的青春

​《千本樱》歌词伴奏

f74c3eade09a4e61b502f9773977f4f5.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")#include <thread>using namespace std;HMIDIOUT handle;enum Scale//音节参数 {Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice//简化表示 {X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,Y1 = C6, Y2 = D6, Y3 = E6, Y4 = F6, Y5 = G6, Y6 = A6, Y7 = B6,_ = 0XFF};//midiOutShortMsg(handle,0<<8 | 0xC1); //通道1的乐器为 大钢琴//midiOutShortMsg(handle,0<<8 | 0xC2); //通道2的乐器为 大钢琴//midiOutShortMsg(handle,0<<8 | 0xC3); //通道3的乐器为 大钢琴int ans = 1; int ans2 = 1000;int gao = 0x7f;int zhong = 0x40;int voice = 0x0;int sleep = 240;//规定240毫秒为半拍 int sta = 240;int stb = 240;void Th1(){int tmp = 0;int th1[] ={H2,700,H2,700,H1,H2,700,H2,700,H1,H2,700,H2,700,H1,H2,_,H4,_, H2,700,H2,700,H1,H2,700,H2,700,H1,//3H2,_,H6,_,H5,_,H6,_,H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300, H5,H6,0,H2,H1,H2,H1,300,H4,400,H3,H4,H3,300,H2,H1,//3H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300,H5,H6,Y1,Y4,0,Y3,Y4,Y3,Y2,300,Y1,H6,//2H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300,H4,400,H3,H4,H3,300,H2,H1,H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300,H5,H6,Y1,Y4,0,Y3,Y4,Y3,Y2,300,Y1,H6,//重复H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,300,H5,H6,0,H2,H1,H2,H1,00,H4,400,H3,H4,H3,300,H2,H1,H2,0,H1,H2,300,H4,0,H2,H4,300,H5,0,H5,H6,Y1,Y4,H6,Y1,300,Y4,400,Y3,Y4,Y3,300,Y2,Y1,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1), (H7 - 1), H5, (H3 + 1), (H7 - 1), (H7 - 1), (H7 - 1), H5, (H3 + 1),300,0, (H7 - 1), H4, H2, (H7 - 1), (H7 - 1), (H7 - 1), H4, H2, 0, (H7 - 1), H4, H2, (H7 - 1), (H7 - 1), (H7 - 1), H4, H2,0, H5, H3, H1, H5, H5, H5, H3, H1, H6, H3, H1, H6, H6, H6, H3, H1, 300,0, H6, H4, H2, H6, Y1, H6, H4, H2, H5, H4, H2, H6, Y4, Y2, H6, H4, 300,0, (H7 - 1), H4, H2, (H7 - 1), Y2, H7, H4, H2, (H7 - 1), H4, H2, (H7 - 1), Y4, Y3, Y2, H7, 300,0, Y2, (H7 + 1), H4, (H7 + 1), Y4, (H7 + 1), Y2, Y4, (Y7 + 1), Y4, Y2, H7, H7, H5, H2, M7, 300,H1, _, 0, M1, M3, M5, H1, 300, (H2 - 1), _, 0, (M2 - 1), M4, (M6 - 1), H2, 300,0, H5, H6, H4, H6, H5, H4, H3, H2, H3, H2, H1, H2, H2, H1, M6, M5, 300,0, M6, M5, M4, M6, M5, M4, M3, M4, 300, M2, _, _, _,M2, M3, M4, M6, 0, M5, M6, H2, H3, H4, H3, H2, H4,300,H5, H4, 400, Y1, H6, Y1, H6, Y1, H6, 300, Y1, _, _, _,H4, 0, H2, (M7 - 1), M4, M7, H2, H4, 300, H5, 0, H3, H1, M5, H1, H3, H5, 300,H6, 700, (H5 + 1), 700, 0, H6, H5, 300, H6, _, _, _,H4, _, H3, _, H2, _, H1, _,H1, 0, H1, H2, 300, M6, M5, M6, _, _, _,M6, H1, H2, _, H5, _, H3, _,H4, _, H3, H1, H2, _, _, _,H4, _, H3, _, H2, _, H1, _,H1, 0, H1, H2, 300, M6, M5, M6, _, M6, H1,H2, H2, _, H2, H4, _, H5, _,H3, _, _, _, _, _, H2, H4,H5, 700, H5, 700, H6, H6, _, _, H6,Y1, Y2, H5, H5, H4, H6, _, H2, H4,H5, 700, H5, 700, H6, H6, _, _, H6,(H7 - 1), H6, H5, H4, H4, _, H2, H4,H5, 700, H5, 700, H6, H6, _, _, H6,Y1, Y2, H5, H5, H4, H6, _, H2, H4,(H7 - 1), _, H6, _, H5, _, H4, _,H5, H6, H5, H6, H6, _, H3, H5,H6, 700, H6, 700, H7, H7, _, _, H7,Y2, Y3, H6, H5, H7, _, H3, H5,H6, 700, H6, 700, H7, H7, _, _, H7,Y1, H7, H6, H5, H5, _, H3, H5, H6, 700, H6, 700, H7, H7, _, _, H7,Y2, Y3, H6, H5, H7, _, H3, H5,Y1, _, H7, _, H6, _, H5, _,H6, H5, H7, Y2, Y3, _, H3, H5,H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, 0, H3, H2, H3, H2, 300, H5, 400, (H4 + 1), H5, (H4 + 1), 300, H3, H2,H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, Y2, Y5, 0, (Y4 + 1), Y5, (Y4 + 1), Y3, 300, Y2, H7,H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, 0, H3, H2, H3, H2, 300, H5, 400, (H4 + 1), H5, (H4 + 1), 300, H3, H2,H3, 0, H2, H3, 300, H5, 0, H3, H5, 300, H6, 0, H6, H7, Y2, Y5, H7, Y2, 300,Y5, 400, (Y4 + 1), Y5, (Y4 + 1), 300, Y3, Y2, Y3, _, Y3, Y5,500, H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, 0, H3, H2, H3, H2, 300, H5, 400, (H4 + 1), H5, (H4 + 1), 300, H3, H2,H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, Y2, Y5, 0, (Y4 + 1), Y5, (Y4 + 1), Y3, 300, Y2, H7,H6, H7, 0, H3, H2, H3, H2, 300, H6, H7, 0, H3, H2, H3, H2, 300,H6, H7, 0, H3, H2, H3, H2, 300, H5, 400, (H4 + 1), H5, (H4 + 1), 300, H3, H2,H6, 0, H7, Y2, Y3, Y2, H7, H6, 300,H3,H5,H6,H7,H3, 700, H3, 700, H2, H3, _, _, _,H3, 700, H3, 700, H2, H3, _, _, _,};for (auto i : th1){if (i == 0) { sleep = sta / 2; continue; } //换节奏为四分之一拍 if (i == 300) { sleep = sta; continue; } //换节奏为半拍 if (i == 700) { Sleep(sta / 2); continue; }//休眠四分之一拍 if (i == _) { Sleep(stb); continue; }//休眠半拍 if (i == 400) { sleep = sta / 3; continue; } //换节奏为六分之一拍if (i == 500) { tmp = 12; continue; }//升高八度if (i == 600) { tmp = 0; continue; }//还原if (i == 800) { sleep = (sta * 2) / 3; continue; }voice = (gao << 16) + ((i + tmp) << 8) + 0x90;//赋值语句,决定音量,音调和音色;  midiOutShortMsg(handle, voice);cout << ans << endl; ans++;Sleep(sleep);}midiOutClose(handle);}void Th2(){int tmp = 0;int th2[] ={M6,700,M6,700,M5,M6,700,M6,700,M5,M6,700,M6,700,M5,M6,_,H1,_, M6,700,M6,700,M5,M6,700,M6,700,M5,M6,_,H4,_,H3,_,H4,750,};for (auto i : th2){if (i == 0) { sleep = sta / 2; continue; } //换节奏为四分之一拍 if (i == 300) { sleep = sta; continue; } //换节奏为半拍 if (i == 700) { Sleep(sta / 2); continue; }//休眠四分之一拍 if (i == _) { Sleep(stb); continue; }//休眠半拍 if (i == 750)Sleep(6000000);voice = (gao << 16) + ((i + tmp) << 8) + 0x91;//赋值语句,决定音量,音调和音色;  midiOutShortMsg(handle, voice);// cout << ans2 << endl;ans++;Sleep(sleep);}midiOutClose(handle);}void Th3(){int tmp = 0;int th3[] ={M2,700,M2,700,M2,M2,700,M2,700,M2,M2,700,M2,700,M2, M2,700,M2,700,M2,M2,700,M2,700,M2,M2,700,M2,700,M2,M2,_,M2,_,M1,_,M1,_,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,750,};for (auto i : th3){if (i == 0) { sleep = sta / 2; continue; } //换节奏为四分之一拍 if (i == 300) { sleep = sta; continue; } //换节奏为半拍 if (i == 700) { Sleep(sta / 2); continue; }//休眠四分之一拍 if (i == _) { Sleep(stb); continue; }//休眠半拍 if (i == 750)Sleep(6000000);voice = (zhong << 16) + ((i + tmp) << 8) + 0x92;//赋值语句,决定音量,音调和音色;  midiOutShortMsg(handle, voice);//cout << ans << endl;ans++;Sleep(sleep);}midiOutClose(handle);}void Th4(){int tmp = 0;int th4[] ={L6,700,L6,700,L6,L6,700,L6,700,L6,L6,700,L6,700,L6,L6,700,L6,700,L6,L6,700,L6,700,L6,L6,700,L6,700,L6,L6,_,L6,_,L5,_,L5,_,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1, _,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1, _,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,//重复_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,_,(L7 - 1),_,(L7 - 1),_,M1,_,M1,_,M2,_,M2,_,M2,_,M2,750,};for (auto i : th4){if (i == 0) { sleep = sta / 2; continue; } //换节奏为四分之一拍 if (i == 300) { sleep = sta; continue; } //换节奏为半拍 if (i == 700) { Sleep(sta / 2); continue; }//休眠四分之一拍 if (i == _) { Sleep(stb);continue; }//休眠半拍 if (i == 750)Sleep(6000000);voice = (zhong << 16) + ((i + tmp) << 8) + 0x93;//赋值语句,决定音量,音调和音色;  midiOutShortMsg(handle, voice);//cout << ans << endl;ans++;Sleep(sleep);}midiOutClose(handle);}void Th5(){int tmp = 0;int th5[] ={L2,700,L2,700,L2,L2,700,L2,700,L2,L2,700,L2,700,L2, L2,700,L2,700,L2,L2,700,L2,700,L2,L2,700,L2,700,L2,L2,_,L2,_,L1,_,L1,_,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,//重复(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,(X7 - 1),L4,(X7 - 1),L4,L1,L5,L1,L5,L2,L6,L2,L6,L2,L6,L2,L6,750,};for (auto i : th5){if (i == 0) { sleep = sta / 2; continue; } //换节奏为四分之一拍 if (i == 300) { sleep = sta; continue; } //换节奏为半拍 if (i == 700) { Sleep(sta / 2); continue; }//休眠四分之一拍 if (i == _) { Sleep(stb); continue; }//休眠半拍 if (i == 750)Sleep(6000000);voice = (zhong << 16) + ((i + tmp) << 8) + 0x94;//赋值语句,决定音量,音调和音色;  midiOutShortMsg(handle, voice);//cout << ans << endl;ans++;Sleep(sleep);}midiOutClose(handle);}int main(){midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);thread t1(Th1);t1.detach();thread t2(Th2);t2.detach();thread t3(Th3);t3.detach();thread t4(Th4);t4.detach();thread t5(Th5);t5.detach();while (1);return 0;} 

《千本樱》中文歌词

以大胆无畏的名义

坚持推行洋化革命

光明磊落民主时代

反战国家

骑着前行的二轮车

日之丸印于上转动

魑魅魍魉恶灵退散

疾驰穿过遏制环状线

东奔西走不算什么

少年少女战国无双啊

跟随着那浮世浪

金色千本樱

融入了夜色里

连你所说的话

都传达不到啊

此处无尽盛宴

于钢铁囚笼中

自那断头台上

回首曾经吧

在那三千世界

红尘黄泉之间

连那哀叹之歌

都无法听到呐

彼端青蓝天空

遥远不可触及

就用那光线枪

射穿阻碍吧

看来似乎身经百战

其实确是将校那人

于人群中娇媚微笑

花魁道中

不管是这人或那人

让大家都集中过来

跟随着圣者的前进

一二三四

从出家的僧人旁穿过

安乐净土驱凶辟邪

最后一幕定是大团圆

在那掌声响起时

《平凡之路》歌词伴奏

1a10b881603c4c378cc7377adf193f2e.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,LOW_SPEED = 500, MIDDLE_SPEED = 400, HIGH_SPEED = 300,_ = 0XFF};void Trivial(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);int volume = 0x7f;int voice = 0x0;int sleep = 300;int trivial[] ={MIDDLE_SPEED, X6,L6,M3,M1,M1,L4,M4,M1,X1,L5,M3,M1,L7,M1,M2,L5,X6,L6,M3,M1,M1,L4,M4,M1,X1,L5,M3,M1,L7,M1,M2,L5,_,_,400,M3,M3,0,M6,M6,_,_,400,M1,M2,0,M3,M3,_,400,_,_,_,_,_,_,_,_,M3,M3,0,M6,M6,_,_,400,_,M5,M5,M4,M3,_,_,_,_,_,_,_,_,M3,M3,M6,_,M1,M2,M3,_,_,_,_,_,_,_,M3,M3,M1,M4,0,M4,M4,_,400,M3,M1,_,_,_,400,M3,M3,0,M6,M6,_,_,400,M1,M2,0,M3,M3,_,400,_,_,_,_,_,_,_,_,M3,M3,0,M6,M6,_,_,400,_,M5,M5,M4,M3,_,_,_,_,_,_,_,_,M3,M3,M6,_,M1,M2,M3,_,_,_,_,_,_,_,M3,M3,M1,M4,0,M4,M4,_,400,M3,M1,_,_,_,_,_,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M5,0,M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1,0,H1,H2,_,M5,300,M6,M7,H1,0,M7,H1,_,H3,700,H6,700,H5,_,H4,H3,_,H3,H2,_,M6,700,M7,H1,_,700,H1,0,H2,H1,_,H1,M7,300,H1,0,H2,_,H1,700,M7,H1,_,_,_,400,M3,M3,0,M6,M6,_,_,400,M1,M2,0,M3,M3,_,400,_,_,_,_,_,_,_,_,M3,M3,0,M6,M6,_,_,400,_,M5,M5,M4,M3,_,_,_,_,_,_,_,_,M3,M3,M6,_,M1,M2,M3,_,_,_,_,_,_,_,M3,M3,M1,0,M4,300,M4,M4,_,400,M3,M1,_,_,_,_,_,};for (auto i : trivial) {if (i == LOW_SPEED || i == HIGH_SPEED || i == MIDDLE_SPEED) {sleep = i;//Sleep(i/2);continue;}if (i == 0) { sleep = 150; continue; }if (i == 700) { Sleep(180); continue; }if (i == _) {Sleep(300);continue;}voice = (volume << 16) + (i << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);}midiOutClose(handle);}int main(){Trivial();return 0;} 

《平凡之路》歌词

徘徊着的
在路上的
你要走吗
vIa vIa
易碎的骄傲着
那也曾是我的模样
沸腾着的
不安着的
你要去哪儿vIa vIa
谜一样的沉着的
故事你真的在听吗
我曾经跨过山河大海
也穿过人山人海
我曾经拥有着的一切
转眼都飘散如烟
我曾经失落失望
失掉所有方向
直到看见平凡
才是唯一的答案
当你仍然还在幻想
你的明天
vIa vIa
他会好吗还是更烂
对我而言是另一天
我曾经毁了我的一切
只想永远地离开
我曾经堕入无底黑暗
想挣扎@R_666_2911@
我曾经像你像他
像那野草野花
绝望着也渴望着
也哭也笑地平凡着
向前走
就这么走
就算你被给过什么
向前走
就这么走
就算你被夺走什么
向前走
就这么走
就算你会错过什么
向前走就这么走
就算你会
我曾经跨过山河大海
也穿过人山人海
我曾经拥有着的一切
转眼都飘散如烟
我曾经失落失望
失掉所有方向
直到看见平凡
才是唯一的答案
我曾经毁了我的一切
只想永远地离开
我曾经堕入无边黑暗
想挣扎@R_666_2911@
我曾经像你像他
像那野草野花
绝望着也渴望着
也哭也笑平凡着
我曾经跨过山河大海
也穿过人山人海
我曾经问了整个世界
从来没得到答案
我不过像你像他
像那野草野花
冥冥中
这是我唯一要走的路啊
时间如烟如此这般
明天已在
vIa vIa
风吹过的路依然远
你的故事讲到哪儿了

《孤勇者》歌词伴奏

c377e401f1ab4b07be7e1fae3c981436.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,LOW_SPEED = 500, MIDDLE_SPEED = 400, HIGH_SPEED = 300,_ = 0XFF};void GYZ(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);//midiOutShortMsg(handle,32<<8+0xC0);int volume = 0x7f;int voice = 0x0;int sleep = 350;int gyz[] ={M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M2,L7,M1,L6,M3,_,_,_,_,_,0,700,M1,M2,M1,300,M3,_,_,_,_,700,0,M1,M2,M1,M2,M3,300,L6,700,0,M1,300,L6,700,0,M1,300,L6,700,0,M1,300,M2,M1,L7,_,_,_,_,_,_,_,M3,_,_,_,_,_,0,700,M1,M2,M1,300,M3,_,_,_,_,700,0,M1,M2,M1,M2,M3,300,L6,700,0,M1,300,L6,700,0,M1,300,L6,700,0,M1,300,M3,M2,L7,_,_,_,_,_,_,_,0,L6,M1,300,M6,0,700,M6,M6,M5,300,M6,0,M6,M5,M6,M5,M6,M5,700,300,M3,700,_,_,_,_,_,0,L6,M1,300,M6,0,M6,M6,M5,M6,M5,300,M7,700,0,M7,M7,M6,300,M7,0,700,300,M6,0,M3,300,_,_,_,_,_,0,M3,M5,M3,300,M2,700,0,M3,300,M2,700,0,M3,300,M2,700,0,M3,300,0,M5,M3,M5,M3,300,M2,700,0,M3,300,M2,700,0,M3,300,M2,_,_,0,M1,M2,300,M3,L6,M1,M3,M2,700,0,M3,M2,700,300,M1,L6,_,_,_,_,_,_,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,H5,H3,700,0,H5,300,H3,700,0,H5,300,0,H3,H5,H6,H3,300,H5,H5,H3,700,0,H5,300,H3,700,0,H5,H3,H5,H6,H3,300,H5,0,H5,H5,H3,700,H2,300,H2,0,H1,H3,_,300,H2,H2,0,H1,300,M6,700,_,_,_,_,_,_,0,H5,H5,H3,700,300,H2,H2,0,H1,H3,_,300,H2,H2,0,H1,M6,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_, _,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,0,M6,M5,300,M6,700,0,M5,M6,M5,M6,M5,300,M6,0,M6,M5,M6,M5,M6,M5,700,M3,700,M3,_,_,_,_,0,M6,M5,300,M6,700,0,M5,M6,M5,M6,M5,300,M7,700,0,M7,M7,M6,M7,M6,700,300,M3,700,_,_,700,0,M3,M5,M3,300,M2,700,0,M3,300,M2,700,0,M3,300,M2,700,0,M3,M5,M3,M5,M3,300,M2,700,0,M3,300,M2,700,0,M3,300,M2,_,_,0,M1,M2,300,M3,M6,H1,H3,H2,700,0,H3,300,H2,700,300,H1,M6,_,_,_,_,_,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,H5,H3,700,0,H5,300,H3,700,0,H5,300,0,H3,H5,H6,H3,300,H5,H5,H3,700,0,H5,300,H3,700,0,H5,H3,H5,H6,H3,300,H5,0,H5,H5,H3,700,H2,300,H2,0,H1,H3,_,300,H2,H2,0,H1,300,M6,700,_,_,_,_,_,_,0,H5,H5,H3,700,300,H2,H2,0,H1,H3,_,300,H2,H2,0,H1,M6,_,_,_,_,_,_,_,L6,M1,M3,M7,_,M7,0,M7,M7,300,M6,_,_,_,_,_,_,_,_,L6,M1,M3,M7,_,M7,0,M7,M7,300,M6,_,_,_,_,_,_,_,_,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,0,M6,M7,H1,H2,M7,H1,300,H1,0,H1,M7,H1,H2,M7,H1,300,H1,0,H1,H2,H3,H2,H3,H2,300,H3,0,H3,H2,300,H3,H5,H3,H5,H3,700,0,H5,300,H3,700,0,H5,300,0,H3,H5,H6,H3,300,H5,H5,H3,700,0,H5,300,H3,700,0,H5,H3,H5,H6,H3,300,H5,0,H5,H5,H3,700,H2,300,H2,0,H1,H3,_,300,H2,H2,0,H1,300,M6,700,_,_,_,_,_,_,0,H5,H5,H3,700,300,H2,H2,0,H1,H3,_,300,H2,H2,0,H1,M6,_,_,_,_,_,_,_,};for (auto i : gyz) {if (i == LOW_SPEED || i == HIGH_SPEED || i == MIDDLE_SPEED) {sleep = i;//Sleep(i/2);continue;}if (i == 0) { sleep = 175; continue; }if (i == 700) { Sleep(175); continue; }if (i == _) {Sleep(350);continue;}// if (i == 900) volume += 100;voice = (volume << 16) + ((i) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);}midiOutClose(handle);}int main(){GYZ();return 0;}

《孤勇者》歌词

都是勇敢的
你额头的伤口你的不同你犯的错
都不必隐藏
你破旧的玩偶你的面具你的自我
他们说要带着光驯服每一头怪兽
他们说要缝好你的伤没有人爱小丑
为何孤独不可光荣
人只有不完美值得歌颂
谁说污泥满身的不算英雄
爱你孤身走暗巷
爱你不跪的模样
爱你对峙过绝望
不肯哭一场
爱你破烂的衣裳
却敢堵命运的枪
爱你和我那么像
缺口都一样
去吗 配吗 这褴褛的披风
战吗 战啊 以最卑微的梦
致那黑夜中的呜咽与怒吼
谁说站在光里的才算英雄
他们说要戒了你的狂
就像擦掉了污垢
他们说要顺台阶而上而代价是低头
那就让我不可乘风
你一样骄傲着那种孤勇
谁说对弈平凡的不算英雄
爱你孤身走暗巷
爱你不跪的模样
爱你对峙过绝望
不肯哭一场
爱你破烂的衣裳
却敢堵命运的枪
爱你和我那么像
缺口都一样
去吗 配吗 这褴褛的披风
战吗 战啊 以最卑微的梦
致那黑夜中的呜咽与怒吼
谁说站在光里的才算英雄
你的斑驳与众不同
你的沉默震耳欲聋
You Are The Hero
爱你孤身走暗巷
爱你不跪的模样
爱你对峙过绝望
不肯哭一场 (You Are The Hero)
爱你来自于蛮荒
一生不借谁的光
你将造你的城邦
在废墟之上
去吗 去啊 以最卑微的梦
战吗 战啊 以最孤高的梦
致那黑夜中的呜咽与怒吼
谁说站在光里的才算英雄

《海阔天空》歌词伴奏

c379422d2c3e4d8cb69987962ee53b8e.png

#include <iostream>#include <Windows.h>#pragma comment(lib,"winmm.lib")using namespace std;enum Scale{Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100,D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89,E6 = 88, D6s = 87, D6 = 86, C6s = 85, C6 = 84, B5 = 83, A5s = 82, A5 = 81, G5s = 80, G5 = 79, F5s = 78,F5 = 77, E5 = 76, D5s = 75, D5 = 74, C5s = 73, C5 = 72, B4 = 71, A4s = 70, A4 = 69, G4s = 68, G4 = 67,F4s = 66, F4 = 65, E4 = 64, D4s = 63, D4 = 62, C4s = 61, C4 = 60, B3 = 59, A3s = 58, A3 = 57, G3s = 56,G3 = 55, F3s = 54, F3 = 53, E3 = 52, D3s = 51, D3 = 50, C3s = 49, C3 = 48, B2 = 47, A2s = 46, A2 = 45,G2s = 44, G2 = 43, F2s = 42, F2 = 41, E2 = 40, D2s = 39, D2 = 38, C2s = 37, C2 = 36, B1 = 35, A1s = 34,A1 = 33, G1s = 32, G1 = 31, F1s = 30, F1 = 29, E1 = 28, D1s = 27, D1 = 26, C1s = 25, C1 = 24, B0 = 23,A0s = 22, A0 = 21};enum Voice{X1 = C2, X2 = D2, X3 = E2, X4 = F2, X5 = G2, X6 = A2, X7 = B2,L1 = C3, L2 = D3, L3 = E3, L4 = F3, L5 = G3, L6 = A3, L7 = B3,M1 = C4, M2 = D4, M3 = E4, M4 = F4, M5 = G4, M6 = A4, M7 = B4,H1 = C5, H2 = D5, H3 = E5, H4 = F5, H5 = G5, H6 = A5, H7 = B5,LOW_SPEED = 500, MIDDLE_SPEED = 400, HIGH_SPEED = 300,_ = 0XFF};void HKTK(){HMIDIOUT handle;midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);//midiOutShortMsg(handle, 34 << 8 | 0xC0);int volume = 0x7f;int voice = 0x0;int sleep = 400; int tmp = 0;int hktk[] ={X4,(H7 - 1),_,H6,_,_,_, H5,H4,H3,H2,_,(L7 - 1),M1,M4,(X7 - 1),_,_,_,_, (L7 - 1),M1,M4,(X7 - 1),_,_,_,_,(L7 - 1),M1,M5,M4,_,_,_,_,_,M4,_,M3,_,_,_,1000,M3,0,M2,700,300,M1,_,_,_,_,_,_,0,M3,M4,300,M5,0,M5,M5,300,_,M6,700,M5,_,_,0,M6,M7,300,H1,0,H1,300,H1,700,H1,H1,M7,0,M6,300,M5,700,0,M6,300,_,_,_,_,_,M6,M5,M5,_,_,M5,M3,_,M3,M4,M3,M2,M2,0,M3,M2,300,_,_,M3,0,M2,M2,_,300,M1,M1,0,M1,M1,300,_,_,M2,M1,M1,_,_,_,_,_,_,1000,M3,0,M2,700,300,M1,_,_,_,_,_,_,0,M3,M4,300,M5,0,M5,M5,300,_,M6,700,M5,_,_,0,M6,M7,300,H1,0,H1,300,H1,700,H1,H1,M7,0,M6,300,M5,700,0,M6,300,_,_,_,_,_,M6,M5,M5,_,_,M5,M3,_,M3,M4,M3,M2,M2,0,M3,M2,300,_,_,M3,0,M2,M2,_,300,M1,M1,0,M1,M1,300,_,_,M2,M1,M1,_,_,_,_,_,_,_,0,M6,M7,300,H1,0,H1,H1,_,300,H1,M7,M6,0,M5,300,M5,700,M5,_,0,M3,300,M2,700,M1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,_,300,H2,0,H1,300,H2,700,H3,_,_,_,H3,0,H2,300,H1,700,_,0,H1,H1,300,H1,0,H1,H2,300,_,_,_,0,M5,M5,300,H3,_,H2,_,H1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,0,H2,H2,H1,300,M7,700,H1,_,_,_,_,_,_,_,1000,M3,0,M2,700,300,M1,_,_,_,_,_,_,0,M3,M4,300,M5,0,M5,M5,300,_,M6,700,M5,_,_,0,M6,M7,300,H1,0,H1,300,H1,700,H1,H1,M7,0,M6,300,M5,700,0,M6,300,_,_,_,_,_,M6,M5,M5,_,_,M5,M3,_,M3,M4,M3,M2,M2,0,M3,M2,300,_,_,M3,0,M2,M2,_,300,M1,M1,0,M1,M1,300,_,_,M2,M1,M1,_,_,_,_,_,_,_,0,M6,M7,300,H1,0,H1,H1,_,300,H1,M7,M6,0,M5,300,M5,700,M5,_,0,M3,300,M2,700,M1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,_,300,H2,0,H1,300,H2,700,H3,_,_,_,H3,0,H2,300,H1,700,_,0,H1,H1,300,H1,0,H1,H2,300,_,_,_,0,M5,M5,300,H3,_,H2,_,H1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,0,H2,H2,H1,300,M7,700,H1,_,_,_,_,_,_,_,M6,M6,M7,M6,M7,H1,_,_,_,0,H1,H1,300,H2,H1,H2,H3,_,_,_,H3,H2,_,_,0,H2,H3,300,H1,_,_,_,_,_,_,0,M6,M7,300,H1,0,H1,H1,_,300,H1,M7,M6,0,M5,300,M5,700,M5,_,0,M3,300,M2,700,M1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,_,300,H2,0,H1,300,H2,700,H3,_,_,_,H3,0,H2,300,H1,700,_,0,H1,H1,300,H1,0,H1,H2,300,_,_,_,0,M5,M5,300,H3,_,H2,_,H1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,0,H2,H2,H1,300,M7,700,H1,_,_,_,_,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,_,_,0,M5,M5,300,H3,_,H2,_,H1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,0,H2,H2,H1,300,M7,700,H1,_,_,_,_,_,_,_,_,0,M6,M7,300,H1,0,H1,H1,_,300,H1,M7,M6,0,M5,300,M5,700,M5,_,0,M3,300,M2,700,M1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,_,300,H2,0,H1,300,H2,700,H3,_,_,_,H3,0,H2,300,H1,700,_,0,H1,H1,300,H1,0,H1,H2,300,_,_,_,0,M5,M5,300,H3,_,H2,_,H1,_,_,_,_,0,H1,H1,300,H1,0,H1,H2,300,_,0,H2,H2,H1,300,M7,700,H1,_,_,_,_,_,_,_,};for (auto i : hktk) {if (i == LOW_SPEED || i == HIGH_SPEED || i == MIDDLE_SPEED) {sleep = i;//Sleep(i/2);continue;}if (i == 0) { sleep = 200; continue; }if (i == 700) { Sleep(200); continue; }if (i == _) {Sleep(400);continue;}if (i == 1000) { tmp = +5; continue; }// if (i == 900) volume += 100;voice = (volume << 16) + ((i + tmp) << 8) + 0x90;midiOutShortMsg(handle, voice);cout << voice << endl;Sleep(sleep);}midiOutClose(handle);}int main(){HKTK();return 0;} 

《海阔天空》歌词

 

今天我, 寒夜里看雪飘过

怀着冷却了的心窝漂远方

风雨里追赶, 雾里分不清影踪

天空海阔你与我

可会变(谁没在变)

多少次, 迎着冷眼与嘲笑

从没有放弃过心中的理想

一刹那恍惚, 若有所失的感觉

不知不觉已变淡

心里爱(谁明白我)

原谅我这一生不羁放纵爱自由

也会怕有一天会跌倒

背弃了理想 ,谁人都可以

哪会怕有一天只你共我

今天我 ,寒夜里看雪飘过

怀着冷却了的心窝漂远方

风雨里追赶, 雾里分不清影踪

天空海阔你与我

可会变(谁没在变)

原谅我这一生不羁放纵爱自由

也会怕有一天会跌倒

背弃了理想 ,谁人都可以

哪会怕有一天只你共我

仍然自由自我 ,永远高唱我歌

走遍千里,原谅我这一生不羁放纵爱自由

也会怕有一天会跌倒

背弃了理想 ,谁人都可以

哪会怕有一天只你共我

背弃了理想 谁人都可以

哪会怕有一天只你共我

原谅我这一生不羁放纵爱自由

也会怕有一天会跌倒

背弃了理想 谁人都可以

哪会怕有一天只你共我

 

 

这篇关于《孤勇者》等热门歌曲伴奏--源代码的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/486314

相关文章

AI Toolkit + H100 GPU,一小时内微调最新热门文生图模型 FLUX

上个月,FLUX 席卷了互联网,这并非没有原因。他们声称优于 DALLE 3、Ideogram 和 Stable Diffusion 3 等模型,而这一点已被证明是有依据的。随着越来越多的流行图像生成工具(如 Stable Diffusion Web UI Forge 和 ComyUI)开始支持这些模型,FLUX 在 Stable Diffusion 领域的扩展将会持续下去。 自 FLU

SWAP作物生长模型安装教程、数据制备、敏感性分析、气候变化影响、R模型敏感性分析与贝叶斯优化、Fortran源代码分析、气候数据降尺度与变化影响分析

查看原文>>>全流程SWAP农业模型数据制备、敏感性分析及气候变化影响实践技术应用 SWAP模型是由荷兰瓦赫宁根大学开发的先进农作物模型,它综合考虑了土壤-水分-大气以及植被间的相互作用;是一种描述作物生长过程的一种机理性作物生长模型。它不但运用Richard方程,使其能够精确的模拟土壤中水分的运动,而且耦合了WOFOST作物模型使作物的生长描述更为科学。 本文让更多的科研人员和农业工作者

运营版开源代码 多语言跨境商城 跨境电商平台

默认中英双语 后台带翻译接口 支持133种语言自动翻译 支持多商户联盟 一键部署版本 伪静态+后台登陆后缀 源码下载:https://download.csdn.net/download/m0_66047725/89722389 更多资源下载:关注我。

深度评测热门翻译工具,携手你的翻译得力助手

随着互联网技术的飞速发展,全球化交流日益频繁,跨语言沟通的需求也随之激增。对于外语水平有限的朋友来说,翻译器是一个必不可少的工具。今天我就分享几款我用的翻译器吧。 1.福晰在线翻译  链接直达>>https://fanyi.pdf365.cn/doc  该网站以其高度的专业性著称,专为翻译需求而精心打造。它不仅支持用户粘贴部分文字进行即时翻译,更贴心地提供了整份PDF文档的导入翻译功能,极大

容器第四课,JDK源代码分析,自己实现LinkedList,双向链表的概念_节点定义

package com.pkushutong.Collection;public class Test03 {private Test03_01 first; //第一个节点private Test03_01 last; //最后一个节点private int size;public void add(Object obj){Test03_01 t = new Test03_01();if(fi

【UE4源代码观察】观察Core模块

话题 Core模块是整个引擎中最核心的模块,在之前的博客【UE4源代码观察】可视化所有模块的依赖情况中有统计,它被983个模块引用,恐怕除了第三方的模块外基本所有模块都有引用。我想首先观察其中的内容,然后再做测试:将Core模块拷贝到之前【UE4源代码观察】手动建立一个使用UBT进行编译的空白工程建立的空白工程中,看能否将它成功编译,理论上讲,“核心”不应再依赖太多其他的东西,所以我应该不会再需

【UE4源代码观察】在空白工程中测试跨模块调用函数

目的 在之前的博客【UE4源代码观察】手动建立一个使用UBT进行编译的空白工程中,成功让UBT工作起来了。现在我想要测试编译出的多个模块之间是否能互相调用,我记录下测试的过程。最终工程见 工程GIT链接。 实践 第一部分 首先仿照TestA模块建立TestB模块。 在TestB.h文件中声明了一个函数 int TestBFunc(int x, int y); 并在TestB.cpp中

【UE4源代码观察】观察FEngineLoop中各函数的调用顺序

当启动编辑器时,Launch模块是启动模块,在Windows平台中 LaunchWindows.cpp 的 WinMain函数是入口,而 FEngineLoop 管理了程序的初始化与主循环。他的成员函数如下: public:/*** Pre-Initialize the main loop, and generates the commandline from standard ArgC/Arg

【UE4源代码观察】手动建立一个使用UBT进行编译的空白工程

我想观察UE4是怎么编译的,于是查阅官方文档,了解到UE4有一套自己的编译工具:UnrealBuildTool,简称UBT。关于UBT的官方文档参阅:虚幻编译工具。我想尝试自己手动建立一个使用UBT进行编译的空白工程。不过首先,先了解下UBT的编译流程中一些文件所扮演的角色 UBT的编译流程中一些文件所扮演的角色 模块 每个模块都由一个 .build.cs 文件声明,它存储在 Source

【UE4源代码观察】可视化所有模块的依赖情况

思路 UE4引擎的模块非常多,我想要观察他们的依赖情况。于是我写了程序读取所有模块的.Build.cs文件,记录每个模块依赖的模块(当前是看PublicDependencyModuleNames和PrivateDependencyModuleNames。但后来经评论提醒我发现AddEngineThirdPartyPrivateStaticDependencies也应该视作是“依赖”但没统计,后续