Files
Chromacase/scorometer/chroma_case/Partition.py
2023-01-03 15:27:36 +09:00

16 lines
249 B
Python

from .Key import Key
class Partition:
def __init__(self, name:str, notes:list[Key]) -> None:
self.__name = name
self.notes = notes
def __repr__(self):
r = f"{self.__name}\n"
for i in self.notes:
r += f"{i.__repr__()}\n"
return r