summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/mode.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-28 10:47:10 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-28 10:47:17 -0500
commitb6e62c66545d84101e3f82d065862f75509f2d1e (patch)
tree062c8c4496895bf1e6ffe38546c6768a73d0ed00 /libs/ardour/ardour/mode.h
parentb9332f5fe2874901159583453eb963eea85b7b72 (diff)
move mode/scale/key definitions out of push2 code and into libardour; Aeolian is the same as Minor
Diffstat (limited to 'libs/ardour/ardour/mode.h')
-rw-r--r--libs/ardour/ardour/mode.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/libs/ardour/ardour/mode.h b/libs/ardour/ardour/mode.h
new file mode 100644
index 0000000000..7f1d5e0b86
--- /dev/null
+++ b/libs/ardour/ardour/mode.h
@@ -0,0 +1,76 @@
+/*
+ Copyright (C) 1999-2016 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __ardour_mode_h__
+#define __ardour_mode_h__
+
+#include <vector>
+
+class MusicalMode
+{
+ public:
+ enum Type {
+ Dorian,
+ IonianMajor,
+ AeolianMinor,
+ HarmonicMinor,
+ MelodicMinorAscending,
+ MelodicMinorDescending,
+ Phrygian,
+ Lydian,
+ Mixolydian,
+ Locrian,
+ PentatonicMajor,
+ PentatonicMinor,
+ Chromatic,
+ BluesScale,
+ NeapolitanMinor,
+ NeapolitanMajor,
+ Oriental,
+ DoubleHarmonic,
+ Enigmatic,
+ Hirajoshi,
+ HungarianMinor,
+ HungarianMajor,
+ Kumoi,
+ Iwato,
+ Hindu,
+ Spanish8Tone,
+ Pelog,
+ HungarianGypsy,
+ Overtone,
+ LeadingWholeTone,
+ Arabian,
+ Balinese,
+ Gypsy,
+ Mohammedan,
+ Javanese,
+ Persian,
+ Algerian
+ };
+
+ MusicalMode (Type t);
+ ~MusicalMode ();
+
+ std::vector<float> steps;
+
+ private:
+ static void fill (MusicalMode&, Type);
+};
+
+#endif /* __ardour_mode_h__ */