test publish

Dependencies:   mbed GroveEarbudSensor

Scale.h

Committer:
age2pierre
Date:
2016-04-14
Revision:
13:879d678baf64
Parent:
6:7cc8a333e03b

File content as of revision 13:879d678baf64:

#ifndef _SCALE_H_
#define _SCALE_H_

#include "Notes.h"

class Scale {
    public:
        Scale(Notes argTonality);
        Notes getTonic() {
            return tonality;
        };
        virtual Notes getSupertonic() = 0;
        virtual Notes getMediant() = 0;
        virtual Notes getSubdominant() = 0;
        virtual Notes getDominant() = 0;
        virtual Notes getSuperdominant() = 0;
        virtual Notes getSubtonic() = 0;
        Notes applyOctaveUp(Notes myNote);
        Notes applyOctaveDown(Notes myNote);
        Notes applySharp(Notes myNote);
        Notes applyFlat(Notes myNote);
    protected:
        Notes tonality;
    private:
        Notes modify(int arg, Notes arg1);
};

#endif