Skip to content

Commit

Permalink
Add missing entries for '7sus4', 'add11', 'add13', 'add9' to chord_sh…
Browse files Browse the repository at this point in the history
…orthand

Typo: replace dictionairy with dictionary
  • Loading branch information
yaph committed Dec 17, 2021
1 parent f369ce5 commit 9f6e1cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mingus/core/chords.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 9f6e1cc

Please sign in to comment.