196 lines
4.9 KiB
C
196 lines
4.9 KiB
C
|
#include "music.h"
|
||
|
|
||
|
const struct Note SONG_SKYRIM_NOTES[] = {
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_F5, 8 / 3),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_A5, 8 / 3),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_C5, 8),//10
|
||
|
makeNote(NOTE_G5, 8 / 3),
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 8 / 3),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_F5, 8 / 3),
|
||
|
makeNote(NOTE_F5, 8),//20
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_A5, 8 / 3),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_C5, 8),
|
||
|
makeNote(NOTE_D5, 8 / 3),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_C5, 8),
|
||
|
makeNote(NOTE_E5, 8),//30
|
||
|
makeNote(NOTE_D5, 8 / 3),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_F5, 4),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_C5, 4),
|
||
|
makeNote(NOTE_B5, 8),//40
|
||
|
makeNote(NOTE_B5, 8),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_G5, 8 / 3),
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_G5, 8 / 3),
|
||
|
makeNote(NOTE_G5, 4),
|
||
|
makeNote(NOTE_F5, 16),
|
||
|
makeNote(NOTE_E5, 16),//50
|
||
|
makeNote(NOTE_F5, 4),
|
||
|
makeNote(NOTE_F5, 16),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_F5, 4),
|
||
|
makeNote(NOTE_F5, 16),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 4),//60
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_F5, 8),//70
|
||
|
makeNote(NOTE_C5, 8),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_F5, 4),
|
||
|
makeNote(NOTE_F5, 16),
|
||
|
makeNote(NOTE_G5, 16),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_F5, 16),//80
|
||
|
makeNote(NOTE_G5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 4),//90
|
||
|
makeNote(NOTE_C5, 16),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_F5, 8),
|
||
|
makeNote(NOTE_C5, 8),
|
||
|
makeNote(NOTE_D5, 8 / 3),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_REST, 8),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_REST, 8),//100
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_REST, 8),
|
||
|
makeNote(NOTE_D5, 4),
|
||
|
makeNote(NOTE_REST, 8)
|
||
|
};
|
||
|
|
||
|
const struct Song SONG_SKYRIM = makeSong(120, 104, SONG_SKYRIM_NOTES);
|
||
|
|
||
|
const struct Note SONG_HOBBIT_NOTES2[] = {
|
||
|
makeNote(NOTE_D2, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_D3, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_D2, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_D3, 4),
|
||
|
makeNote(NOTE_REST, 4),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_FS5, 4),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_FS5, 8),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_FS5, 16),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_D5, 1.5),
|
||
|
makeNote(NOTE_REST, 8),
|
||
|
makeNote(NOTE_FS5, 4),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_B5, 4.0/3),
|
||
|
makeNote(NOTE_D6, 8),
|
||
|
makeNote(NOTE_CS6, 4.0/3),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_FS5, 4.0/3),
|
||
|
makeNote(NOTE_G5, 16),
|
||
|
makeNote(NOTE_FS5, 16),
|
||
|
makeNote(NOTE_E5, 4.0/3),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_FS5, 4),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_FS5, 16),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 8),
|
||
|
makeNote(NOTE_E5, 16),
|
||
|
makeNote(NOTE_D5, 1.5),
|
||
|
makeNote(NOTE_REST, 8),
|
||
|
makeNote(NOTE_FS5, 4),
|
||
|
makeNote(NOTE_A5, 8),
|
||
|
makeNote(NOTE_B5, 1.5),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_FS5, 4),
|
||
|
makeNote(NOTE_FS5, 1.5),
|
||
|
makeNote(NOTE_E5, 1.5),
|
||
|
makeNote(NOTE_D5, 16),
|
||
|
makeNote(NOTE_E5, 8),
|
||
|
makeNote(NOTE_D5, 4.0/3),
|
||
|
makeNote(NOTE_D3, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_D2, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_D3, 4),
|
||
|
makeNote(NOTE_A2, 4)
|
||
|
};
|
||
|
|
||
|
const struct Song SONG_HOBBIT = makeSong(104, 54, SONG_HOBBIT_NOTES2);
|
||
|
|
||
|
const struct Note SONG_TEST_NOTES[] = {
|
||
|
makeNote(NOTE_A1, 4),
|
||
|
makeNote(NOTE_A2, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A4, 4),
|
||
|
makeNote(NOTE_A5, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4),
|
||
|
makeNote(NOTE_A3, 4),
|
||
|
makeNote(NOTE_A6, 4)
|
||
|
};
|
||
|
|
||
|
const struct Song SONG_TEST = makeSong(60, 18, SONG_TEST_NOTES);
|
||
|
|
||
|
const struct Song SONGS[] = {SONG_SKYRIM, SONG_HOBBIT};
|
||
|
#define SONG_COUNT 2
|