Spaces:
Sleeping
Sleeping
File size: 387 Bytes
91394e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from abc import ABC, abstractmethod
class MelodyDatasetHandler(ABC):
name: str
@abstractmethod
def __init__(self, *args, **kwargs):
pass
@abstractmethod
def get_song_ids(self) -> list[str]:
pass
@abstractmethod
def get_phrase_length(self, song_id):
pass
@abstractmethod
def iter_song_phrases(self, song_id):
pass
|