salu133445 / muspy

A toolkit for symbolic music generation
https://salu133445.github.io/muspy/
MIT License
427 stars 49 forks source link

Support ABC files in Music21Dataset #28

Open salu133445 opened 3 years ago

salu133445 commented 3 years ago

The current implementation of Music21Dataset does not support ABC files. The problem here is that an ABC file might contain multiple songs (i.e., a tunebook). We should follow the implementations of ABCFolderDataset to extend self.raw_filenames into a list of (filename, start, end) tuples to keep track of the start/end line of each song in an ABC file (and simply set start and end to None for other file types).