Added basic music21 converter

This commit is contained in:
2023-02-13 17:28:42 +02:00
parent 7cc89d3333
commit e240c45693
5 changed files with 75 additions and 5 deletions

View File

@ -1,5 +1,5 @@
""" Ziffers classes for the parsed notation """
from dataclasses import dataclass, field, replace
from dataclasses import dataclass, field, replace, asdict
from itertools import product, islice, cycle
import operator
import random
@ -31,6 +31,9 @@ class Meta:
if getattr(self, key) is None:
setattr(self, key, value)
def dict(self):
return {k: str(v) for k, v in asdict(self).items()}
@dataclass(kw_only=True)
class Item(Meta):