1
王梓轩
资深光能
资深光能
有可能有人不知道这是什么,之前我发过那个音乐演奏程序,今天开源
下面是SL_MUSIC.h的代码
#include <bits/stdc++.h>
#include <windows.h>
#include <mmsystem.h>
#include <stdio.h>
#include <conio.h>
#include <thread>
#include <mutex>
#pragma comment(lib,"winmm.lib")
using namespace std;
class SL_MUSIC
{
private:
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,Y1 = C6, Y2 = D6, Y3 = E6, Y4 = F6, Y5 = G6, Y6 = A6, Y7 = B6,OO = 0XFF,
};
const int bzy[7][7]= {{C1,D1,E1,F1,G1,A1,B1},{C2,D2,E2,F2,G2,A2,B2},{C3,D3,E3,F3,G3,A3,B3},{C4,D4,E4,F4,G4,A4,B4},{C5,D5,E5,F5,G5,A5,B5},{C6,D6,E6,F6,G6,A6,B6},{C7,D7,E7,F7,G7,A7,B7}};
const int sjd[7][7]= {{C1s,D1s,F1,F1s,G1s,A1s,C2},{C2s,D2s,F2,F2s,G2s,A2s,C3},{C3s,D3s,F3,F3s,G3s,A3s,C4},{C4s,D4s,F4,F4s,G4s,A4s,C5},{C5s,D5s,F5,F5s,G5s,A5s,C6},{C6s,D6s,F6,F6s,G6s,A6s,C7},{C7s,D7s,F7,F7s,G7s,A7s,C8}};
bool IKP(unsigned int key)
{
return (GetAsyncKeyState(key) & 0x8000) != 0;
}
mutex muM;
vector<int> hexianyin;
int str_int(string s)
{
int t=0;
for(int i=0; i<s.size(); i++)t=t*10+s[i]-'0';
return t;
}
void yinfu(string s)
{
int p=s.find(',');
string t=s.substr(0,p);
int tt=str_int(t);
//cout<<tt;
string u=s.substr(p+1,s.size()-p);
int uu=str_int(u);
if(uu==0)
{
hexianyin.push_back(Rest);
}
else if(u[0]=='#')
{
//cout<<" #";
u.erase(0,1);
//cout<<u;
muM.lock();
hexianyin.push_back(sjd[tt-1][uu-1]);
muM.unlock();
}
else if(u[0]=='b')
{
//cout<<" b";
u.erase(0,1);
//cout<<u<<'\n';
muM.lock();
if(uu==4||uu==1)hexianyin.push_back(bzy[(uu==1)?tt-2:tt-1][(uu==1)?6:uu-2]);
else hexianyin.push_back(sjd[(uu==1)?tt-2:tt-1][(uu==1)?6:uu-2]);
muM.unlock();
/*
if(uu==4||uu==1)
{
cout<<(uu==1?tt-1:tt)<<" ";
cout<<(uu==1?7:uu-1);
}
else
{
cout<<(uu==1?tt-1:tt);
cout<<" #"<<(uu==1?7:uu-1);
}*/
}
else
{
//cout<<" "<<u;
muM.lock();
hexianyin.push_back(bzy[tt-1][uu-1]);
muM.unlock();
}
//cout<<'\n';
}
void hx(string s)
{
for(int i=0; i<s.size(); i++)
{
if(s[i]=='{')
{
muM.lock();
int p=s.find('}',i);
string t=s.substr(i+1,(p-1)-(i+1)+1);
muM.unlock();
yinfu(t);
muM.lock();
i=p;
muM.unlock();
}
}
}
HMIDIOUT handle;
void yanzou(string s,double biaozhun,int t=0x7f)
{
int st=clock(),tick=0;
int volume = t,sleeptime=0;
int voice = 0x0;
double shijian=biaozhun;
for(int i=0; i<s.size(); i++)
{
char c=s[i];
if(c=='[')
{
muM.lock();
int p=s.find(']',i);
string t=s.substr(i+1,p-i-1);
muM.unlock();
hx(t);
muM.lock();
i=p;
muM.unlock();
}
else if(c=='{')
{
muM.lock();
int p=s.find('}',i);
string t=s.substr(i+1,p-i-1);
muM.unlock();
yinfu(t);
muM.lock();
i=p;
muM.unlock();
}
else if(c=='-')muM.lock(),shijian+=biaozhun,muM.unlock();
else if(c=='.')muM.lock(),shijian*=1.5,muM.unlock();
else if(c=='*')muM.lock(),shijian*=2,muM.unlock();
else if(c=='/')muM.lock(),shijian/=2,muM.unlock();
else if(c=='~')muM.lock(),shijian/=3,muM.unlock();
else if(c==' ')
{
for(int i=0; i<hexianyin.size(); ++i)
{
muM.lock();
voice=(volume << 16) + ((hexianyin[i]) << 8) + 0x90;
midiOutShortMsg(handle,voice);
muM.unlock();
//cout<<hexianyin[i]<<" "<<'\n';
}
while ((clock()-st)*1000.0/CLOCKS_PER_SEC<600/1000.0*(tick+shijian));
muM.lock();
tick+=shijian;
shijian=biaozhun;
hexianyin.clear();
muM.unlock();
}
else if(c=='$')break;
}
}
public:
void OPEN_MIDI()
{
midiOutOpen(&handle,0,0,0,CALLBACK_NULL);
midiOutShortMsg(handle, 0 << 8 | 0xC1);
}
void play(string s1,int sd,string s2="",int t1v=0x7f,int t2v=0x64)
{
thread t1(yanzou,this,s1,sd,t1v);
thread t2(yanzou,this,s2,sd,t2v);
t1.join();
t2.join();
}
void CLOSE_MIDI()
{
midiOutClose(handle);
}
};
SL_MUSIC bgm;
void Music1()
{
bgm.OPEN_MIDI();
bgm.play("",1000,"{2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ $");
bgm.play("{4,5}// {5,1}// {5,2}// {5,3}// $",1000,"{4,1}/ {3,5}/ $");
bgm.play("{5,2}/ {5,1}// {5,1}----// {4,0} {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,2}/ {5,3}/ {5,3}----// {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,1}----// {4,0} {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,2}/ {5,5}/ {5,3}----// [{5,3}{4,5}{4,3}]/ [{5,4}{4,6}{4,4}]/ $",1000,"{2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ $");
bgm.play("[{5,5}{4,7}{4,5}]/ [{5,5}{4,7}{4,5}]// [{5,5}{4,7}{4,5}]--// [{5,5}{4,7}{4,5}]/ [{5,5}{5,1}{4,5}]/ {5,3}// [{5,1}{4,5}]--// {5,3}// {5,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}// ",1000,"{2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ [{4,1}{3,5}{3,3}{3,1}] [{4,1}{3,5}{3,3}{3,1}] [{4,1}{3,5}{3,4}{3,2}] [{4,1}{3,5}{3,4}{3,2}] ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,5}{3,3}] [{4,1}{3,5}{3,3}] ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,6}{3,7}]/. [{4,1}{3,5}{3,3}]--// [{4,1}{3,4}{3,2}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,5}{3,3}{3,1}]/ [{4,1}{3,5}{3,3}{3,1}]/ [{4,1}{3,5}{3,3}{3,1}]/ [{4,1}{3,5}{3,3}{3,1}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,5}{3,4}{3,2}]/ [{4,1}{3,5}{3,4}{3,2}]/ [{4,1}{3,5}{3,4}{3,2}]/ [{4,1}{3,5}{3,4}{3,2}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,5}{3,3}]/ [{4,1}{3,5}{3,3}]/ [{4,1}{3,5}{3,3}]/ [{4,1}{3,5}{3,3}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{4,1}{3,6}{3,4}]/. [{4,1}{3,5}{3,3}]--// [{4,1}{3,4}{3,2}]/ ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,6}{3,4}] [{4,4}{4,1}{3,6}{3,4}] ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,#6}{3,5}] [{4,4}{4,1}{3,#6}{3,5}] ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,6}] [{4,4}{4,1}{3,6}] ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,2}{3,#6}]/. [{4,4}{4,1}{3,6}]--// [{4,4}{3,#6}{3,5}]/ ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,6}{3,4}]/ [{4,4}{4,1}{3,6}{3,4}]/ [{4,4}{4,1}{3,6}{3,4}]/ [{4,4}{4,1}{3,6}{3,4}]/ ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,#6}{3,5}]/ [{4,4}{4,1}{3,#6}{3,5}]/ [{4,4}{4,1}{3,#6}{3,5}]/ [{4,4}{4,1}{3,#6}{3,5}]/ ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,1}{3,6}] [{4,4}{4,1}{3,6}] ");
bgm.play("{6,1}// {5,1}// {5,4}// {5,5}// {6,1}// {5,5}// {5,4}// {5,1}// ",1000,"[{4,4}{4,2}{3,#6}]/. [{4,4}{4,1}{3,6}]--// [{4,4}{3,#6}{3,5}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,1}/ {2,5}/ {3,2}/ {3,3}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,2}/ {3,2}/ {3,4}/ {3,5}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,3}/ {3,3}/ {3,5}/ {4,1}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{3,4}{2,4}]/. [{3,3}{2,3}]--// [{3,2}{2,2}]/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,1}/ {2,5}/ {3,2}/ {3,3}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,2}/ {3,2}/ {3,4}/ {3,5}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"{2,3}/ {3,3}/ {3,5}/ {4,1}/ ");
bgm.play("{5,5}// {4,5}// {5,1}// {5,2}// {5,5}// {5,2}// {5,1}// {4,5}// ",1000,"[{3,4}{2,4}]/. [{3,3}{2,3}]--// [{3,2}{2,2}]/ ");
bgm.play("[{5,5}{4,7}{4,5}]/ [{5,5}{4,7}{4,5}]// [{5,5}{4,7}{4,5}]--// [{5,5}{4,7}{4,5}]/ [{5,5}{5,1}{4,5}]// {5,3}// [{5,1}{4,5}]--// {5,3}// {5,4}// ",1000,"[{2,5}{1,5}] [{3,7}{3,5}{3,5}] [{2,4}{1,4}] [{4,1}{3,6}{3,4}] ");
bgm.play("[{5,5}{4,7}{4,5}]/ [{5,5}{4,7}{4,5}]// [{5,5}{4,7}{4,5}]--// [{5,5}{4,7}{4,5}]/ [{5,5}{5,1}{4,5}]// {5,3}// [{5,1}{4,5}]--// {5,1}// {5,2}// ",1000,"[{2,3}{1,3}] [{4,2}{3,7}{3,5}{3,3}] [{2,6}{1,6}] [{4,1}{3,6}{3,3}] ");
bgm.play("[{5,3}{4,6}{4,#4}]/ [{5,3}{4,6}{4,#4}]// [{5,3}{4,6}{4,#4}]--// [{5,3}{4,6}{4,#4}]/ [{5,3}{5,1}{4,6}]/ {5,6}/ [{5,6}{5,2}]/~ {5,3}/~ {5,2}/~ {5,1}/ ",1000,"[{2,2}{1,2}] [{4,1}{3,6}{3,#4}] [{2,6}{1,6}] [{4,1}{3,6}{3,3}] ");
bgm.play("{5,2} [{5,2}{4,6}{4,4}]/ [{5,2}{4,6}{4,4}]// [{5,2}{4,6}{4,4}]// [{5,2}{4,6}{4,4}]/ {4,7}/ {4,5}// {5,1}// {5,2}// {5,3}// ",1000,"[{2,5}{1,5}] [{4,2}{3,6}{3,#4}] [{2,5}{1,5}] [{4,2}{3,7}{3,5}]/ {4,0}/ ");
bgm.play("{5,2}/ {5,1}// {5,1}----// {4,0} {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,2}/ {5,3}/ {5,3}----// {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,1}----// {4,0} {4,5}// {5,1}// {5,2}// {5,3}// {5,2}/ {5,1}// {5,2}/ {5,5}/ {5,3}----// [{5,3}{4,5}{4,3}]/ [{5,4}{4,6}{4,4}]/ $",1000,"{2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ $");
bgm.play("[{5,5}{4,7}{4,5}]/ [{5,5}{4,7}{4,5}]// [{5,5}{4,7}{4,5}]--// [{5,5}{4,7}{4,5}]/ [{5,5}{5,1}{4,5}]/ {5,3}// [{5,1}{4,5}]--// {5,3}// {5,4}// [{5,5}{4,7}{4,5}]/ [{5,5}{4,7}{4,5}]// [{5,5}{4,7}{4,5}]--// [{5,5}{4,7}{4,5}]/ [{5,5}{5,1}{4,5}]/ {5,3}// [{5,1}{4,5}]--// {5,1}// {5,2}// [{5,3}{4,6}{4,#4}]/ [{5,3}{4,6}{4,#4}]// [{5,3}{4,6}{4,#4}]--// [{5,3}{4,6}{4,#4}]/ [{5,3}{4,7}{4,#4}] [{5,6}{5,2}]/~ {5,3}/~ {5,2}/~ {5,1}// {4,6}// {5,1} [{6,1}{5,1}] [{5,7}{4,7}]. [{5,5}{4,5}]/ [{5,3}{4,3}] [{4,1}{3,6}]/ {4,3}/ [{4,2}{3,7}{3,6}] {4,5}// {5,1}// {5,2}// {5,3}// ",1000,"{2,5}/ {3,2}/ {3,5}/ {3,2}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,3}/ {2,7}/ {3,3}/ {2,7}/ {2,6}/ {3,3}/ {3,5}/ {3,3}/ {2,2}/ {2,6}/ {3,2}/ {2,6}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ $");
bgm.play("{5,2}/ {5,1}// {5,1}// [{6,1}{5,1}] [{5,7}{4,7}]. [{5,5}{4,5}]/ [{5,6}{5,3}{5,1}{4,6}] {3,6}// {3,7}// {4,1}// {4,2}// {4,3}// {4,4}// {4,2}/ {4,5}// {4,1}// {4,2}// {4,3}// {5,2}/ {5,1}// {5,1}// [{6,1}{5,1}] [{5,7}{4,7}]. [{5,5}{4,5}]/ [{5,3}{4,3}] [{4,1}{3,6}]/ {4,3}/ [{4,2}{3,7}{3,6}] {4,5}// {5,1}// {5,2}// {5,3}// ",1000,"{3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ {3,1}/ {3,5}/ {4,1}/ {3,5}/ {2,6}/ {3,3}/ {3,6}/ {3,3}/ {2,4}/ {3,1}/ {3,4}/ {3,1}/ {2,5}/ {3,2}/ {3,5}/ {3,2}/ ");
bgm.play("{5,2}/ {5,1}// {5,1}----// [{4,6}{4,4}{4,1}]./ [{4,5}{4,3}{3,7}]--// [{4,4}{4,2}{3,6}]/ [{4,3}{4,2}{4,1}{3,5}]------- ",1000,"{3,1}/ {3,5}/ {4,1} [{2,4}{1,4}]/. [{2,3}{1,3}]--// [{2,2}{1,2}]/ [{2,1}{1,1}]/--- ");
bgm.CLOSE_MIDI();
}
void Music2()
{
bgm.OPEN_MIDI();
bgm.play("{4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {4,0} {5,1}/ {5,2}/ ",1000,"{3,1} {4,1} {4,3} {3,1} {4,1}/ {3,5}/ {4,3} {3,1} {4,1} {4,3} {3,1} {4,1}/ {3,5}/ {4,3} ");
bgm.play("{5,3}/ {5,1}/ {5,5}. {5,3}/ {5,2} {5,5} {5,2} {5,1}/ {4,6}/ {5,3}. {5,1}/ {4,7} {4,0} {5,1} {4,6} {4,7} {5,1}/ {5,2}/ {4,5} {5,1} {5,2}/ {5,3}/ {5,4} {5,4}/ {5,3}/ {5,2}/ {5,1}/ {5,2}- {5,1}/ {5,2}/ ",1000,"{3,1} {4,1} {4,3} {3,5} {4,5} {4,7} {3,6} {4,1} {4,6} {3,5}/ {4,5}----/ {3,4} {4,4}/ {4,1}/ {4,6} {3,3} {4,3} {4,5} {3,2} {4,2} {4,4} {3,7}/ {4,1}/ {4,2}/ {3,5}/ {4,1}/ {4,2}/ ");
bgm.play("{5,3}/ {5,1}/ {5,5}. {5,3}/ {5,2} {5,5} {5,2} {5,1}/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{3,5}--/ {2,4}/ {3,1} {3,5}--/ {2,5}/ {3,5}/ {3,7}- ");
bgm.play("{5,1}-- {4,0} {4,0} {5,1}/ {5,2}/ ",1000,"{3,1}/ {4,3}----/ {3,1} {4,1}/ {3,5}/ {4,3} ");
bgm.play("{5,3}/ {5,1}/ {5,5}. {5,3}/ {5,2} {5,5} {5,2} {5,1}/ {4,6}/ {5,3}. {5,1}/ {4,7} {4,0} {5,1} {4,6} {4,7} {5,1}/ {5,2}/ {4,5} {5,1} {5,2}/ {5,3}/ {5,4} {5,4}/ {5,3}/ {5,2}/ {5,1}/ {5,2}- {5,1}/ {5,2}/ ",1000,"{3,1} {4,1} {4,3} {3,5} {4,5} {4,7} {3,6} {4,1} {4,6} {3,5}/ {4,5}----/ {3,4} {4,4}/ {4,1}/ {4,6} {3,3} {4,3} {4,5} {3,2} {4,2} {4,4} {3,7}/ {4,1}/ {4,2}/ {3,5}/ {4,1}/ {4,2}/ ");
bgm.play("{5,3}/ {5,1}/ {5,5}. {5,3}/ {5,2} {5,5} {5,2} {5,1}/ {4,6}/ {4,6} {4,7}/ {5,1}/ {4,5} {4,0} {4,5} {4,6} {4,7} {5,1}/ {5,2}/ {4,5} {5,1} {5,2}/ {5,3}/ ",1000,"{3,1} {4,1}/ {3,5}/ {4,3} {3,5} {4,5} {4,7} {3,6} {4,1} {4,3} {4,3}/ {4,2}/ {4,1}/ {3,5}/ {4,1}/ {4,2}/ {3,4} {4,4} {4,6} {3,3} {4,3} {4,5} ");
bgm.play("{5,4} {5,4}/ {5,3}/ {5,2}/ {5,1}/ {5,1}-- {4,0} {4,0} {5,3}/ {5,4}/ {5,5} {5,5} {5,5} {5,5} {5,5}/ {5,6}/ {5,5}/ {5,4}/ {5,3} {5,3} {5,3} ",1000,"{3,2} {4,2} {3,5} {3,1} {4,1} {4,3} {3,1} {4,1}- {3,1} {4,1}/ {3,5}/ {4,3} {3,1} {4,1} {4,3} {2,6} {3,6}/ {3,3}/ {4,1} ");
bgm.play("{5,3} {5,3}/ {5,4}/ {5,3}/ {5,2}/ {5,1} {5,1} {5,1}/ {4,7}/ {4,6} {4,7} {5,1}/ {5,2}/ {5,2} {5,2}/ {5,3}/ {5,2}/ {5,3}/ {5,2}- {5,3}/ {5,4}/ {5,5} {5,5} {5,5} {5,5} {5,5}/ {5,6}/ {5,5}/ {5,4}/ {5,3} {5,3} {5,3} {5,3}/ {5,4}/ {5,3}/ {5,2}/ {5,1}/ {4,7}/ {4,6} {4,6}/ {4,7}/ {5,1}/ {5,2}/ {4,5} {5,1} {5,2}/ {5,3}/ {5,2}. {5,2}/ {5,2}/ {5,1}/ ",1000,"{2,6} {3,6} {4,1} {2,4} {3,4}/ {3,1}/ {3,6} {2,4} {3,4} {3,6} {2,5} {3,5} {3,7} {2,5}/ {3,5}/ {3,7}/ {3,5}/ {4,2} {3,1}/ {3,5}/ {4,3} {4,1} {3,1}/ {3,5}/ {4,3} {4,3} {2,6}/ {3,3}/ {4,1} {4,1} {2,6}/ {3,3}/ {4,1} {3,6} {2,4}/ {3,1}/ {3,4}/ {3,5}--/ {2,4}/ {3,1} {3,5}--/ {2,5}/ {3,5}/ {3,7}- ");
bgm.play("{5,1}-- {4,0} {4,0} {4,0} {4,5} {5,1} {5,3} {5,1}/ {5,3}/ {5,5}/ {6,1}--------/ ",1000,"{3,1} {4,1} {4,3} {3,1} {4,1} {4,3}--/ {4,1} {4,1} {4,1}------ ");
bgm.CLOSE_MIDI();
}
void Music3()
{
bgm.OPEN_MIDI();
bgm.play("{4,6}/ {4,7}/ {5,1}. {4,7}/ {5,1} {5,3} {4,7}- {4,0} {4,3} ",1000,"{4,0} {3,6} {4,1} {4,3} {4,1} {3,3} {3,5} {3,7}- ");
bgm.play("{4,6}. {4,5}/ {4,6} {5,1} {4,5}- {4,0} {4,4}/ {4,3}/ {4,4}. {4,3}/ {4,4}/ {5,1} ",1000,"{3,4} {3,6} {4,1} {3,6} {3,1} {3,5} {4,1}- {3,2} {3,4} {3,6} {3,4} ");
bgm.play("{4,3}- {4,0}/ {5,1}/ {5,1}/ {5,1}/ {4,7}. {4,b5}/ {4,b5} {4,7} {4,7}- {4,0} {4,6}/ {4,7}/ ",1000,"{2,6} {3,3} {3,6}- {2,7} {3,#4} {3,7} {3,4} {2,3} {2,7} {3,3}- ");
bgm.play("{5,1}. {4,7}/ {5,1} {5,3} {4,7}- {4,0} {4,3}/ {4,3}/ {4,6}. {4,5}/ {4,6} {5,1} {4,5}- {4,0} {4,3} {4,4} {5,1}/ {4,7}. {5,1} {5,2} {5,3}/ {5,1}.- ",1000,"{2,6} {3,3} {3,6} {3,3} {2,3} {2,7} {3,3}- {2,4} {3,1} {3,4} {3,1} {3,1} {3,5} {4,1}- {3,2} {3,6} {4,2} {3,6} {2,6} {3,3} {3,6} {3,3} ");
bgm.play("{5,1}/ {4,7}/ {4,6} {4,7} {4,#5} {4,6}-- {5,1}/ {5,2}/ {5,3}. {5,2}/ {5,3} {5,5} {5,2}- {5,0} {4,5}/ {4,5}/ ",1000,"{3,4} {4,1} {3,3} {3,7} {2,6} {3,3} {3,6}- {3,1} {3,5} {4,1} {3,5} {2,5} {3,2} {3,7}- ");
bgm.play("{5,1}. {4,7}/ {5,1} {5,3} {5,3}-- {5,0} {4,6}/ {4,7}/ {5,1} {4,7}/ {5,1}/ {5,2} {5,1}. {4,5}/ {4,5}- {5,4} {5,3} {5,2} {5,1} {5,3}------ {5,3} ",1000,"{2,6} {3,3} {3,6} {3,3} {2,3} {1,7} {3,3}- {2,4} {3,1} {3,4} {3,1} {2,3} {3,1} {3,5} {3,1} {2,2} {2,6} {3,2} {2,6} {2,3} {2,7} {3,3} {2,7} {3,3}- {2,3}- ");
bgm.play("{5,6}- {5,5}- {5,3} {5,2}/ {5,1}.- {5,2} {5,1}/ {5,2}/ {5,2} {5,5} {5,3}-- {5,3} {5,6}- {5,5}- {5,3} {5,2}/ {5,1}.- ",1000,"{2,6} {3,3} {2,5} {3,2} {2,4} {3,1} {3,4} {3,1} {2,5} {3,2} {3,5} {3,2} {3,1} {3,5} {4,1}- {2,6} {3,3} {2,5} {3,2} {2,4} {3,1} {3,4} {3,1} ");
bgm.play("{5,2} {5,1}/ {5,2}. {4,7} {4,6}-- {4,6}/ {4,7}/ {5,1}. {4,7}/ {5,1} {5,3} {4,7}- {4,0} {4,3} {4,6}. {4,5}/ {4,6} {5,1}. {4,5}- {4,0} {4,4}/ {4,3}/ ",1000,"{2,5} {3,2} {3,5} {3,2} {2,6} {3,3} {3,6}- {3,6} {4,1} {4,3} {4,1} {3,1} {3,5} {3,7}- {3,4} {3,6} {4,1} {3,6} {3,1} {3,5} {4,1}- ");
bgm.play("{4,4}. {4,3}/ {4,4} {5,1} {4,3}- {4,0}/ {5,1}/ {5,1}/ {5,1}/ {4,7}. {4,b5}/ {4,b5} {4,7} {4,7}- {4,0} {4,6}/ {4,7}/ {5,1}. {4,7}/ {5,1} {5,3} {4,7}- {4,0} {4,3}/ {4,3}/ {4,6}. {4,7}/ {4,6} {5,1} {4,5}- {4,0} {4,3} {4,4} {5,1}/ {4,7}. {5,1} {5,2} {5,3}/ {5,1}.- {5,1}/ {4,7}/ {4,6} {4,7} {4,#5} [{4,1}{4,3}{4,6}]-- ",1000,"{3,2} {3,4} {3,6} {3,4} {2,6} {3,3} {3,6}- {2,7} {3,#4} {3,7} {3,#4} {3,3} {3,7} {3,3}- {2,6} {3,3} {3,6} {3,3} {2,3} {2,7} {3,3}- {2,4} {3,1} {3,4} {3,1} {3,1} {3,5} {4,1}- {3,2} {3,6} {4,2} {3,6} {2,6} {3,3} {3,6} {3,3} {3,4} {4,1} {3,3} {3,7} {2,6}-- ");
bgm.CLOSE_MIDI();
}
void Music4()
{
bgm.OPEN_MIDI();
bgm.play("{5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{4,0} {3,4}/ {4,1}/ {4,4} {3,5}/ {4,2}/ {4,5} {3,3}/ {3,7}/ {4,3} {2,6}/ {3,3}/ {3,6}/ {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}//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{3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1} {4,0} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,3}-- {4,7}/ {5,1}/ {4,6} {5,3} {4,6}. {4,5}/ {4,6} {4,5} {4,3} {4,3}/ {4,5}/ {4,6}/ {4,5}// {4,6}// {4,4}/ {4,3}/ {4,2} {4,3}/ {3,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{3,6} {0,0} {0,0} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {0,0}/ {5,1} {4,7}/ {5,2} {4,7}/ {4,6}/ {4,0}/ {4,5}/ {4,6}/ {4,7}/ {5,1}-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5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}-- {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,3}/ {6,1}/ {5,7}/ {6,1}// {5,7}// {5,6}/ {5,5}/ ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{5,3}. {5,2}/ {5,3} {5,5} {5,6}/ {5,5}// {5,6}// {5,5}// {5,6}// {5,5}// {5,3}// {5,2} {5,2}// {5,3}// {5,5}/ {5,2}/ {5,2}// {5,3}// {5,2}// {5,3}// {5,2}// {5,1}// {4,6} {5,3}/ {5,5}/ {5,6}/ {5,5}// {5,6}// {5,5}/ {5,3}/ {5,2}/ {5,3}// {5,2}// {5,1}/ {4,5}/ ",1300,"{3,1}/ {3,5}/ {4,1}/ {4,2}/ {4,3}- {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} {2,3}/ {2,7}/ {3,3} {2,6}/ {3,3}/ {3,6} {2,4}/ {3,1}/ {3,4} {2,5}/ {3,2}/ {3,5} ");
bgm.play("{4,6}----------- ",1300,"{2,6}/ {3,3}/ {3,6}/ {3,7}/ {4,1}- ");
bgm.CLOSE_MIDI();
}
这个东西保存好重命名为SL_MUSIC.h
然后在同目录下创建随便名字的.cpp,引用头文件
#include "SL_MUSIC.h"
这样就可以了 在主函数里写入
MUSIC1(); //也可以是2、3、4
就到这里了...
王梓轩在2024-08-25 20:46:22追加了内容
没开代码分享...
在这里 https://www.luogu.com.cn/paste/5dgtpd8g
王梓轩在2024-08-26 17:14:39追加了内容
ding
王梓轩在2024-09-01 14:16:00追加了内容
有没有人想帮我写曲子啊,50~200个豆豆一首,看具体长度
PS:该头文件为本人原创制作
如果曲子很长或者很好听的话可以加豆,数量到时候再说
0
0
0
0
0
0
0