Initial
This commit is contained in:
53
music/SuperLocrianScale.hpp
Normal file
53
music/SuperLocrianScale.hpp
Normal file
@@ -0,0 +1,53 @@
|
||||
#ifndef _MUSIC_SUPERLCORIANSCALE_HPP_
|
||||
#define _MUSIC_SUPERLOCRIANSCALE_HPP_
|
||||
#ifndef _MUSIC_SCALE_HPP_
|
||||
#include <music/scale.hpp>
|
||||
#endif
|
||||
|
||||
class IonianScale;
|
||||
|
||||
class SuperLocrianScale : public Scale
|
||||
{
|
||||
public:
|
||||
SuperLocrianScale(Note root=Note::A,const String &description="SuperLocrianScale");
|
||||
SuperLocrianScale(const IonianScale &ionianScale);
|
||||
SuperLocrianScale &operator=(const IonianScale &ionianScale);
|
||||
virtual ~SuperLocrianScale();
|
||||
protected:
|
||||
virtual void createScale(void);
|
||||
private:
|
||||
};
|
||||
|
||||
inline
|
||||
SuperLocrianScale::SuperLocrianScale(Note root,const String &description)
|
||||
: Scale(root,description)
|
||||
{
|
||||
createScale();
|
||||
}
|
||||
|
||||
inline
|
||||
SuperLocrianScale::~SuperLocrianScale()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
void SuperLocrianScale::createScale()
|
||||
{
|
||||
Note root(getRoot()); // H W H W W W W
|
||||
Notes::operator[](0)=root;
|
||||
root+=Note::HalfStep;
|
||||
Notes::operator[](1)=root;
|
||||
root+=Note::WholeStep;
|
||||
Notes::operator[](2)=root;
|
||||
root+=Note::HalfStep;
|
||||
Notes::operator[](3)=root;
|
||||
root+=Note::WholeStep;
|
||||
Notes::operator[](4)=root;
|
||||
root+=Note::WholeStep;
|
||||
Notes::operator[](5)=root;
|
||||
root+=Note::WholeStep;
|
||||
Notes::operator[](6)=root;
|
||||
root+=Note::WholeStep;
|
||||
Notes::operator[](7)=root;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user