test publish
Dependencies: mbed GroveEarbudSensor
Diff: MajorScale.cpp
- Revision:
- 5:ee265ab0752d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MajorScale.cpp Fri Mar 25 11:17:39 2016 +0000 @@ -0,0 +1,31 @@ +#include "MajorScale.h" + +Notes MajorScale::getSupertonic() +{ + return (Notes) ((int)tonality + 2); +} + +Notes MajorScale::getMediant() +{ + return (Notes) ((int)tonality + 4) ; +} + +Notes MajorScale::getSubdominant() +{ + return (Notes) ((int)tonality + 5); +} + +Notes MajorScale::getDominant() +{ + return (Notes) ((int)tonality + 7); +} + +Notes MajorScale::getSuperdominant() +{ + return (Notes) ((int)tonality + 9) ; +} + +Notes MajorScale::getSubtonic() +{ + return (Notes) ((int)tonality + 11) ; +} \ No newline at end of file