From f369ce55c2833fc9ddbfcb71c6c85f1718e3100b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20G=C3=B3mez?= Date: Fri, 17 Dec 2021 01:52:31 +0100 Subject: [PATCH 1/2] Add numpy to requirements-dev.in, tests don't run without it. --- requirements-dev.in | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.in b/requirements-dev.in index 6311af6d..d3596c13 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -1,3 +1,4 @@ black +numpy twine wheel From 9f6e1cc6e38248859ae3803fc03239ca5e5e597f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20G=C3=B3mez?= Date: Fri, 17 Dec 2021 01:52:58 +0100 Subject: [PATCH 2/2] Add missing entries for '7sus4', 'add11', 'add13', 'add9' to chord_shorthand Typo: replace dictionairy with dictionary --- mingus/core/chords.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mingus/core/chords.py b/mingus/core/chords.py index 7415b306..cefa2715 100644 --- a/mingus/core/chords.py +++ b/mingus/core/chords.py @@ -1328,8 +1328,8 @@ def determine_polychords(chord, shorthand=False): return polychords -# A dictionairy that can be used to present chord abbreviations. This -# dictionairy is also used in from_shorthand() +# A dictionary that can be used to present chord abbreviations. This +# dictionary is also used in from_shorthand() chord_shorthand = { # Triads Augmented chords Suspended chords Sevenths Sixths # Ninths Elevenths Thirteenths Altered Chords Special "m": minor_triad, @@ -1344,10 +1344,12 @@ def determine_polychords(chord, shorthand=False): "m7+": augmented_minor_seventh, "7+": augmented_major_seventh, "sus47": suspended_seventh, + "7sus4": suspended_seventh, "sus4": suspended_fourth_triad, "sus2": suspended_second_triad, "sus": suspended_triad, "11": eleventh, + "add11": eleventh, "sus4b9": suspended_fourth_ninth, "susb9": suspended_fourth_ninth, "m7": minor_seventh, @@ -1366,6 +1368,7 @@ def determine_polychords(chord, shorthand=False): "6/9": sixth_ninth, "69": sixth_ninth, "9": dominant_ninth, + "add9": dominant_ninth, "7b9": dominant_flat_ninth, "7#9": dominant_sharp_ninth, "M9": major_ninth, @@ -1375,6 +1378,7 @@ def determine_polychords(chord, shorthand=False): "M13": major_thirteenth, "m13": minor_thirteenth, "13": dominant_thirteenth, + "add13": dominant_thirteenth, "7b5": dominant_flat_five, "hendrix": hendrix_chord, "7b12": hendrix_chord,