From 4801f488c508acb9f5a2cb4ccb72338ce2ce6c83 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 8 Nov 2021 11:11:27 -0700 Subject: [PATCH] reflect name change in files --- libs/ardour/ardour/key.h | 14 ++++++++------ libs/ardour/key.cc | 10 ++++++++-- 2 files changed, 16 insertions(+), 8 deletions(-) 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; +} +