format
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
class Key:
|
||||
def __init__(self, key: int, start: int, duration: int):
|
||||
self.key = key
|
||||
self.start = start
|
||||
self.duration = duration
|
||||
self.done = False
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.key} ({self.start} - {self.duration})"
|
||||
|
||||
def __init__(self, key: int, start: int, duration: int):
|
||||
self.key = key
|
||||
self.start = start
|
||||
self.duration = duration
|
||||
self.done = False
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.key} ({self.start} - {self.duration})"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
class Note:
|
||||
def __init__(self, start_time, data) -> None:
|
||||
def __init__(self, start_time, data) -> None:
|
||||
|
||||
self.__start_time = start_time
|
||||
self.__data = data
|
||||
self.__start_time = start_time
|
||||
self.__data = data
|
||||
|
||||
def get_start_time(self):
|
||||
return self.__start_time
|
||||
|
||||
def get_data(self):
|
||||
return self.__data
|
||||
def get_start_time(self):
|
||||
return self.__start_time
|
||||
|
||||
def get_data(self):
|
||||
return self.__data
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from .Key import Key
|
||||
|
||||
class Partition:
|
||||
|
||||
def __init__(self, name:str, notes:list[Key]) -> None:
|
||||
class Partition:
|
||||
def __init__(self, name: str, notes: list[Key]) -> None:
|
||||
|
||||
self.__name = name
|
||||
self.notes = notes
|
||||
@@ -12,4 +12,3 @@ class Partition:
|
||||
for i in self.notes:
|
||||
r += f"{i.__repr__()}\n"
|
||||
return r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user