ece312/lab_2/song.c
2019-10-19 22:15:38 -06:00

142 lines
5.8 KiB
C

#include "main.h"
const beat_t PROGMEM song_speaker0[SPEAKER0_LEN] = {
{.note = g, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = d, .duration = 6, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = g, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = f, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = d, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
{.note = c, .duration = 4, .octave = 0 },
};
const beat_t PROGMEM song_speaker1[SPEAKER1_LEN] = {
{.note = d, .duration = 2, .octave = 1 },
{.note = A, .duration = 2, .octave = 1 },
{.note = g, .duration = 2, .octave = 1 },
{.note = g, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = e, .duration = 2, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = A, .duration = 2, .octave = 1 },
{.note = g, .duration = 2, .octave = 1 },
{.note = g, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 3, .octave = 1 },
{.note = e, .duration = 2, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = A, .duration = 2, .octave = 1 },
{.note = g, .duration = 2, .octave = 1 },
{.note = g, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = e, .duration = 2, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = A, .duration = 2, .octave = 1 },
{.note = g, .duration = 2, .octave = 1 },
{.note = g, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = e, .duration = 2, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = A, .duration = 2, .octave = 1 },
{.note = g, .duration = 2, .octave = 1 },
{.note = g, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = d, .duration = 2, .octave = 1 },
{.note = d, .duration = 1, .octave = 1 },
{.note = a, .duration = 2, .octave = 1 },
{.note = f, .duration = 2, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = c, .duration = 2, .octave = 1 },
{.note = e, .duration = 2, .octave = 1 },
{.note = e, .duration = 1, .octave = 1 },
{.note = f, .duration = 1, .octave = 1 },
{.note = e, .duration = 1, .octave = 1},
};