MusPy: A Toolkit for Symbolic Music Generation

by   Hao-Wen Dong, et al.
University of California, San Diego

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. 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 .


Partitura: A Python Package for Symbolic Music Processing

Partitura is a lightweight Python package for handling symbolic musical ...

musicaiz: A Python Library for Symbolic Music Generation, Analysis and Visualization

In this article, we present musicaiz, an object-oriented library for ana...

Symbolic Music Loop Generation with Neural Discrete Representations

Since most of music has repetitive structures from motifs to phrases, re...

NeuroX Library for Neuron Analysis of Deep NLP Models

Neuron analysis provides insights into how knowledge is structured in re...

pyBKT: An Accessible Python Library of Bayesian Knowledge Tracing Models

Bayesian Knowledge Tracing, a model used for cognitive mastery estimatio...

Exploring Softly Masked Language Modelling for Controllable Symbolic Music Generation

This document presents some early explorations of applying Softly Masked...

Simple and Controllable Music Generation

We tackle the task of conditional music generation. We introduce MusicGe...

Code Repositories


A toolkit for symbolic music generation

view repo


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

view repo

Please sign up or login with your details

Forgot password? Click here to reset