热门歌曲的伴奏--源代码

news2024/11/24 9:55:05

目录

使用方法

《起风了》歌词伴奏

《起风了》歌词

《生日歌》歌词伴奏

《生日歌》歌词 

《童话》歌词伴奏

《童话》歌词

《光阴的故事》歌词伴奏

《光阴的故事》歌词

​《千本樱》歌词伴奏

《千本樱》中文歌词

《平凡之路》歌词伴奏

《平凡之路》歌词

《孤勇者》歌词伴奏

《孤勇者》歌词

《海阔天空》歌词伴奏

《海阔天空》歌词


使用方法

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

《起风了》歌词伴奏

#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;
}

《起风了》歌词

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

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

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

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

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

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

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

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

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

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

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

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

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

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

《生日歌》歌词伴奏

#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
祝你生日快乐
祝你生日快乐
祝你天天快乐
祝你永远快乐
祝你生日快乐
祝你生日快乐
祝你天天快乐
祝你永远快乐

《童话》歌词伴奏

#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;

} 

《童话》歌词

-- 光良

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

《光阴的故事》歌词伴奏

#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,M5,M5,M5,M5,M4,M3,M4,M4,M4,M6,M5,M4,M3,_,_,M3,_,_,



	  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,_,_,_,_,_,

	  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,_,_,

	  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,_,_,_,_,_,

	  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;

} 

《光阴的故事》歌词

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

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

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

​《千本樱》歌词伴奏

#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,//3

	  H2,_,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,//3

	  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,//2

	  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,

	  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,Y2,_,Y2,Y4,

	500,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,

	  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,300,H4,400,H3,H4,H3,300,H2,H1,

	  H5,0,H6,Y1,Y2,Y1,H6,H5,300,H2,H4,H5,H6,

	  H2,700,H2,700,H1,H2,_,_,_,600,





	H2,_,H2,700,0,H1,300,H2,H4,H4,H5,

	H2,_,H2,700,0,H1,300,H2,H1,M6,H1,

	H2,_,H2,700,0,H1,300,H2,H4,H5,H6,

	H6,_,800,H5,H6,H5,300,H4,_,H2,_,

	H2,_,H2,700,0,H1,300,H2,H4,H4,H5,

	H2,_,H2,700,0,H1,300,H2,H1,H1,M6,

	H2,_,H2,700,0,H1,300,H1,H2,H4,H5,

	H6,_,800,H5,H6,H5,300,H4,_,H2,_,

	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,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,H4,H6,_,H2,H4,

	(H7 - 1),_,H6,_,H5,_,H4,_,

	H5,H6,H3,H1,H2,_,H2,H4,

	H5,700,H5,700,H6,H6,_,_,H6,

	Y1,Y2,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,H4,H6,_,H2,H4,

	(H7 - 1),_,H6,_,H5,_,H4,_,

	H5,H4,H6,Y1,Y2,_,_,_,



	 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,//3

	  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,//2

	  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,

	  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,Y2,_,Y2,Y4,

	500,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,

	  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,300,H4,400,H3,H4,H3,300,H2,H1,

	  H5,0,H6,Y1,Y2,Y1,H6,H5,300,H2,H4,H5,H6,

	  H2,700,H2,700,H1,H2,_,_,_,600,





	H2,_,H2,700,0,H1,300,H2,H4,H4,H5,

	H2,_,H2,700,0,H1,300,H2,H1,M6,H1,

	H2,_,H2,700,0,H1,300,H2,H4,H5,H6,

	H6,_,800,H5,H6,H5,300,H4,_,H2,_,

	H2,_,H2,700,0,H1,300,H2,H4,H4,H5,

	H2,_,H2,700,0,H1,300,H2,H1,H1,M6,

	H2,_,H2,700,0,H1,300,H1,H2,H4,H5,

	H6,_,800,H5,H6,H5,300,H4,_,H2,_,

	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,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,H4,H6,_,H2,H4,

	(H7 - 1),_,H6,_,H5,_,H4,_,

	H5,H6,H3,H1,H2,_,H2,H4,

	H5,700,H5,700,H6,H6,_,_,H6,

	Y1,Y2,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,H4,H6,_,H2,H4,

	(H7 - 1),_,H6,_,H5,_,H4,_,

	H5,H4,H6,Y1,Y2,_,_,_,





	Y2,Y2,Y2,Y2,Y2,Y2,0,Y2,Y1,300,H6,

	H5,H5,H5,H5,H5,H5,0,H5,H4,300,H2,

	Y2,Y2,Y2,Y2,Y2,Y2,0,Y2,Y1,300,H6,

	M5,0,M6,M5,M6,H1,H2,H4,H6,Y1,Y2,Y4,300,Y3,0,H2,H4,300,

	0,H6,H4,H2,H6,H6,H6,H4,H2,H6,H4,H2,H6,H6,H6,H4,H2,300,

	0,(H7 - 1),H5,(H3 + 1),(H7 - 1), (H7 - 1), (H7 - 1),H5,(H3 + 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;

} 

《千本樱》中文歌词

以大胆无畏的名义

坚持推行洋化革命

光明磊落民主时代

反战国家

骑着前行的二轮车

日之丸印于上转动

魑魅魍魉恶灵退散

疾驰穿过遏制环状线

东奔西走不算什么

少年少女战国无双啊

跟随着那浮世浪

金色千本樱

融入了夜色里

连你所说的话

都传达不到啊

此处无尽盛宴

于钢铁囚笼中

自那断头台上

回首曾经吧

在那三千世界

红尘黄泉之间

连那哀叹之歌

都无法听到呐

彼端青蓝天空

遥远不可触及

就用那光线枪

射穿阻碍吧

看来似乎身经百战

其实确是将校那人

于人群中娇媚微笑

花魁道中

不管是这人或那人

让大家都集中过来

跟随着圣者的前进

一二三四

从出家的僧人旁穿过

安乐净土驱凶辟邪

最后一幕定是大团圆

在那掌声响起时

《平凡之路》歌词伴奏

#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,M4,M3,_,300,M3,M3,0,M3,M2,_,300,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M6,0,H1,H1,_,300,H1,H1,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,M4,0,M4,M4,_,400,M3,M1,_,_,_,_,_,

	   M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M5,0,M4,M3,_,300,M3,M3,0,M3,M2,_,300,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M6,0,H1,H1,_,300,H1,H1,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,_,_,_,

	   M5,0,L7,M1,_,_,L7,300,M1,0,L7,M1,300,L7,L5,M5,0,L7,M1,_,L7,300,M7,0,L6,L7,300,M1,L5,M5,0,L7,M1,_,_,L7,300,M1,0,L7,M1,300,M2,L5,M5,0,L7,M1,_,L7,L7,M1,300,M2,M2,_,

	   M5,0,L7,M1,_,_,L7,300,M1,0,L7,M1,300,L7,L5,M5,0,M5,M1,300,M1,700,0,M1,300,L7,0,L6,L7,300,M1,L5,M5,0,L7,M1,_,L7,300,M1,0,M2,M3,300,M4,M3,M1,0,L5,M1,300,M2,0,M1,M2,M2,M3,300,M4,M3,_,

	   M5,0,L7,M1,_,_,L7,300,M1,0,L7,M1,300,L7,L5,M5,0,L7,M1,_,_,L7,300,M1,0,L7,M1,300,L7,L5,M5,0,L7,M1,_,_,L7,300,M1,0,L7,L6,300,M2,L5,M5,0,L7,M1,_,L7,L7,M1,300,M2,M2,_,

	   M5,0,M2,M3,300,M3,M1,M2,0,M3,M4,300,M6,M5,M5,_,M5,_,M4,0,M3,M2,300,M3,M5,0,L7,M1,_,L7,300,M1,0,M2,M3,300,M4,M3,M4,0,M3,M2,300,M1,0,M5,M1,M2,M3,300,M4,M3,_,

	   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,

	   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,_,_,

	   M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M5,0,M4,M3,_,300,M3,M3,0,M3,M2,_,300,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M6,0,H1,H1,_,300,H1,H1,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,0,M7,H1,300,H1,

	   M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M5,0,M4,M3,_,300,M3,M3,0,M3,M2,_,300,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M6,0,H1,H1,_,300,H1,H1,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,0,M7,H1,300,H1,

	   M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M5,0,M4,M3,_,300,M3,M3,0,M3,M2,_,300,M5,M6,M7,H1,0,M7,H1,_,M5,300,M6,M6,_,M6,0,H1,H1,_,300,H1,H1,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
风吹过的路依然远
你的故事讲到哪儿了

《孤勇者》歌词伴奏

#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)
爱你来自于蛮荒
一生不借谁的光
你将造你的城邦
在废墟之上
去吗 去啊 以最卑微的梦
战吗 战啊 以最孤高的梦
致那黑夜中的呜咽与怒吼
谁说站在光里的才算英雄

《海阔天空》歌词伴奏

#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.coloradmin.cn/o/902480.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Linux-在Ubuntu搭建ftp服务器

By: Ailson Jack Date: 2023.08.20 个人博客&#xff1a;http://www.only2fire.com/ 本文在我博客的地址是&#xff1a;http://www.only2fire.com/archives/151.html&#xff0c;排版更好&#xff0c;便于学习&#xff0c;也可以去我博客逛逛&#xff0c;兴许有你想要的内容呢。…

EndNote(一)【界面+功能介绍】

EndNote界面&#xff1a; 顶上小图标的介绍&#xff1a; ①&#xff1a;同步 ②&#xff1a;分享 ③&#xff1a;检索全文 对于第三个&#xff08;检索全文的功能&#xff09;&#xff1a; &#xff08;不做任何操作的情况下的界面&#xff0c;检索全文的按钮是灰的&…

详解:Mybatis参数获取和动态SQL以及分页功能

详解&#xff1a;Mybatis参数获取和动态SQL以及分页功能 前置准备项目结构在pom文件导入依赖创建properties配置文件创建Mapper接口创建Mapper映射文件SqlSession对象创建对应的表在数据库中实体类 SQL语句中的参数获取单个参数两个参数比较参数找不到的情况单个参数&#xff0…

C语言小练习(一)

&#x1f31e; “人生是用来体验的&#xff0c;不是用来绎示完美的&#xff0c;接受迟钝和平庸&#xff0c;允许出错&#xff0c;允许自己偶尔断电&#xff0c;带着遗憾&#xff0c;拼命绽放&#xff0c;这是与自己达成和解的唯一办法。放下焦虑&#xff0c;和不完美的自己和解…

自动方向识别式 TXB型电平转换芯片

大家好,这里是大话硬件。 在上一篇文章分析了LSF型的电平转换芯片,LSF型电平转换芯片最常见是应用在I2C总线上。I2C为OD型总线,LSF使用时增加电阻。 对于不是OD型总线的电平转换,比如UART,SPI,普通GPIO口信号,这些信号在进行双向电平转换使用什么样的芯片呢? 从上面…

Python写一个创意五子棋游戏

前言 在本教程中&#xff0c;我们将使用Python的Tkinter库和OpenAI的GPT-3模型构建一个简单的对话弹窗软件&#xff0c;用于与老板进行对话。我们将介绍如何创建图形用户界面、集成OpenAI API以生成回复&#xff0c;并提供一些进一步的扩展和优化建议。 &#x1f4dd;个人主页→…

岩土工程安全监测隧道中使用振弦采集仪注意要点?

岩土工程安全监测隧道中使用振弦采集仪注意要点&#xff1f; 岩土工程的安全监测是非常重要的&#xff0c;它可以帮助工程师及时发现可能存在的问题&#xff0c;并及时解决&#xff0c;保障施工进度以及施工质量&#xff0c;保障工程的安全运行。其中&#xff0c;振弦采集仪是…

Liunx系统编程:进程信号的概念及产生方式

目录 一. 进程信号概述 1.1 生活中的信号 1.2 进程信号 1.3 信号的查看 二. 信号发送的本质 三. 信号产生的四种方式 3.1 按键产生信号 3.2 通过系统接口发送信号 3.2.1 kill -- 向指定进程发送信号 3.2.2 raise -- 当自身发送信号 3.2.3 abort -- 向自身发送进程终止…

Docker修改daemon.json添加日志后无法启动的问题

docker实战(一):centos7 yum安装docker docker实战(二):基础命令篇 docker实战(三):docker网络模式(超详细) docker实战(四):docker架构原理 docker实战(五):docker镜像及仓库配置 docker实战(六):docker 网络及数据卷设置 docker实战(七):docker 性质及版本选择 认知升…

视频转云存的痛点

现在运营商体系里面&#xff0c;有大量的视频转云存储的需求&#xff0c;但是视频云存储有一个比较大的痛点&#xff0c;就是成本&#xff01; 成本一&#xff1a;存储成本&#xff1b; 我们以1000路2M视频转云存&#xff0c;存储时间为90天为例&#xff08;B端存储时间有时候…

明星都偏爱的多燕瘦活酵素,不含非法添加事件更健康

不少瘦身人士信奉“运动就能瘦”的准则&#xff0c;每天坚持高强度运动&#xff0c;一段时间后却发现&#xff0c;不仅体重没有下降&#xff0c;甚至整个人看起来都变得更加壮实了&#xff0c;这是为什么&#xff1f; 首先&#xff0c;运动是分为减脂和增肌两种类型的&#xff…

我的创作纪念日 - CSDN创作者4周年,感谢平台,未来可期!

CSDN创作者4周年&#xff0c;感谢平台&#xff0c;未来可期&#xff01; 不知不觉已经加入这个平台4周年了&#xff0c;恍惚昨日之景&#xff0c;有些事情&#xff0c;你不在意&#xff0c;平台却已经写好了程序来给它画上了标记&#xff0c;思想无线&#xff0c;故程序也无边…

Vulnhub靶机系列 Hackadmeic.RTB1

系列&#xff1a;Hackademic&#xff08;此系列共2台&#xff09; 难度&#xff1a;初级 信息收集 主机发现 netdiscover -r 192.168.80.0/24端口扫描 nmap -A -p- 192.168.80.143访问80端口 使用指纹识别插件查看是WordPress 根据首页显示的内容&#xff0c;点击target 点击…

(已解决)PySpark : AttributeError: ‘DataFrame‘ object has no attribute ‘iteritems‘

AttributeError: ‘DataFrame’ object has no attribute ‘iteritems’ 原因在使用SparkSession对象中createDataFrame函数想要将pandas的dataframe转换成spark的dataframe时出现的 因为createDataFrame使用了新版本pandas弃用的iteritems()&#xff0c;所以报错 解决办法&…

webSocket 开发

1 认识webSocket WebSocket_ohana&#xff01;的博客-CSDN博客 一&#xff0c;什么是websocket WebSocket是HTML5下一种新的协议&#xff08;websocket协议本质上是一个基于tcp的协议&#xff09;它实现了浏览器与服务器全双工通信&#xff0c;能更好的节省服务器资源和带宽…

这些Linux基础命令你总得掌握吧

B站|公众号&#xff1a;啥都会一点的研究生 写在前面 很多深度学习/机器学习/数据分析等领域&#xff08;或者说大多数在Python环境下进行操作的领域&#xff09;的初学者入门时是在Windows上进行学习&#xff0c;也得益于如Anaconda等工具把环境管理做的如此友善 但如果想在…

阿里网盘海外使用速度很慢

小虎最近在HK使用阿里云盘&#xff0c;速度突然变得很慢&#xff0c;但是百度的没问题。查了发现是阿里的DNS做的不好&#xff0c;所以换了一个DNS速度就上来了。 解决方案 在这个网站&#xff1a;[原创工具] DNS优选(挑选最合适的DNS服务器,拒绝DNS劫下载DNS推荐工具&#x…

如何取消订阅IEEE membership的email

最近小虎开了一个IEEE Student Member&#xff0c;邮箱都快被IEEE给爆箱了。所以想办法取消订阅其邮件&#xff0c;但是保留其member身份。 方法 在profile界面选择communication preferences and policies, Uncheck所有communications&#xff0c;选择I only want to recei…

Flink内核源码解析--Flink中重要的工作组件和机制

Flink内核源码 1、掌握Flink应用程序抽象2、掌握Flink核心组件整体架构抽象3、掌握Flink Job三种运行模式4、理解Flink RPC网络通信框架Akka详解5、理解TaskManager为例子&#xff0c;分析Flink封装Akka Actor的方法和整个调用流程6、理解Flink高可用服务HighAvailabilityServ…

Spring Cloud Alibaba -微服务架构(二)

1. 微服务架构介绍 微服务架构&#xff0c; 简单的说就是将单体应用进一步拆分&#xff0c;拆分成更小的服务&#xff0c;每个服务都是一个可以独立运行的项目。 1.1 微服务架构的常见问题 一旦采用微服务系统架构&#xff0c;就势必会遇到这样几个问题&#xff1a; 这么多小…