#ifndef TONLEITER_DATA_HELPER_H #define TONLEITER_DATA_HELPER_H #include #include namespace Data { namespace Note { const QString notenames[]={"A","Bb","B","C","C#","D","D#","E","F","F#","G","G#"}; int getOctaveOfNote(int note); QString getNameOfNote(int note); int getNoteFromName(QString name,int octave); int octaveOfBaseNote(int base,int note); }; class Instrument { private: QString name; int frets; QValueList strings; public: Instrument(); Instrument(QString name,int frets,QValueList strings); ~Instrument(); public: int noOfStrings(); int noOfFrets(); QString instName(); int string(int id); int noOfOctaves(); int lowestNote(); int highestNote(); }; class Scale { private: QValueList halftones; QString name; public: Scale(); Scale(QString name,QValueList halftones); ~Scale(); public: int noOfHaltones(); int getHalfTone(int id); QString scaleName(); bool noteInScale(int base,int note); }; }; #endif //TONLEITER_DATA_HELPER_H