test publish

Dependencies:   mbed GroveEarbudSensor

GypsyScale.cpp

Committer:
age2pierre
Date:
2016-04-14
Revision:
13:879d678baf64
Parent:
5:ee265ab0752d

File content as of revision 13:879d678baf64:

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