test publish

Dependencies:   mbed GroveEarbudSensor

Committer:
age2pierre
Date:
Thu Apr 14 14:01:28 2016 +0000
Revision:
13:879d678baf64
Parent:
5:ee265ab0752d
Added Ticker

Who changed what in which revision?

UserRevisionLine numberNew contents of line
age2pierre 5:ee265ab0752d 1 #include "GypsyScale.h"
age2pierre 5:ee265ab0752d 2
age2pierre 5:ee265ab0752d 3 Notes GypsyScale::getSupertonic()
age2pierre 5:ee265ab0752d 4 {
age2pierre 5:ee265ab0752d 5 return (Notes) ((int)tonality + 2) ;
age2pierre 5:ee265ab0752d 6 }
age2pierre 5:ee265ab0752d 7
age2pierre 5:ee265ab0752d 8 Notes GypsyScale::getMediant()
age2pierre 5:ee265ab0752d 9 {
age2pierre 5:ee265ab0752d 10 return (Notes) ((int)tonality + 3 );
age2pierre 5:ee265ab0752d 11 }
age2pierre 5:ee265ab0752d 12
age2pierre 5:ee265ab0752d 13 Notes GypsyScale::getSubdominant()
age2pierre 5:ee265ab0752d 14 {
age2pierre 5:ee265ab0752d 15 return (Notes) ((int)tonality + 6);
age2pierre 5:ee265ab0752d 16 }
age2pierre 5:ee265ab0752d 17
age2pierre 5:ee265ab0752d 18 Notes GypsyScale::getDominant()
age2pierre 5:ee265ab0752d 19 {
age2pierre 5:ee265ab0752d 20 return (Notes) ((int)tonality + 7);
age2pierre 5:ee265ab0752d 21 }
age2pierre 5:ee265ab0752d 22
age2pierre 5:ee265ab0752d 23 Notes GypsyScale::getSuperdominant()
age2pierre 5:ee265ab0752d 24 {
age2pierre 5:ee265ab0752d 25 return (Notes) ((int) tonality + 8) ;
age2pierre 5:ee265ab0752d 26 }
age2pierre 5:ee265ab0752d 27
age2pierre 5:ee265ab0752d 28 Notes GypsyScale::getSubtonic()
age2pierre 5:ee265ab0752d 29 {
age2pierre 5:ee265ab0752d 30 return (Notes) ((int)tonality + 11) ;
age2pierre 5:ee265ab0752d 31 }