Skip to content

Commit

Permalink
Merge pull request #81 from Moustov/patch-3
Browse files Browse the repository at this point in the history
6b5 chord quality added
  • Loading branch information
yuma-m authored Jan 17, 2023
2 parents f35dcbc + 08ab003 commit 5ac3e99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pychord/constants/qualities.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
('sus', (0, 5, 7)),
# 4 notes
('6', (0, 4, 7, 9)),
('6b5', (0, 4, 6, 9)), # https://www.scales-chords.com/chord/piano/C%236b5
('6-5', (0, 4, 6, 9)), # https://www.scales-chords.com/chord/piano/C%236b5
('7', (0, 4, 7, 10)),
('7-5', (0, 4, 6, 10)),
('7b5', (0, 4, 6, 10)),
Expand Down
4 changes: 2 additions & 2 deletions test/test_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def test_add9(self):

def test_m7b5(self):
chords = find_chords_from_notes(["F#", "A", "C", "E"])
self.assertEqual(chords, [Chord("F#m7-5"), Chord("Am6/F#")])
self.assertEqual(chords, [Chord("F#m7-5"), Chord("Am6/F#"), Chord("C6b5/F#")])

def test_m7dim5(self):
chords = find_chords_from_notes(["F#", "A", "C", "E"])
self.assertEqual(chords, [Chord("F#m7-5"), Chord("Am6/F#")])
self.assertEqual(chords, [Chord("F#m7-5"), Chord("Am6/F#"), Chord("C6b5/F#")])

def test_add4(self):
chords = find_chords_from_notes(["C", "E", "F", "G"])
Expand Down

0 comments on commit 5ac3e99

Please sign in to comment.