diff --git a/libs/ardour/ardour/key.h b/libs/ardour/ardour/key.h index cc561cbcb9..b0921bf441 100644 --- a/libs/ardour/ardour/key.h +++ b/libs/ardour/ardour/key.h @@ -16,23 +16,25 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __ardour_scale_h__ -#define __ardour_scale_h__ +#ifndef __ardour_key_h__ +#define __ardour_key_h__ #include "ardour/mode.h" -class MusicalScale : MusicalMode +class MusicalKey : MusicalMode { public: - MusicalScale (Type t, int root) : MusicalMode (t), _root (root) {} - ~MusicalScale (); + MusicalKey (Type t, int root) : MusicalMode (t), _root (root) {} + ~MusicalKey (); int root () const { return _root; } void set_root (int); + bool in_key (int note) const; + private: int _root; }; -#endif /* __ardour_scale_h__ */ +#endif /* __ardour_key_h__ */ diff --git a/libs/ardour/key.cc b/libs/ardour/key.cc index 908ca54285..10cdbbdff2 100644 --- a/libs/ardour/key.cc +++ b/libs/ardour/key.cc @@ -16,11 +16,17 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "ardour/scale.h" +#include "ardour/key.h" void -MusicalScale::set_root (int r) +MusicalKey::set_root (int r) { _root = r; } +bool +MusicalKey::in_key (int note) const +{ + return true; +} +