Kevin Rhyne
/
Solenocarina
Self-playing Ocarina!
Fork of Solenoc by
Diff: Song.h
- Revision:
- 0:a50960b2f6bd
diff -r 000000000000 -r a50960b2f6bd Song.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Song.h Tue Dec 08 12:23:46 2015 +0000 @@ -0,0 +1,26 @@ +#ifndef SONG_H +#define SONG_H + +#include <vector> +#include <utility> +#include <string> +#include <iostream> +#include <fstream> +#include "mbed.h" + +using namespace std; + +class Song{ + private: + vector< pair<string, int> > noteChart; //Vector of (note, length) + public: + Song(string); + int getBinaryNote(string); + void buildSong(); + int size(); + string getNote(int); + int getLength(int); + +}; + +#endif \ No newline at end of file