Skip to content

Instantly share code, notes, and snippets.

@mingtsay
Created December 13, 2018 09:42
Show Gist options
  • Save mingtsay/22859d680a73683e43f9d3e44f2e1101 to your computer and use it in GitHub Desktop.
Save mingtsay/22859d680a73683e43f9d3e44f2e1101 to your computer and use it in GitHub Desktop.
// 1~7 16(0) = C4, 16(1) = #C4
// 8(0) = C4, 8(1) = C5
// 32(1) 8(0) = C3, 8(1) = C6
unsigned short notes[] = {
0, NOTE_C4, NOTE_D4, NOTE_E4, NOTE_F4, NOTE_G4, NOTE_A4, NOTE_B4,
0, NOTE_C5, NOTE_D5, NOTE_E5, NOTE_F5, NOTE_G5, NOTE_A5, NOTE_B5,
0, NOTE_CS4, NOTE_EB4, NOTE_F4, NOTE_FS4, NOTE_GS4, NOTE_BB4, NOTE_C5,
0, NOTE_CS5, NOTE_EB5, NOTE_F5, NOTE_FS5, NOTE_GS5, NOTE_BB5, NOTE_C6,
0, NOTE_C3, NOTE_D3, NOTE_E3, NOTE_F3, NOTE_G3, NOTE_A3, NOTE_B3,
0, NOTE_C6, NOTE_D6, NOTE_E6, NOTE_F6, NOTE_G6, NOTE_A6, NOTE_B6,
0, NOTE_CS3, NOTE_EB3, NOTE_F3, NOTE_FS3, NOTE_GS3, NOTE_BB3, NOTE_C4,
0, NOTE_CS6, NOTE_EB6, NOTE_F6, NOTE_FS6, NOTE_GS6, NOTE_BB6, NOTE_C7
};
// notes from http://www.qupu123.com/jipu/p310339.html
unsigned short shinkai_shoujo[] = {
0x0102, 0x0202, 0x0302, 0x0202, 0x0302, 0x0502, 0x0204, 0x2702,
0x2702, 0x0104, 0x2702, 0x2602, 0x2702, 0x2502, 0x0002, 0x2502,
0x2604, 0x0104, 0x0202, 0x0102, 0x0202, 0x0204, 0x0002, 0x0304,
0x0004, 0x0102, 0x0202, 0x0302, 0x0202, 0x0302, 0x0502, 0x0704,
0x0502, 0x0604, 0x0502, 0x0302, 0x0502, 0x0504, 0x0002, 0x0101,
0x0201, 0x0302, 0x0102, 0x0002, 0x0101, 0x0101, 0x0202, 0x2702,
0x2502, 0x2702, 0x2704, 0x2702, 0x2602, 0x2604, 0x0002, 0x0202,
0x0302, 0x0202, 0x0302, 0x0502, 0x0204, 0x2704, 0x0102, 0x0102,
0x2702, 0x2602, 0x2704, 0x0002, 0x2502, 0x2604, 0x0102, 0x0102,
0x0202, 0x0101, 0x0101, 0x0202, 0x0202, 0x0202, 0x0102, 0x0202,
0x0502, 0x0302, 0x0002, 0x0102, 0x0202, 0x0302, 0x0202, 0x0302,
0x0502, 0x0704, 0x0902, 0x0702, 0x0602, 0x0502, 0x0302, 0x0502,
0x0504, 0x0002, 0x0101, 0x0201, 0x0302, 0x0202, 0x0102, 0x2702,
0x0202, 0x2702, 0x2502, 0x2702, 0x2704, 0x2702, 0x2602, 0x2604,
0x0002, 0x0102, 0x0502, 0x0502, 0x0502, 0x0502, 0x0502, 0x0402,
0x0302, 0x0202, 0x0204, 0x0102, 0x2701, 0x0105, 0x0002, 0x2502,
0x0202, 0x0102, 0x0202, 0x0102, 0x0204, 0x0202, 0x0102, 0x0202,
0x0502, 0x0302, 0x0202, 0x0304, 0x0002, 0x0102, 0x0502, 0x0501,
0x0503, 0x0901, 0x0702, 0x0603, 0x0502, 0x0602, 0x0502, 0x0302,
0x0202, 0x0304, 0x0002, 0x0102, 0x0204, 0x0102, 0x0204, 0x0102,
0x0502, 0x030a,
0x0302, 0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302, 0x0002,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0304, 0x0202,
0x0102, 0x0102, 0x0002, 0x2602, 0x0102, 0x0402, 0x0302, 0x0202,
0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0302, 0x0002, 0x0302,
0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302, 0x0002, 0x0202,
0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0304, 0x0202, 0x0102,
0x0102, 0x0002, 0x0604, 0x0504, 0x0302, 0x0502, 0x0702, 0x0702,
0x0702, 0x0902, 0x0a02, 0x0702, 0x0502, 0x0702, 0x070e, 0x0602,
0x0610, 0x0010,
0x0102, 0x0202, 0x0302, 0x0202, 0x0302, 0x0502, 0x0204, 0x2704,
0x0102, 0x0102, 0x2702, 0x2602, 0x2704, 0x0002, 0x2502, 0x2604,
0x0102, 0x0102, 0x0202, 0x0102, 0x0202, 0x0201, 0x0201, 0x0202,
0x0102, 0x0202, 0x0502, 0x0302, 0x0002, 0x0102, 0x0202, 0x0302,
0x0202, 0x0302, 0x0502, 0x0704, 0x0902, 0x0702, 0x0602, 0x0502,
0x0302, 0x0502, 0x0502, 0x0004, 0x0101, 0x0201, 0x0302, 0x0202,
0x0102, 0x2702, 0x0202, 0x2702, 0x2502, 0x2702, 0x2706, 0x2602,
0x2604, 0x0002, 0x0102, 0x0502, 0x0502, 0x0502, 0x0501, 0x0501,
0x0502, 0x0402, 0x0302, 0x0202, 0x0204, 0x0102, 0x2701, 0x0105,
0x0002, 0x2502, 0x0202, 0x0102, 0x0202, 0x0102, 0x0204, 0x0202,
0x0102, 0x0204, 0x0502, 0x0202, 0x0304, 0x0002, 0x0102, 0x0501,
0x0501, 0x0501, 0x0501, 0x0501, 0x0501, 0x0501, 0x0501, 0x0901,
0x0702, 0x0603, 0x0502, 0x0603, 0x0703, 0x0202, 0x0304, 0x0002,
0x0102, 0x0203, 0x0101, 0x0102, 0x0204, 0x0102, 0x0502, 0x0309,
0x0004, 0x0302, 0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302,
0x0002, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0304,
0x0202, 0x0102, 0x0102, 0x0002, 0x2602, 0x0102, 0x0402, 0x0302,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0302, 0x0002,
0x0302, 0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302, 0x0302,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0304, 0x0202,
0x0102, 0x0102, 0x0002, 0x0602, 0x0502, 0x0504, 0x0302, 0x0502,
0x0702, 0x0702, 0x0702, 0x0902, 0x0a02, 0x0702, 0x0502, 0x0702,
0x070e, 0x0602, 0x0908, 0x0004, 0x0302, 0x0502, 0x0602, 0x0602,
0x0602, 0x0601, 0x0603, 0x0602, 0x0702, 0x0902, 0x0702, 0x0602,
0x0502, 0x0304, 0x0502, 0x0002, 0x0302, 0x0502, 0x0502, 0x0502,
0x0501, 0x0503, 0x0502, 0x0702, 0x0a02, 0x0a02, 0x0902, 0x0902,
0x0704, 0x0902, 0x0002, 0x0502, 0x0604, 0x0902, 0x0704, 0x0602,
0x0502, 0x0302, 0x0502, 0x0302, 0x0502, 0x0604, 0x0602, 0x0702,
0x0902, 0x0708, 0x0004, 0x0304, 0x0504, 0x0602, 0x0a04, 0x0902,
0x0702, 0x0922,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0102,
0x0202, 0x0102, 0x0202, 0x0102, 0x0204, 0x0504, 0x2704, 0x0002,
0x0104, 0x2702, 0x0104, 0x000e, 0x2502, 0x0202, 0x0102, 0x0202,
0x0002, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202,
0x0002, 0x0504, 0x0302, 0x0202, 0x0202, 0x0302, 0x0002, 0x0302,
0x0502, 0x150a, 0x0014, 0x0302, 0x0502, 0x0702, 0x0902, 0x0702,
0x0502, 0x0302, 0x0002, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202,
0x0502, 0x0302, 0x0002, 0x0202, 0x0102, 0x0102, 0x0002, 0x2602,
0x0102, 0x0402, 0x0302, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202,
0x0502, 0x0302, 0x0002, 0x0302, 0x0502, 0x0702, 0x0902, 0x0702,
0x0502, 0x0302, 0x0002, 0x0202, 0x0102, 0x0202, 0x0102, 0x0202,
0x0502, 0x0302, 0x0002, 0x0202, 0x0102, 0x0102, 0x0002, 0x0604,
0x0502, 0x0002, 0x0302, 0x0502, 0x0702, 0x0702, 0x0702, 0x0902,
0x0a02, 0x0702, 0x0502, 0x0702, 0x070e, 0x1902, 0x1908, 0x0004,
0x0302, 0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302, 0x0002,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0302, 0x0002,
0x0202, 0x0102, 0x0102, 0x0002, 0x2602, 0x0102, 0x0402, 0x0302,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0302, 0x0002,
0x0302, 0x0502, 0x0702, 0x0902, 0x0702, 0x0502, 0x0302, 0x0002,
0x0202, 0x0102, 0x0202, 0x0102, 0x0202, 0x0502, 0x0302, 0x0002,
0x0202, 0x0102, 0x0102, 0x0002, 0x0604, 0x0504, 0x0302, 0x0502,
0x0702, 0x0702, 0x0702, 0x0902, 0x0a02, 0x0702, 0x0502, 0x0702,
0x070e, 0x0602, 0x060c, 0x0204, 0x0306, 0x0206, 0x0304, 0x0506,
0x0306, 0x0504, 0x0606, 0x070a, 0x0006, 0x0302, 0x0903, 0x0703,
0x0502, 0x061c, 0x0004, 0x071c,
0x0000
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment