软件协会第01次活动第05次任务布置:爱心代码+演奏歌曲+typora使用pandoc导出+github注册登录+函数练习+写csdn文章(二)

简介: 软件协会第01次活动第05次任务布置:爱心代码+演奏歌曲+typora使用pandoc导出+github注册登录+函数练习+写csdn文章

2.3 起风了

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

2.4 光阴的故事

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

2.5 第一次爱的人

#include <iostream>
#include <Windows.h>
#pragma comment(lib,"winmm.lib")
#include <thread>
#define PLAY(melody, channel) for (unit i : melody) { play(handle, i, channel);} 
using namespace std;
/*
  作者:无心凌云
*/
enum Volume {
    LV = 0x5f, MV = 0x6f, HV = 0x7f
};
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 MajorD
{
    X1 = D2, X2 = E2, X3 = F2s, X4 = G2, X5 = A2, X6 = B2, X7 = C3s,
    L1 = D3, L2 = E3, L3 = F3s, L4 = G3, L5 = A3, L6 = B3, L7 = C4s,
    M1 = D4, M2 = E4, M3 = F4s, M4 = G4, M5 = A4, M6 = B4, M7 = C5s,
    H1 = D5, H2 = E5, H3 = F5s, H4 = G5, H5 = A5, H6 = B5, H7 = C6s,
    _ = 0XFF
};
enum MajorE
{
    EX1 = E2, EX2 = F2s, EX3 = G2s, EX4 = A2, EX5 = B2, EX6 = C3s, EX7 = D3s,
    EL1 = E3, EL2 = F3s, EL3 = G3s, EL4 = A3, EL5 = B3, EL6 = C4s, EL7 = D4s,
    EM1 = E4, EM2 = F4s, EM3 = G4s, EM4 = A4, EM5 = B4, EM6 = C5s, EM7 = D5s,
    EH1 = E5, EH2 = F5s, EH3 = G5s, EH4 = A5, EH5 = B5, EH6 = C5s, EH7 = D6s,
};
enum Beat
{
    beat = 2500, bd2 = beat / 2, bd4 = beat / 4, bd8 = beat / 8, bd16 = beat / 16, bd32 = beat / 32
};
struct unit {
    int pitch;
    int time = bd8;
    string lyrics = "";
    int volume = MV;
};
void play(HMIDIOUT handle, unit u, int channel) {
    int sleep = u.time;
    int pitch = u.pitch;
    string lyrics = u.lyrics;
    int volume = u.volume;
    if (pitch != _) {
        int a = volume;
        int b = pitch;
        int voice = (a << 16) + ((b) << 8) + 0x90 + channel;
        midiOutShortMsg(handle, voice);
    }
    if (lyrics != "") {
        cout << lyrics;
    }
    if (sleep != 0) {
        Sleep(sleep);
    }
}
unit main_melody1[] = {
    //第一段
    { M1,0,"\n第 " }, { X6,bd8 }, { L3,bd8 }, { L6,bd8 }, { L3,bd8 },
    { M2,bd8 }, { L4,bd8 }, { M1,bd8 }, { L3,bd8 }, { L7,0,"一 " }, { X5,bd8 }, { L2,bd8 }, { L5,bd8 }, { L2,bd8 },
    { M1,bd8 }, { L3,bd8 }, { L7,bd8 }, { L2,bd8 }, { L6,0,"次 " }, { X4,bd8 }, { L1,bd8 }, { L4,bd8 }, { L1,bd8 },
    { L6 }, { L2 }, { L4 }, { L2 }, { L7,0,"爱 " }, { X3 }, { X7 }, { L6,0,"的 " }, { L2 }, { L5 + 1,0, "人\n\n" }, { L3,bd8 + bd4 * 2 },
    { M1,0 }, { X6,bd8 }, { L3,bd8 }, { L6,bd8 }, { L3,bd8 },
    { M2,bd8 }, { H4,0,"",HV }, { L4,bd8 }, { H3,0,"",HV }, { M1,bd8 }, { H2,0,"",HV }, { L3,bd8 }, { H2,0,"",HV }, { L7,0 }, { X5,bd8 }, { L2,bd8 }, { L5,bd8 }, { L2,bd8 },
    { M1,bd8 }, { L3,bd8 }, { L7,bd8 }, { L2,bd8 }, { L6,0 }, { X4,bd8 }, { L1,bd8 }, { L4,bd8 }, { H2,0,"",HV }, { L1,bd8 },
    { H1,0,"",HV }, { L6 }, { L2 }, { L4 }, { L2 }, { L7,0 }, { X3 }, { X7 }, { L6,0 }, { L2 }, { L5 + 1,0 }, { L3,bd8 + bd8 }, { H4,bd8,"灰",HV }, { H3,bd8,"色",HV }, { H1,bd8,"的",HV },
    { M6,0,"天 ",HV }, { M1,0 }, { X6,bd8 }, { L3,bd8 }, { L6,bd8 }, { L3,bd8 },
    { M2,bd8 }, { H4,0,"你",HV }, { L4,bd8 }, { H3,0,"的",HV }, { M1,bd8 }, { H2,0,"脸\n",HV }, { L3,bd8 }, { L7,0 }, { X5,bd8 }, { L2,bd8 }, { L5,bd8 }, { L2,bd8 },
    { M1,bd8 }, { H3,0,"爱",HV }, { L3,bd8 }, { H2,0,"过",HV }, { L7,bd8 }, { M7,0,"也",HV }, { L2,bd8 }, { H1,0,"哭",HV }, { L6,0 }, { X4,bd8 }, { M6,0,"过",HV }, { L1,bd8 }, { H1,0,"笑",HV }, { L4,bd8 }, { M6,0,"过",HV }, { L1,bd8 },
    { H1,0,"痛",HV }, { L6 }, { M6,0,"过",HV }, { L2 }, { H1,0,"之",HV }, { L4 }, { M6,0,"后",HV }, { L2 }, { H2,0,"只",HV }, { L7,0 }, { X3 }, { H2,0,"剩",HV }, { X7 }, { H1,0,"再",HV }, { L6,0 }, { L2 }, { M7,0,"见\n",HV }, { L5 + 1,0 }, { L3,bd8 + bd8 }, { H4,bd8,"我",HV }, { H3,bd8,"的",HV }, { H1,bd8,"眼",HV },
    { M6,0,"泪 ",HV }, { M1,0 }, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { H4,0,"湿",HV }, { L4 }, { H3,0,"了",HV }, { M1 }, { H2,0,"脸\n",HV }, { L3 }, { H2,0,"",HV }, { L7,0 }, { X5 }, { L2 }, { L5 }, { L2 },
    { M1 }, { H3,0,"失",HV }, { L3 }, { H2,0,"去",HV }, { L7 }, { M7,0,"第",HV }, { L2 }, { H1,0,"一",HV }, { L6,0 }, { X4 }, { M6,0,"次",HV }, { L1 }, { H1,0,"爱",HV }, { L4 }, { M6,0,"的",HV }, { L1 },
    { H1,0,"人",HV }, { L6 }, { M6,0,"竟",HV }, { L2 }, { H1,0,"然",HV }, { L4 }, { M6,0,"是",HV }, { L2 }, { H2,0,"这",HV }, { L7,0 }, { X3 }, { H2,0,"种",HV }, { X7 }, { H1,0,"感",HV }, { L6,0 }, { L2 }, { H3,0,"觉\n",HV }, { L5 + 1,0 }, { L3,bd8 },
    { _,bd8 }, { H3,bd8,"总",HV }, { H3,bd8,"以",HV }, { H3,0,"为 ",HV }, { L5 + 1,0 }, { L3 }, { L1 }, { H3,0,"爱",HV }, { L3 }, { H3,0,"是",HV }, { L5 + 1,bd8 },{H1,bd8,"全",HV},
    { H2,0,"部",HV }, { X5 }, { H3,0,"的",HV }, { X7 }, { H4,0,"心",HV }, { L2,bd8 }, { H3,bd8,"跳\n",HV }, { X6,bd8 }, { H1,0,"失",HV }, { L1 }, { L3,0 }, { H1,bd8,"去",HV }, { M6,bd8,"爱",HV },
    { M7,0,"我",HV }, { L3 }, { H1,0,"们",HV }, { L5 }, { H2,0,"就",HV }, { L7,bd8 }, { H3,bd8,"要",HV }, { H1,0," ",HV }, { L4 }, { L6 }, { H2,0,"就",HV }, { M1 }, { H1,bd8,"要\n",HV },
    { X6 }, { M6,0,"一",HV }, { L1 }, { M6,0,"点",HV }, { L3 }, { M6,bd8,"点",HV }, { H3,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H4,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H5,0,"地",HV }, { L7,0 }, { L5,0 }, { L3 }, { H3,0,"死",HV }, { L7,0 }, { L5,0 }, { L3 },
    { H2,0,"掉\n",HV }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { M5,0,"当",HV }, { L7,0 }, { L5,0 }, { L2 }, { H5,0,"我 ",HV }, { M3,0 }, { M1,0 }, { L5 ,bd4 + bd8}, /*{_,bd16},/*{ H3,bd16,"",HV },{ M3,0 }, { M1,0 }, { L5,bd16 + bd8 },*/ { H3,0,"失",HV }, { M3,0 }, { M1,0 }, { L5 },
    { H4,0,"去",HV }, { L1 }, { H6,0,"你",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"那",HV }, { X7 }, { H4,0,"一",HV }, { X5,bd16 }, { H3,0,"秒 ",HV }, { X7,bd16 }, /*{ H3,0," ",HV },*/ { X6,bd8 + bd16 }, { X6,bd8 }, { _,bd16 }, { H3,0,"心",HV }, { X6 },
    { H3,bd8,"突",HV }, { H4,0,"然",HV }, { X6 }, { H3,0,"就",HV }, { X5 }, { H2,bd16,"变",HV }, { H1,bd16,"老\n",HV }, /*{ H1,0,"\n",HV },*/ { X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd16,"",HV }, { H3,bd16,"away\n",HV }, /*{ H3,0,"",HV },*/ { L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { L1,bd4 },
    { H5,0,"喧",HV }, { X5,bd16 }, { X6,bd16 }, { H5,0,"闹",HV }, { L1,bd16 }, { L2,bd16 }, { H3,0,"的",HV }, { L1,bd16 }, { X6,bd16 }, { H5,0,"街 ",HV }, { L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { H5,0,"没",HV }, { L1 },
    { H5,bd8,"发",HV }, { H6,0,"现",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"我",HV }, { X7 }, { H4,0,"的",HV }, { X5,bd16 }, { H3,0,"泪\n",HV }, { X7,bd16 }, /*{ H3,0,"",HV },*/ { X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"被",HV }, { X6 },
    { H3,bd8,"遗",HV }, { H4,0,"忘",HV }, { X6 }, { H3,0,"在",HV }, { X5 }, { H2,bd16,"街",HV }, { H1,bd16,"角\n",HV }, /*{ H1,0,"\n",HV },*/ { X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd8,"away\n\n",HV }, { H3,0,"",HV }, { X6,bd16 }, { H2,bd16 }, { H1,bd4 + bd8 },
    { M1,0,"music" }, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { L4 }, { M1 }, { H1,0,".",HV }, { L3 }, { H2,0,".",HV }, { L7,0 }, { X5 }, { L2 }, { L5 }, { L2 },
    { M1 }, { L3 }, { H3,0,".",HV }, { L7 }, { H2,0,".",HV }, { L2,bd16 }, { H2,bd16,".",HV }, { L6,0,"." }, { X4 }, { H1,0,".",HV }, { L1 }, { L4 }, { L1 },
    { M6,0,".",HV }, { L6 }, { M7,0,".",HV }, { L2 }, { H1,0,".",HV }, { L4 }, { H2,0,".",HV }, { L2 }, { H2,0,".",HV }, { L7,0 }, { X3 }, { X7 }, { L6,0,"." }, { L2 }, { L5 + 1,0,"." }, { L3 },
};
unit main_melody2[] = {
    //第二段
    { _,bd8 }, { H4,bd8,"我",HV }, { H3,bd8,"看",HV },/*{L5,0},{L3,0},*/{ H1,bd8,"着",HV }, { M6,0,"你 ",HV }, { M1,0 }, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { H4,0,"走",HV }, { L4 }, { H3,0,"过",HV }, { M1 }, { H2,0,"街\n",HV }, { L3 }, { L7,0 }, { X5 }, { L2 }, { L5 }, { L2 },
    { M1 }, { H3,0,"还",HV }, { L3 }, { H2,0,"穿",HV }, { L7 }, { M7,0,"着",HV }, { L2 }, { H1,0,"去",HV }, { L6,0 }, { X4 }, { M6,0,"年",HV }, { L1 }, { H1,0,"夏",HV }, { L4 }, { M6,0,"天",HV }, { L1 },
    { H1,0,"我",HV }, { L6 }, { M6,0,"送",HV }, { L2 }, { H1,0,"你",HV }, { L4 }, { M6,0,"的",HV }, { L2 }, { H2,0,"那",HV }, { L7,0 }, { X3 }, { H2,0,"双",HV }, { X7 }, { H1,0,"球",HV }, { L6,0 }, { L2 }, { M7,0,"鞋\n",HV }, { L5 + 1,0 }, { L3,bd8 },
    { _,bd8 }, { H4,bd8,"银",HV }, { H3,bd8,"色",HV }, { L5 + 1,0 }, { L3,0 }, { H1,bd8,"手",HV }, { M6,0,"链 ",HV }, { M1,0 }, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { H4,0,"还",HV }, { L4 }, { H3,0,"耀",HV }, { M1 }, { H2,0,"眼\n",HV }, { L3 }, { H2,0,"",HV }, { L7,0 }, { X5 }, { L2 }, { L5 }, { L2 },
    { M1 }, { H3,0,"你",HV }, { L3 }, { H2,0,"的",HV }, { L7 }, { M7,0,"世",HV }, { L2 }, { H1,0,"界",HV }, { L6,0 }, { X4 }, { M6,0,"似",HV }, { L1 }, { H1,0,"乎",HV }, { L4 }, { M6,0,"一",HV }, { L1 },
    { H1,0,"点",HV }, { L6 }, { M6,0,"也",HV }, { L2 }, { H1,0,"没",HV }, { L4 }, { M6,0,"有",HV }, { L2 }, { H2,0,"因",HV }, { L7,0 }, { X3 }, { H2,0,"此",HV }, { X7 }, { H1,0,"改",HV }, { L6,0 }, { L2 }, { H3,0,"变\n",HV }, { L5 + 1,0 }, { L3,bd8 },
    { _,bd8 }, { H3,bd8,"总",HV }, { H3,bd8,"以",HV }, { H3,0,"为 ",HV }, { L5 + 1,0 }, { L3 }, { L1 }, { H3,0,"爱",HV }, { L3 }, { H3,0,"是",HV }, { L5 + 1,bd8 }, { H1,bd8,"全",HV },
    { H2,0,"部",HV }, { X5 }, { H3,0,"的",HV }, { X7 }, { H4,0,"心",HV }, { L2,bd8 }, { H3,bd8,"跳\n",HV }, { X6,bd8 }, { H1,0,"失",HV }, { L1 }, { L3,0 }, { H1,bd8,"去",HV }, { M6,bd8,"爱",HV },
    { M7,0,"我",HV }, { L3 }, { H1,0,"们",HV }, { L5 }, { H2,0,"就",HV }, { L7,bd8 }, { H3,bd8,"要",HV }, { H1,0," ",HV }, { L4 }, { L6 }, { H2,0,"就",HV }, { M1 }, { H1,bd8,"要\n",HV },
    { X6 }, { M6,0,"一",HV }, { L1 }, { M6,0,"点",HV }, { L3 }, { M6,bd8,"点",HV }, { H3,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H4,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H5,0,"地",HV }, { L7,0 }, { L5,0 }, { L3 }, { H3,0,"死",HV }, { L7,0 }, { L5,0 }, { L3 },
    { H2,0,"掉\n",HV }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { M5,0,"当",HV }, { L7,0 }, { L5,0 }, { L2 }, { H5,0,"我 ",HV }, { M3,0 }, { M1,0 }, { L5,bd4 + bd8 },/*{_,bd16},{H3,bd16,"",HV},{M3,0} ,{M1,0},{L5,bd16 + bd8}*/{ H3,0,"失",HV }, { M3,0 }, { M1,0 }, { L5 },
    { H4,0,"去",HV }, { L1 }, { H6,0,"你",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"那",HV }, { X7 }, { H4,0,"一",HV }, { X5,bd16 }, { H3,0,"秒 ",HV }, { X7,bd16 },/*{H3,0,"",HV}*/{ X6,bd8 + bd16 }, { X6,bd8 }, { _,bd16 }, { H3,0,"心",HV }, { X6 },
    { H3,bd8,"突",HV }, { H4,0,"然",HV }, { X6 }, { H3,0,"就",HV }, { X5 }, { H2,bd16,"变",HV }, { H1,bd16,"老\n",HV },/*{H1,0,"",HV}*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd16,"",HV }, { H3,bd16,"away\n",HV },/*{H3,0,"",HV},*/{ L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { L1,bd8 },
    { _,bd8 }, { H5,0,"喧",HV }, { X5,bd16 }, { X6,bd16 }, { H5,0,"闹",HV }, { L1,bd16 }, { L2,bd16 }, { H3,0,"的",HV }, { L1,bd16 }, { X6,bd16 }, { H5,0,"街 ",HV }, { L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { H5,0,"没",HV }, { L1 },
    { H5,bd8,"发",HV }, { H6,0,"现",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"我",HV }, { X7 }, { H4,0,"的",HV }, { X5,bd16 }, { H3,0,"泪\n",HV }, { X7,bd16 },/*H3,0,"",HV}*/{ X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"被",HV }, { X6 },
    { H3,bd8,"遗",HV }, { H4,0,"忘",HV }, { X6 }, { H3,0,"在",HV }, { X5 }, { H2,bd16,"街",HV }, { H1,bd16,"角\n",HV },/*{H1,0,"",HV},*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd8,"away\n\n",HV }, { H3,0,"",HV }, { X6,bd16 }, { H2,bd16 }, { H1,bd4 }, { H3 },
    { H3,0,"music",HV }, { X6 }, { H2,0,".",HV }, { X6 }, { H2,0,".",HV }, { X5 }, { H1,bd8,".",HV }, { H2,0,".",HV }, { X4,bd16 }, { H1,bd16,"",HV }, { M6,bd16,".",HV }, { X4,bd16 }, { M6,bd8,".",HV }, { M6,0,".",HV }, { X4 },
    { M6,bd16,".",HV }, { X4,bd16 }, { M7,0,".",HV }, { L1,bd16 }, { L2,bd16 }, { H1,0,".",HV }, { L1 }, { H2,0,".",HV }, { X4 }, { M7,0,".",HV }, { X3,bd8 + bd16 }, { X3,bd16 }, { _,bd8 }, { X3 },
    { M1,0,"." }, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { L4 }, { M1 }, { H1,0,".",HV }, { L3 }, { H2,0,".",HV }, { L7,0,"." }, { X5 }, { L2 }, { L5 }, { L2 },
    { M1 }, { L3 }, { H3,0,".",HV }, { L7 }, { H2,0,".",HV }, { L2,bd16 }, { H2,bd16,".",HV }, { H2,0,".",HV }, { L6,0 ,"." }, { X4 }, { H1,0,".",HV }, { L1 }, { L4 }, { L1 },
};
unit main_melody3[] = {
    //第三段
    { L6 }, { L2 }, { L4 }, { L2 }, { H3,0,"Wo ",HV }, { L5,0 }, { L3,0 }, { L1 }, { H4,bd8,"",HV }, { H3,bd8,"Wo ",HV }, { H4,0,"",HV }, { L5,0 }, { L3,0 }, { L1 },
    { H3,0,"",HV }, { L5 + 1,0 }, { L3,0 }, { X7 }, { H3,bd8,"总",HV }, { H3,bd8,"以",HV }, { H3,0,"为 ",HV }, { L5 + 1,0 }, { L3,0 }, { X7 }, { L1 }, { H3,0,"爱",HV }, { L3 }, { H3,0,"是",HV }, { L5 + 1 }, { H1,bd8,"全",HV },
    { H2,0,"部",HV }, { X5 }, { H3,0,"的",HV }, { X7 }, { H4,0,"心",HV }, { L2 }, { H3,bd8,"跳\n",HV }, { X6 }, { H1,0,"失",HV }, { L1 }, { H1,0,"去",HV }, { L3 }, { M6,bd8,"爱",HV },
    { M7,0,"我",HV }, { L3 }, { H1,0,"们",HV }, { L5 }, { H2,0,"就",HV }, { L7 }, { H3,bd8,"要",HV }, { H1,0," ",HV }, { L4 }, { L6 }, { H2,0,"就",HV }, { M1 }, { H1,bd8,"要\n",HV },
    { X6 }, { M6,0,"一",HV }, { L1 }, { M6,0,"点",HV }, { L3 }, { M6,bd8,"点",HV }, { H3,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H4,0,"慢",HV }, { L7,0 }, { L5,0 }, { L3 }, { H5,0,"地",HV }, { L7,0 }, { L5,0 }, { L3 }, { H3,0,"死",HV }, { L7,0 }, { L5,0 }, { L3 },
    { H2,0,"掉\n",HV }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { L7,0 }, { L5,0 }, { L2 }, { M5,0,"当",HV }, { L7,0 }, { L5,0 }, { L2 }, { H5,0,"我 ",HV }, { M3,0 }, { M1,0 }, { L5,bd4 + bd8 },/*{H3,bd16,"",HV},{M3,0},{M1,0},{L5,bd16 + bd8},*/{ H3,0,"失",HV }, { M3,0 }, { M1,0 }, { L5 },
    { H4,0,"去",HV }, { L1 }, { H6,0,"你",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"那",HV }, { X7 }, { H4,0,"一",HV }, { X5,bd16 }, { H3,0,"秒\n",HV }, { X7,bd16 },/*{H3,0,"",HV},*/{ X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"心",HV }, { X6 },
    { H3,bd8,"突",HV }, { H4,0,"然",HV }, { X6 }, { H3,0,"就",HV }, { X5 }, { H2,bd16,"变",HV }, { H1,bd16,"老\n",HV },/*{H1,0,"",HV},*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd16,"away\n",HV }, { H3,bd16,"",HV },/*{H3,0,"",HV},*/{ L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { L1 },
    { _,bd8 }, { H5,0,"喧",HV }, { X5,bd16 }, { X6,bd16 }, { H5,0,"闹",HV }, { L1,bd16 }, { L2,bd16 }, { H3,0,"的",HV }, { L1,bd16 }, { X6,bd16 }, { H5,0,"街 ",HV }, { L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { H5,0,"没",HV }, { L1 },
    { H5,bd8,"发",HV }, { H6,0,"现",HV }, { X5,bd16 }, { L1,bd16 }, { H5,0,"我",HV }, { X7 }, { H4,0,"的",HV }, { X5,bd16 }, { H3,0,"泪\n",HV }, { X7,bd16 },/*{H3,0,"",HV},*/{ X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"被",HV }, { X6 },
    { H3,bd8,"遗",HV }, { H4,0,"忘",HV }, { X6 }, { H3,0,"在",HV }, { X5 }, { H2,bd16,"街",HV }, { H1,bd16,"角\n",HV },/*{H1,0,"",HV},*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd16 }, { M6,0,"The ",HV }, { X4 },
    { H1,bd8,"day ",HV }, { H2,0,"you ",HV }, { X4 }, { H3,0,"went ",HV }, { X5 }, { H4,bd8,"away\n",HV }, { H3,0,"",HV }, { X6,bd16 }, { H2,bd16,"",HV }, { H1,bd8 + bd4,"",HV },
    { _,bd8 }, { H5,0,"有",HV }, { X6 }, { H5,0,"一",HV }, { X5 }, { H3,bd8,"天",HV }, { H6,0,"也",HV }, { L1,bd8 }, { H5,bd16,"许",HV }, { L1,bd16 }, { H3,bd8,"我",HV }, { H6,0,"能",HV }, { L1 },
    { H5,bd8,"把",HV }, { H3,0,"自",HV }, { X5,bd16 }, { L1,bd16 }, { H6,0,"己",HV }, { X7 }, { H5,0,"治",HV }, { X5,bd16 }, { H3,0,"好\n",HV }, { X7,bd16 },/*{H3,0,"",HV},*/{ X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"再",HV }, { X6 },
    { H3,bd8,"一",HV }, { H4,0,"次",HV }, { X6 }, { H3,0,"想",HV }, { X5 }, { H2,bd16,"起",HV }, { H1,bd16,"来 ",HV },/*{H1,0,"",HV},*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd8 }, { M6,0,"应",HV }, { X4 },
    { H1,bd8,"该",HV }, { H2,0,"要",HV }, { X4 }, { H3,0,"怎",HV }, { X5 }, { H4,bd16,"么",HV }, { H3,bd16,"笑\n",HV },/*{H3,0,"",HV},*/{ L1,bd8 + bd16 }, { L1,bd16 }, { _,bd8 }, { L1 },
    { _,bd8 }, { H5,0,"第",HV }, { X5,bd16 }, { X6,bd16 }, { H5,0,"一",HV }, { L1,bd16 }, { L2,bd16 }, { H3,0,"次",HV }, { L1,bd16 }, { X6,bd16 }, { H6,0,"爱",HV }, { L1 }, { H5,bd16,"的",HV }, { L1,bd16 }, { H3,bd8,"人",HV }, { H6,0,"他",HV }, { L1 },
    { H5,bd8,"的",HV }, { H3,0,"坏",HV }, { X5,bd16 }, { L1,bd16 }, { H6,0,"他",HV }, { X7 }, { H5,0,"的",HV }, { X5,bd16 }, { X7,bd16 }, { H3,0,"好\n",HV }, { X6,bd8 + bd16 }, { X6,bd16 }, { _,bd8 }, { H3,0,"却",HV }, { X6 },
    { H3,bd8,"像",HV }, { H4,0,"胸",HV }, { X6 }, { H3,0,"口",HV }, { X5 }, { H2,bd16,"刺",HV }, { H1,bd16,"青 ",HV },/*{H1,0,"",HV},*/{ X4,bd8 + bd16 }, { X4,bd16 }, { _,bd16 }, { M6,0,"是",HV }, { X4 },
    { H1,bd8,"永",HV }, { H2,0,"远",HV }, { X4 }, { H3,0,"的",HV }, { X5 }, { H4,bd16,"记",HV }, { H3,bd16,"号\n",HV },/*{H3,0,"",HV},*/{ X6,bd8 + bd16 }, { X6,bd16 }, { _,bd16 }, { H3,0,"跟",HV }, { X6 },
    { H3,bd8,"着",HV }, { H2,0,"我",HV }, { X6 }, { H2,0,"的",HV }, { X5 }, { H1,bd8,"呼",HV }, { H2,0,"吸 ",HV }, { X4,bd8 }, { H1,bd4 + bd16,"",HV },/*{M6,bd16,"",HV},*//*{X4,bd4},*/{ M6,0,"直",HV }, { X4 },
    { M6,bd16,"到",HV }, { X4,bd16 }, { M7,0,"停",HV }, { L1,bd16 }, { L2,bd16 }, { H1,0,"止",HV }, { L1 }, { H2,0,"心",HV }, { X4 }, { M7,0,"跳\n\n",HV }, { X3,bd8 + bd16 }, { X3,bd16 }, { _,bd8 }, { X3 },
    第四段
    { M1, 0 ,"music"}, { X6 }, { L3 }, { L6 }, { L3 },
    { M2 }, { L4 }, { M1 }, { L3 }, { L7,0 ,"." }, { X5 }, { L2 }, { L5 }, { L2 }, { M1 }, { L3 }, { L7 }, { L2 },
    { L6, 0 ,"." }, { X4 }, { L1 }, { L4 }, { EL1 }, { L6 }, { L2 }, { L4 }, { L2 },
    { L7, 0 ,"." }, { X3 }, { X7 }, { L6,0 , "." }, { L2 }, { L5 + 1,0 , "." }, { L3 }, { _,bd4 + bd4 },
};
void play_main(HMIDIOUT handle) {
    midiOutShortMsg(handle, 0 * 0x100 + 0xC0);
    PLAY(main_melody1, 0);
    system("cls");
    cout << "\n第 一 次 爱 的 人\n\n";
    PLAY(main_melody2, 0);
    system("cls");
    cout << "\n第 一 次 爱 的 人\n\n";
    PLAY(main_melody3, 0);
    cout << "end";
}
int main()
{
    HMIDIOUT handle;
    midiOutOpen(&handle, 0, 0, 0, CALLBACK_NULL);
    Sleep(1000);
    play_main(handle);
    midiOutClose(handle);
    return 0;
}

3.typora的导出

3.1 导出为pdf

3.2 导出为word文档

3.2.1 下载与安装pandoc

安装包在百度网盘的链接:https://pan.baidu.com/s/1LUodcD7xY_9OQefHVHot7Q

提取码:1314

3.2.2 typora配置pandoc

配置完毕,重启 typora

3.2.3 导出为word

3.3 📍 作业展示

  1. pdf格式文档图片
  2. word格式文档图片

相关文章
|
7天前
|
Ubuntu Linux Shell
github用存在的私钥在Linux上配置免密登录
在Linux上配置GitHub免密登录,使用已有的私钥。系统环境为Ubuntu 22.04.3 LTS。步骤包括:1) 将名为`github`的私钥文件上传至`~/.ssh/github`;2) 设置正确权限`chmod 600 ~/.ssh/github`和`chmod 700 ~/.ssh`;3) 启动SSH代理并添加私钥`ssh-agent -s`和`ssh-add ~/.ssh/github`。完成上述步骤后,可以无缝使用GitHub。
15 0
|
12天前
|
算法 程序员 开发工具
GitHub上新!14个Python项目详细教程(附完整代码)
Python作为程序员的宠儿,越来越得到人们的关注,使用Python进行应用程序开发的也越来越多。 今天给小伙伴们分享的这份项目教程完整代码已上传至GitHub,你可以选择跟着这份教程一段一段的手敲出来这几个项目,也可以直接从GitHub上copy下来。
|
15天前
|
Shell 开发工具 git
[oeasy]python019_ 如何在github仓库中进入目录_找到程序代码_找到代码
本文档介绍了如何在终端环境下使用Git克隆仓库后,通过`cd`、`pwd`和`ls`命令导航并找到下载的文件。首先,使用`ls`查看当前目录,然后通过`cd`逐层进入目标文件夹,最后到达包含游戏文件game.py的位置。文章还提到了如果`git clone`失败,可以直接进行下一节实验。
19 0
|
18天前
|
网络安全
IDEA 提交代码到 GitHub 时发生错误
摘要: 在遇到访问 GitHub 时的错误,这两个命令分别用于处理 SSL 连接问题和连接超时问题。
|
21天前
|
算法 程序员 开发工具
GitHub上新!14个Python项目详细教程(附完整代码)
Python作为程序员的宠儿,越来越得到人们的关注,使用Python进行应用程序开发的也越来越多。 今天给小伙伴们分享的这份项目教程完整代码已上传至GitHub,你可以选择跟着这份教程一段一段的手敲出来这几个项目,也可以直接从GitHub上copy下来。
|
23天前
|
Shell Linux 开发工具
如何在vs上提交代码到gitee/github?
如何在vs上提交代码到gitee/github?
|
30天前
|
文字识别 异构计算 Python
关于Github中开源OCR项目的实验过程与思考
新手尝试Git clone Python OCR项目,遇到各种报错。测试了Paddle OCR、Tesseract OCR和EasyOCR。Paddle OCR因平台限制未能在Notebook部署,Tesseract OCR在Colab成功但无法复现。EasyOCR最终在阿里云天池和Colab部署成功,但天池GPU资源不足。建议使用魔搭社区的实例,阿里云提供免费OCR服务。寻求简单OCR项目推荐。附EasyOCR安装和使用代码。
60 2
|
30天前
|
人工智能 自然语言处理 iOS开发
『GitHub项目圈选19』推荐5款本周 让人爱不释手 的开源项目
『GitHub项目圈选19』推荐5款本周 让人爱不释手 的开源项目
|
30天前
|
存储 Web App开发 人工智能
『GitHub项目圈选18』推荐5款本周 超实用 的开源项目
『GitHub项目圈选18』推荐5款本周 超实用 的开源项目
203 1
|
30天前
|
人工智能 物联网 机器人
『GitHub项目圈选17』推荐5款本周 火火火 的AI开源项目
『GitHub项目圈选17』推荐5款本周 火火火 的AI开源项目
473 1