Replies: 1 comment
-
I have tried basing a class on class MidiFolderDataset(muspy.FolderDataset):
_extension = "midi" # Change this based on your extension.
def read(self, filename: Union[str, Path]) -> Music:
"""Read a file into a Music object."""
return read_midi(self.root / filename) You can now import the dataset: music_dataset = MidiFolderDataset(data_dir, convert=True) #You can also avoid the convert parameter to enable on_the_fly conversion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there currently an easy way to load a local MIDI dataset from a directory? This seems like one of the most basic use cases for this dataset machinery. For example, I would like to use the Lakh MIDI dataset which I have, without downloading it again. Should a
MIDIFolderDataset
be added? Or should support for MIDI be added toMusicDataset
?Beta Was this translation helpful? Give feedback.
All reactions