test publish

Dependencies:   mbed GroveEarbudSensor

MajorScale.cpp

Committer:
age2pierre
Date:
2016-03-25
Revision:
5:ee265ab0752d

File content as of revision 5:ee265ab0752d:

#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) ;
}