MusPy: A Toolkit for Symbolic Music Generation

Hao-Wen Dong, Ke Chen, Julian McAuley, Taylor Berg-Kirkpatrick
8/5/2020
83 citations
cs.SDcs.LGeess.AS

Official code: salu133445/muspy (531 stars, Python, MIT, last commit 2026-03-11). 1 more implementation below.

Abstract

In this paper, we present MusPy, an open source Python library for symbolic music generation. MusPy provides easy-to-use tools for essential components in a music generation system, including dataset management, data I/O, data preprocessing and model evaluation.

Show full abstract

In order to showcase its potential, we present statistical analysis of the eleven datasets currently supported by MusPy. Moreover, we conduct a cross-dataset generalizability experiment by training an autoregressive model on each dataset and measuring held-out likelihood on the others---a process which is made easier by MusPy's dataset management system. The results provide a map of domain overlap between various commonly used datasets and show that some datasets contain more representative cross-genre samples than others. Along with the dataset analysis, these results might serve as a guide for choosing datasets in future research. Source code and documentation are available at https://github.com/salu133445/muspy .

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
salu133445/muspyOfficial531PythonMIT2026-03-11
salu133445/muspy-expCommunity4PythonBSD-3-Clause2021-07-31
salu133445/muspyOfficial100%
MIT

A toolkit for symbolic music generation

53159PythonMar 13, 20208 months agoMIT
audiomachine-learningmusicmusic-generationmusic-information-retrieval+1 more
BSD-3-Clause

Code for the experiments in the paper "MusPy: A Toolkit for Symbolic Music Generation"

40Python, ShellJul 30, 20215 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{dong2020muspy,
  title  = {MusPy: A Toolkit for Symbolic Music Generation},
  author = {Hao-Wen Dong and Ke Chen and Julian McAuley and Taylor Berg-Kirkpatrick},
  year   = {2020},
  eprint = {2008.01951},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.01951}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.01951.svg)](https://codeofpaper.com/paper/2008.01951)

Discussion