Added pitch resolving to roman numeral chords

This commit is contained in:
2023-02-08 21:47:44 +02:00
parent 8d49e5d5c2
commit bb928f7c64
3 changed files with 37 additions and 25 deletions

View File

@ -114,8 +114,9 @@ class ZiffersTransformer(Transformer):
numeral = items[0].value
if len(items)>1:
name = items[1]
notes = chord_from_roman_numeral(numeral,name)
return RomanNumeral(text=numeral, value=parse_roman(numeral), chord_type=name, notes=notes)
chord_notes = chord_from_roman_numeral(numeral,name)
parsed_number = parse_roman(numeral)
return RomanNumeral(text=numeral, value=parsed_number, chord_type=name, notes=chord_notes)
return RomanNumeral(value=parse_roman(numeral), text=numeral, notes=chord_from_roman_numeral(numeral))
def chord_name(self,item):