test publish
Dependencies: mbed GroveEarbudSensor
Diff: MelodyGenerator.h
- Revision:
- 6:7cc8a333e03b
- Child:
- 8:e1beb2a9454e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MelodyGenerator.h Sat Mar 26 14:32:27 2016 +0000 @@ -0,0 +1,23 @@ +#ifndef _MELODY_GENERATOR_H_ +#define _MELODY_GENERATOR_H_ + +#include <string> +#include <vector> +#include "Notes.h" +#include "Scale.h" + +using namespace std; + +class MelodyGenerator { + public : + MelodyGenerator(); + MelodyGenerator(string myMelody); + vector<Notes> getMeasure(Scale& mode); + void changeMelody(string myMelody); + protected : + private : + string melody; + int cursor; +}; + +#endif \ No newline at end of file