test publish

Dependencies:   mbed GroveEarbudSensor

Committer:
age2pierre
Date:
Mon Apr 11 13:30:35 2016 +0000
Revision:
8:e1beb2a9454e
Parent:
6:7cc8a333e03b
Updated main

Who changed what in which revision?

UserRevisionLine numberNew contents of line
age2pierre 6:7cc8a333e03b 1 #ifndef _MELODY_GENERATOR_H_
age2pierre 6:7cc8a333e03b 2 #define _MELODY_GENERATOR_H_
age2pierre 6:7cc8a333e03b 3
age2pierre 6:7cc8a333e03b 4 #include <string>
age2pierre 6:7cc8a333e03b 5 #include <vector>
age2pierre 6:7cc8a333e03b 6 #include "Notes.h"
age2pierre 6:7cc8a333e03b 7 #include "Scale.h"
age2pierre 6:7cc8a333e03b 8
age2pierre 6:7cc8a333e03b 9 using namespace std;
age2pierre 6:7cc8a333e03b 10
age2pierre 6:7cc8a333e03b 11 class MelodyGenerator {
age2pierre 6:7cc8a333e03b 12 public :
age2pierre 6:7cc8a333e03b 13 MelodyGenerator();
age2pierre 6:7cc8a333e03b 14 MelodyGenerator(string myMelody);
age2pierre 8:e1beb2a9454e 15 vector<Notes>* getMeasure(Scale& mode);
age2pierre 6:7cc8a333e03b 16 void changeMelody(string myMelody);
age2pierre 6:7cc8a333e03b 17 protected :
age2pierre 6:7cc8a333e03b 18 private :
age2pierre 6:7cc8a333e03b 19 string melody;
age2pierre 6:7cc8a333e03b 20 int cursor;
age2pierre 6:7cc8a333e03b 21 };
age2pierre 6:7cc8a333e03b 22
age2pierre 6:7cc8a333e03b 23 #endif