Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -571,6 +571,8 @@ class Music2emo:
|
|
571 |
for start, end, chord in chords:
|
572 |
chord_arr = chord.split(":")
|
573 |
if len(chord_arr) == 1:
|
|
|
|
|
574 |
chordRootID = self.chordRootDic[chord_arr[0]]
|
575 |
if chord_arr[0] == "N" or chord_arr[0] == "X":
|
576 |
chordAttrID = 0
|
|
|
571 |
for start, end, chord in chords:
|
572 |
chord_arr = chord.split(":")
|
573 |
if len(chord_arr) == 1:
|
574 |
+
if chord_arr[0] == "X":
|
575 |
+
chord_arr[0] = "N"
|
576 |
chordRootID = self.chordRootDic[chord_arr[0]]
|
577 |
if chord_arr[0] == "N" or chord_arr[0] == "X":
|
578 |
chordAttrID = 0
|