assignment4+backbeat

Dependencies:   mbed C12832

music.h

Committer:
KalebBro
Date:
2014-02-26
Revision:
5:920db2f3019c
Parent:
3:4e4bd058ef5d

File content as of revision 5:920db2f3019c:

enum NoteName {C0=0,Cs0,D0,Eb0,E0,F0,Fs0,G0,Gs0,A0,Bb0,B0,
                 C1,Cs1,D1,Eb1,E1,F1,Fs1,G1,Gs1,A1,Bb1,B1,
                 C2,Cs2,D2,Eb2,E2,F2,Fs2,G2,Gs2,A2,Bb2,B2,
                 C3,Cs3,D3,Eb3,E3,F3,Fs3,G3,Gs3,A3,Bb3,B3,
                 C4,Cs4,D4,Eb4,E4,F4,Fs4,G4,Gs4,A4,Bb4,B4,
                 C5,Cs5,D5,Eb5,E5,F5,Fs5,G5,Gs5,A5,Bb5,B5,
                 C6,Cs6,D6,Eb6,E6,F6,Fs6,G6,Gs6,A6,Bb6,B6,
                 C7,Cs7,D7,Eb7,E7,F7,Fs7,G7,Gs7,A7,Bb7,B7,
                 C8,Cs8,D8,Eb8,E8,F8,Fs8,G8,Gs8,A8,Bb8,B8,R};
//frequencies for all of the notes
float notes[]={16.35,17.32,18.35,19.45,20.60,21.83,23.12,24.50,25.96,27.50,29.14,30.87,
               32.70,34.65,36.71,38.89,41.20,43.65,46.25,49.00,51.91,55.00,58.27,61.74,
               65.41,69.30,73.42,77.78,82.41,87.31,92.50,98.00,103.8,110.0,116.5,123.5,
               130.8,138.6,146.8,155.6,164.8,174.6,185.0,196.0,207.7,220.0,233.1,246.9,
               261.6,277.2,293.7,311.1,329.6,349.2,370.0,392.0,415.3,440.0,466.2,493.9,
               523.3,554.4,587.3,622.3,659.3,698.5,740.0,784.0,830.6,880.0,932.3,987.8,
               1047,1109,1175,1245,1319,1397,1480,1568,1661,1760,1865,1976,
               2093,2217,2349,2489,2637,2794,2960,3136,3322,3520,3729,3951,
               4186,4435,4699,4978,5274,5588,5920,6272,6645,7040,7459,7902,0};

char lyrics[][100] = {
"This was a triumph.",
"\r\n \r\n \r\n  I'm making a note here:  \r\n  HUGE SUCCESS.",
"\r\n \r\n  It's hard to overstate my satisfaction.",
"\r\n \r\n \r\n  Aperture Science",
"\r\n \r\n \r\n  We do what we must",
"because we can.",
"\r\n \r\n For the good of all of us.\r\n",
"\r\n \r\n  Except the ones who are  dead.",
"\r\n \r\n   But there's no sense   \r\n crying over every mistake.",
"\r\n You just keep on trying \r\n till you run out of cake.",
"\r\n \r\n \r\n And the Science gets done.",
"\r\n \r\n \r\n And you make a neat gun.",
"\r\n \r\n \r\n For the people who are \r\n still alive.",
"\r\n \r\n \r\n       <3 ",
"\r\n \r\n \r\n I'm not even angry.",
"I'm being so sincere \r\n right now.",
"\r\n \r\n  Even though you broke \r\n my heart.",
"\r\n \r\n \r\n And killed me.",
"\r\n \r\n \r\n And tore me to pieces.",
"\r\n \r\n And threw every piece \r\n into a fire.",
"\r\n \r\n \r\n   As they burned it hurt",
"\r\n \r\n  because I was so \r\n  happy for you!",
"\r\n \r\n  Now these points of data  make a beautiful line.",
"\r\n \r\n \r\n And we're out of beta.",
"\r\n \r\n \r\n We're releasing on time.",
"\r\n \r\n \r\n So I'm GLaD. I got burned.",
"\r\n  Think of all the things \r\n we learned",
"\r\n \r\n for the people who are \r\n still alive.",
"\r\n \r\n \r\n       <3 ",
"\r\n \r\n \r\n Go ahead and leave me.",
"\r\n \r\n I think I prefer to \r\n stay inside.",
"\r\n Maybe you'll find someone \r\n  else to help you.",
"\r\n \r\n \r\n Maybe Black Mesa",
"\r\n \r\n \r\n THAT WAS A JOKE.",
"HAHA. FAT CHANCE.",
"\r\n \r\n \r\n Anyway, this cake is great.",
"\r\n \r\n \r\n It's so delicious and moist.",
"\r\n \r\n \r\n Look at me still talking",
"\r\n \r\n \r\n   when there's Science to do.",
"\r\n \r\n   When I look out there, \r\n it makes me GLaD \r\n I'm not you.",
"\r\n \r\n \r\n I've experiments to run.",
"\r\n \r\n There is research \r\n  to be done.",
"\r\n \r\n  On the people who are \r\n still alive.",
"\r\n \r\n And believe me \r\n I am  still alive.",
"\r\n \r\n  I'm doing Science \r\n and I'm still alive.",
"\r\n \r\n I feel FANTASTIC \r\n and I'm still alive.",
"\r\n \r\n While you're dying \r\n I'll be still alive.",
"\r\n \r\n And when you're dead \r\n I will be still alive.",
"\r\n \r\n \r\n Still alive.",
"Still alive."};