#ifndef _MUSIC_LYDIANMINORSCALE_HPP_ #define _MUSIC_LYDIANMINORSCALE_HPP_ #ifndef _MUSIC_SCALE_HPP_ #include #endif class IonianScale; class LydianMinorScale : public Scale { public: LydianMinorScale(Note root=Note::A,const String &description="LydianMinorScale"); LydianMinorScale(const IonianScale &ionianScale); LydianMinorScale &operator=(const IonianScale &ionianScale); virtual ~LydianMinorScale(); protected: virtual void createScale(void); private: }; inline LydianMinorScale::LydianMinorScale(Note root,const String &description) : Scale(root,description) { createScale(); } inline LydianMinorScale::~LydianMinorScale() { } inline void LydianMinorScale::createScale() { Note root(getRoot()); // W W W H H W W Notes::operator[](0)=root; root+=Note::WholeStep; Notes::operator[](1)=root; root+=Note::WholeStep; Notes::operator[](2)=root; root+=Note::WholeStep; Notes::operator[](3)=root; root+=Note::HalfStep; Notes::operator[](4)=root; root+=Note::HalfStep; Notes::operator[](5)=root; root+=Note::WholeStep; Notes::operator[](6)=root; root+=Note::WholeStep; Notes::operator[](7)=root; } #endif