test publish

Dependencies:   mbed GroveEarbudSensor

Committer:
age2pierre
Date:
Thu Apr 14 14:01:28 2016 +0000
Revision:
13:879d678baf64
Parent:
6:7cc8a333e03b
Added Ticker

Who changed what in which revision?

UserRevisionLine numberNew contents of line
age2pierre 5:ee265ab0752d 1 #ifndef _SCALE_H_
age2pierre 5:ee265ab0752d 2 #define _SCALE_H_
age2pierre 5:ee265ab0752d 3
age2pierre 5:ee265ab0752d 4 #include "Notes.h"
age2pierre 5:ee265ab0752d 5
age2pierre 5:ee265ab0752d 6 class Scale {
age2pierre 5:ee265ab0752d 7 public:
age2pierre 5:ee265ab0752d 8 Scale(Notes argTonality);
age2pierre 5:ee265ab0752d 9 Notes getTonic() {
age2pierre 5:ee265ab0752d 10 return tonality;
age2pierre 5:ee265ab0752d 11 };
age2pierre 5:ee265ab0752d 12 virtual Notes getSupertonic() = 0;
age2pierre 5:ee265ab0752d 13 virtual Notes getMediant() = 0;
age2pierre 5:ee265ab0752d 14 virtual Notes getSubdominant() = 0;
age2pierre 5:ee265ab0752d 15 virtual Notes getDominant() = 0;
age2pierre 5:ee265ab0752d 16 virtual Notes getSuperdominant() = 0;
age2pierre 5:ee265ab0752d 17 virtual Notes getSubtonic() = 0;
age2pierre 6:7cc8a333e03b 18 Notes applyOctaveUp(Notes myNote);
age2pierre 6:7cc8a333e03b 19 Notes applyOctaveDown(Notes myNote);
age2pierre 6:7cc8a333e03b 20 Notes applySharp(Notes myNote);
age2pierre 6:7cc8a333e03b 21 Notes applyFlat(Notes myNote);
age2pierre 5:ee265ab0752d 22 protected:
age2pierre 5:ee265ab0752d 23 Notes tonality;
age2pierre 6:7cc8a333e03b 24 private:
age2pierre 6:7cc8a333e03b 25 Notes modify(int arg, Notes arg1);
age2pierre 5:ee265ab0752d 26 };
age2pierre 5:ee265ab0752d 27
age2pierre 5:ee265ab0752d 28 #endif