Fixed note resolver

Fixed pitch class method and a typo
This commit is contained in:
2023-02-05 18:25:01 +02:00
parent 903d1a6639
commit 65da66ba26
2 changed files with 12 additions and 3 deletions

View File

@ -10,7 +10,7 @@ def sum_dict(arr: list[dict]) -> dict:
"""Sums a list of dicts: [{a:3,b:3},{b:1}] -> {a:3,b:4}"""
result = arr[0]
for element in arr[1:]:
for key in hash.keys():
for key in element.keys():
if key in result:
result[key] = result[key] + element[key]
else: