test publish

Dependencies:   mbed GroveEarbudSensor

GypsyScale.cpp

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

File content as of revision 5:ee265ab0752d:

#include "GypsyScale.h"

Notes GypsyScale::getSupertonic()
{
    return (Notes) ((int)tonality + 2) ;
}

Notes GypsyScale::getMediant()
{
    return (Notes) ((int)tonality + 3 );
}

Notes GypsyScale::getSubdominant()
{
    return (Notes) ((int)tonality + 6);
}

Notes GypsyScale::getDominant()
{
    return (Notes) ((int)tonality + 7);
}

Notes GypsyScale::getSuperdominant()
{
    return (Notes) ((int) tonality + 8) ;
}

Notes GypsyScale::getSubtonic()
{
    return (Notes) ((int)tonality + 11) ;
}