"The Lonely Brave" and other popular songs accompaniment--source code

Table of contents 

Instructions

"The Wind Rises" lyrics accompaniment

"The Wind Rises" Lyrics

"Birthday Song" lyrics accompaniment

"Happy Birthday" Lyrics 

"Fairy Tale" lyrics accompaniment

"Fairy Tale" Lyrics

"Story of Time" lyrics accompaniment

The Story of Time Lyrics

​Accompaniment to the lyrics of "A Thousand Cherry Blossoms"

"A Thousand Cherry Blossoms" Chinese Lyrics

"Ordinary Road" lyrics accompaniment

"Ordinary Road" lyrics

"The Lonely Brave" lyrics accompaniment

"The Lonely Warrior" Lyrics

"Broad sea and sky" lyrics accompaniment

"Broad Sea and Sky" Lyrics


 

使用方法

Visual Studio 2022 version of C/C++ creates a .cpp file, just paste and copy it. 

"The Wind Rises" lyrics accompaniment

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

"The Wind Rises" Lyrics

Stopping and stopping along the way,
following the traces of the boy drifting,
the moment before stepping out of the station,
he hesitated

I can’t help laughing at this feeling of nostalgia, it
’s still unavoidable
, and the sky in Nagano is still so warm,
the wind blows the past

Once upon a time, I first met all kinds of lingering in this world,
I looked at the horizon as if it was in front of my eyes,
and I was willing to go through
all kinds of troubles to walk through it, now I have gone through all kinds of lingering in this world,
I have turned over the years and different sides of my face,
I was caught off guard and broke into your smile

I used to be unable to extricate myself from the size of the world,
and I was also addicted to it in my dreams,
not true or false, not struggling, not afraid of jokes

I once turned my youth into her,
and I once popped out the midsummer at
my fingertips. Let the heart move and go with the fate
, walk against the light and let the wind and rain blow

Stopping and stopping on the short road,
there is also a distance . I don’t know if it’s a story or a mood
that I caress

Maybe what I’m looking forward to is nothing more
than fighting against time,
seeing you again
smiling sweetly in the cool morning light

Once upon a time, I first met all kinds of lingering in this world,
I looked at the horizon as if it was in front of my eyes,
and I was willing to go through
all kinds of troubles to walk through it, now I have gone through all kinds of lingering in this world,
I have turned over the years and different sides of my face,
I was caught off guard and broke into your smile

I used to be unable to extricate myself from the size of the world,
and I was also addicted to it in my dreams,
I didn’t tell the truth, I didn’t struggle, I wasn’t afraid of jokes

I once turned my youth into her,
and I once popped out the midsummer at
my fingertips. Let the heart move and let it go

The evening wind blows the white hair on your temples
and smoothes the scars left by memories,
your eyes are mixed with light and dark, and a smile blooms

The twilight covers your staggering steps,
walk into the painting hidden by the bedside,
in the painting you bow your head and talk

I still marvel at how big the world is,
and I'm also intoxicated by my childhood love stories,
there's no truth or falsehood left, no struggling, meaningless jokes

I finally returned my youth to her,
together with the midsummer
that popped out from my fingertips, my heart moved with the wind,
in the name of love, are you still willing?

"Birthday Song" lyrics accompaniment

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" Lyrics 

HAPPY BIRTHDAY
TO YOU HAPPY BIRTHDAY
TO YOU HAPPY BIRTHDAY TO YOU
HAPPY BIRTHDAY TO YOU HAPPY BIRTHDAY TO YOU HAPPY BIRTHDAY TO YOU 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 forever Happy birthday to you Happy birthday to you Happy day to you Happy forever



















"Fairy Tale" lyrics accompaniment

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

} 

"Fairy Tale" Lyrics

-- Guangliang

I forgot how long it has been
since I heard you
tell me your
favorite story
I thought for a long time
and I started to panic.
Did I do something wrong again?
You cried and told me that fairy tales are all lies,
I can't be your prince
Maybe you won't understand
Since you said you love me,
the stars in my sky are bright
I would like to become
the angel you love in a fairy tale
Open my hands and become wings to protect you
You have to believe
, believe that we will be like in a fairy tale
Happiness and happiness are the ending
You cry and tell me that fairy tales
are all
lies

I would like to become
the angel you love in a fairy tale
Open my hands and become wings to protect you
You have to believe
, believe that we will be like in a fairy tale
Happiness and happiness are the ending
I want to become
the angel you love in a fairy tale
Open my hands and turn into wings to protect you
You have to believe
, believe that we will be like in a fairy tale
Happiness and joy are the ending
I will become
the angel you love in fairy tales
Open your hands and become wings to protect you
You have to believe
, believe that we will be like in fairy tales
Happiness and joy is the ending
write our ending together

"Story of Time" lyrics accompaniment

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,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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5,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;

} 

The Story of Time Lyrics

The flowers in spring bloom, the wind in autumn and the setting sun in winter,
melancholic youth, I
used to think so ignorantly.
In the song of the four seasons, the windmill turns every day.
In the poems of wind, flowers, snow and moon, I grow every year,
and the flowing water takes away the time. The story changes a person,
in that sentimental youth waiting for the first time

Yellowed photos, old letters
and faded Christmas cards,
I’m afraid you’ve forgotten the songs I wrote for you when you were young.
The vows of the past are like the colorful bookmarks in the textbook,
engraved with so many beautiful poems
, but after all, it’s a puff
of smoke and water that carries it away. The story of passing time changed two people,
just in the sentimental youth that shed tears for the first time

The distant journey Yesterday's dream and the distant laughter
meet again How many distances have we gone through
? It is no longer the old familiar me,
with the old crazy dreams,
and it is not the old familiar you.
You still have the same smile and flowing water. The story of passing time changed us,
in that sentimental and first recalled youth

​Accompaniment to the lyrics of "A Thousand Cherry Blossoms"

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

} 

"A Thousand Cherry Blossoms" Chinese Lyrics

in the name of daring

Persist in promoting the Westernization Revolution

The Era of Open Democracy

anti-war country

riding a two-wheeler

Hinomaru is printed on the top and rotates

Demons and demons recede

gallop through the curb circle

Running around is nothing

Boys and Girls Sengoku Warriors

follow the wave

golden thousand cherries

into the night

even what you said

I can't convey it

Endless Feast Here

in a steel cage

from the guillotine

look back

in the three thousand worlds

Between Red Dust and Yellow Spring

lamentation song

can't hear

blue sky

far away

just use that ray gun

shoot through obstacles

Seems like a battle-hardened

In fact, it was the general

smiling in the crowd

Oiran Dochu

either this or that

get everyone together

follow the saints

one two three four

pass by monks

An Le Pure Land to drive away evil spirits

The last scene must be a big reunion

when the applause sounded

"Ordinary Road" lyrics accompaniment

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

} 

"Ordinary Road" lyrics

Wandering
on the road
Are you going
vIa vIa
Fragile and proud
That was my appearance too
Boiling and
restless
Where are you going vIa vIa
Mysterious calm
story Are you really listening to
me I used to be Across mountains, rivers and
seas, and also through mountains and seas
of people, everything I once had
is gone in a blink of an eye like smoke.
I was once lost and disappointed,
lost all direction,
until I saw the ordinary,
and that is the only answer.
When you are still fantasizing about
your tomorrow
vIa vIa
Will he be okay or? Worse,
it’s another day for me
I once ruined everything I
wanted to leave forever
I once fell into the bottomless darkness
and wanted to struggle @R_666_2911@
I used to be like you, like him,
like the weeds and wild flowers,
desperate and longing
and crying Also smiling and ordinary,
go forward,
just go like this
, even if you have been given something,
go ahead
, just go like this
, even if you are taken away from you,
go forward,
just go like this
, even if you miss something
Go forward just like this
, even if you can
I have crossed mountains, rivers, seas,
and crowds of people.
Everything I once had
is like smoke in a blink of an eye
. I have been disappointed
and lost all direction.
Until I see ordinary
is the only answer.
I once destroyed me. Everything
I want to leave forever
I once fell into the boundless darkness
and wanted to struggle @R_666_2911@
I used to be like you, like him,
like the weeds and wild flowers,
desperate and longing,
crying and laughing, ordinary,
I once crossed the mountains, rivers and seas
, and also passed through the sea of ​​people
. I once asked the whole world, but I
never got an answer.
I’m just like you, like him
, like the wild grass and wild flowers.
In the dark
, this is the only way I have to go.
Time is like smoke.
Tomorrow is
vIa vIa
The road blown by the wind is still far away
from you where did the story go

"The Lonely Brave" lyrics accompaniment

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;

}

"The Lonely Warrior" Lyrics

All are brave
Your forehead wounds Your differences Your mistakes You
don't have to hide
Your battered dolls Your mask Your ego
They say tame every monster with light
They say stitch your wounds up Nobody loves a clown
Why is loneliness not glorious,
only imperfection is worthy of praise,
who said that a man covered in mud is not a hero? I
love you walking in a dark alley
alone, I love the way you don’t kneel,
I love you who have faced despair
and refused to cry
, I love your tattered clothes
but dare to block The gun of fate
loves you and me so much alike
the gaps are the same do you
want to match this ragged cloak
fight or fight with the humblest dream to the whimpering and roaring in
the night Wiping your madness is like wiping away the dirt. They say you have to go up the steps and the price is to bow your head. Then let me not ride the wind. You are as proud of that kind of lonely bravery. Who said playing ordinary games is not a hero? I love the way you don’t kneel, I love the way you have faced despair and refused to cry . I love your tattered clothes , but you dare to block the gun of fate. I love you and me so much alike. The gaps are the same . Do you want to go with this tattered cloak ? humble dream

















To the sobs and roars in the dark night Who says that
those who stand in the light are heroes
Your
mottledness is different Your silence is deafening Cry (You Are The Hero) Love you came from the wilderness, you will not borrow anyone's light in your life, you will build your city-state on the ruins, go, go, with the humblest dream, fight, fight, with the loneliest dream to that place Whimpering and roaring in the dark night , who said that those who stand in the light are heroes












"Broad sea and sky" lyrics accompaniment

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;

} 

"Broad Sea and Sky" Lyrics

 

Today, I watch the snow drift by in the cold night

Flying far away with a cooled heart

Chasing in the wind and rain, unable to distinguish traces in the fog

The sky is wide, you and me

Can change (who is not changing)

How many times, faced with cold eyes and ridicule

Never give up the ideal in my heart

In a trance for a moment, if there is a feeling of loss

unknowingly faded

Love in my heart (who understands me)

Forgive me for being unruly and indulgent in my life, loving freedom

I'm also afraid that one day I'll fall

Abandoning ideals, anyone can

I'm afraid that one day it's just you and me

Today, I watch the snow drift by in the cold night

Flying far away with a cooled heart

Chasing in the wind and rain, unable to distinguish traces in the fog

The sky is wide, you and me

Can change (who is not changing)

Forgive me for being unruly and indulgent in my life, loving freedom

I'm also afraid that one day I'll fall

Abandoning ideals, anyone can

I'm afraid that one day it's just you and me

Still free myself, sing my song forever

Travel thousands of miles, forgive me for being uninhibited, indulgent and loving freedom in this life

I'm also afraid that one day I'll fall

Abandoning ideals, anyone can

I'm afraid that one day it's just you and me

Anyone can abandon their ideals

I'm afraid that one day it's just you and me

Forgive me for being unruly and indulgent in my life, loving freedom

I'm also afraid that one day I'll fall

Anyone can abandon their ideals

I'm afraid that one day it's just you and me

 

Guess you like

Origin blog.csdn.net/m0_74293254/article/details/132388460