Added basic music21 converter
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user