]> git.cworth.org Git - scherzo/commitdiff
Fix bug preventing recognition of m6/9 and add m6/♭9
authorCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 04:41:52 +0000 (21:41 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 27 Sep 2013 04:41:52 +0000 (21:41 -0700)
The line that was supposed to detect m6/9 had an incorrect signature
identical to the signature of 6/9 (causing m6/9 to never be
recognized).

While we're at it, add m6/♭9 as well.

scherzo.c

index 95890bc2500e861bc942233a254a06498dd0ed4d..5c24a543baaf4e4f63a38d304fabacfd57f8c786 100644 (file)
--- a/scherzo.c
+++ b/scherzo.c
@@ -733,7 +733,8 @@ scherzo_analyze_chord (scherzo_t *scherzo)
     struct { modified_degree_t degrees[5]; const char *name; } pentachords[] = {
        /* Sixth plus 9 */
        { {{1, 0}, {9,  0}, {3,  0}, {5,  0}, {6,  0}}, "6/9" },
-       { {{1, 0}, {9,  0}, {3,  0}, {5,  0}, {6,  0}}, "m6/9" },
+       { {{1, 0}, {9,  0}, {3, -1}, {5,  0}, {6,  0}}, "m6/9" },
+       { {{1, 0}, {9, -1}, {3, -1}, {5,  0}, {6,  0}}, "m6/♭9" },
        /* Seventh plus altered 9 */
        { {{1, 0}, {9, +1}, {3,  0}, {5,  0}, {7, -1}}, "7♯9" },
        { {{1, 0}, {9, -1}, {3,  0}, {5,  0}, {7, -1}}, "7♭9" },