aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Plans Casal <pland@users.sourceforge.net>2005-12-05 16:47:45 +0000
committerDavid Plans Casal <pland@users.sourceforge.net>2005-12-05 16:47:45 +0000
commit56d3627d3879bc5898ed307237a32c8400095805 (patch)
treec6b8c8b1be00c936d57ff5586b76bf29cf2cc55b
parent0625ba40957d8003147b29852265978987369f5f (diff)
adding kDom9
svn path=/trunk/externals/frankenstein/; revision=4142
-rwxr-xr-xchords_memory.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/chords_memory.c b/chords_memory.c
index f524feb..015e5ae 100755
--- a/chords_memory.c
+++ b/chords_memory.c
@@ -28,6 +28,11 @@ dim7maj
aug7min
aug7maj
(tot 13 forms)
+
+pland adding more chord types here:
+
+
+
we have 12 grades:
I
I#
@@ -107,7 +112,7 @@ there are plenty of such algos, we must just copy them down.
static t_class *chords_memory_class;
// how can a chord be?
-#define TYPES_NUM 11 // keep me updated
+#define TYPES_NUM 13 // keep me updated
typedef enum {
kMaj=0,
kMin=1,
@@ -119,8 +124,10 @@ typedef enum {
kMinMaj7=7,
kDim7=8,
kHalfDim7=9,
- //pland adding 9ths 30.11.12
+ //pland adding 9ths 30.11.05 and beyond
kDomb9=10
+ kMaj9=11
+ kDom9=12
} chord_type_t;
// how many tones do we have in our octave?
@@ -325,6 +332,10 @@ chord_type_t from_string_to_type(const char *substr)
// pland adding chords 30.11.05
if (strstr(substr, "dominant b9"))
return kDomb9;
+ if (strstr(substr, "major 9th"))
+ return kMaj9;
+ if (strstr(substr, "dominant 9th"))
+ return kDom9;
// TODO: other chords
// beware when adding new chords
// put shorter names at end of this function!