Skip to content

Commit 57529ea

Browse files
committed
fix for issue where all notes were showing as 4th octave
1 parent 5d7941d commit 57529ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,9 +2317,10 @@ def analyze(self, chord_notes):
23172317
r = ''
23182318
for i, note in enumerate(chord_notes):
23192319
if note:
2320-
notes.append(NOTES[i % 12])
2320+
n = mp.degree_to_note(i)
2321+
notes.append(n)
23212322
if notes:
2322-
r = mp.alg.detect(mp.chord(','.join(notes)))
2323+
r = mp.alg.detect(mp.chord(notes))
23232324
# try:
23242325
# r = r[0:self.chord.index(' sort')]
23252326
# except ValueError:

0 commit comments

Comments
 (0)