Files
Work/music/LydianAugmentedScale.hpp
2024-08-07 09:16:27 -04:00

53 lines
1.2 KiB
C++

#ifndef _MUSIC_LYDIANAUGMENTEDSCALE_HPP_
#define _MUSIC_LYDIANAUGMENTEDSCALE_HPP_
#ifndef _MUSIC_SCALE_HPP_
#include <music/scale.hpp>
#endif
class IonianScale;
class LydianAugmentedScale : public Scale
{
public:
LydianAugmentedScale(Note root=Note::A,const String &description="LydianAugmentedScale");
LydianAugmentedScale(const IonianScale &ionianScale);
LydianAugmentedScale &operator=(const IonianScale &ionianScale);
virtual ~LydianAugmentedScale();
protected:
virtual void createScale(void);
private:
};
inline
LydianAugmentedScale::LydianAugmentedScale(Note root,const String &description)
: Scale(root,description)
{
createScale();
}
inline
LydianAugmentedScale::~LydianAugmentedScale()
{
}
inline
void LydianAugmentedScale::createScale()
{
Note root(getRoot());
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::WholeStep;
Notes::operator[](4)=root;
root+=Note::HalfStep;
Notes::operator[](5)=root;
root+=Note::WholeStep;
Notes::operator[](6)=root;
root+=Note::HalfStep;
Notes::operator[](7)=root;
}
#endif