MuseMorphose: Full-Song and Fine-Grained Piano Music Style Transfer with One Transformer VAE

Shih-Lun Wu, Yi-Hsuan Yang
5/10/2021
cs.SDcs.LGcs.MM
transformer-attention

Official code: YatingMusic/MuseMorphose (195 stars, Python, MIT, PyTorch, last commit 2022-12-19).

Abstract

Transformers and variational autoencoders (VAE) have been extensively employed for symbolic (e.g., MIDI) domain music generation. While the former boast an impressive capability in modeling long sequences, the latter allow users to willingly exert control over different parts (e.g., bars) of the music to be generated.

Show full abstract

In this paper, we are interested in bringing the two together to construct a single model that exhibits both strengths. The task is split into two steps. First, we equip Transformer decoders with the ability to accept segment-level, time-varying conditions during sequence generation. Subsequently, we combine the developed and tested in-attention decoder with a Transformer encoder, and train the resulting MuseMorphose model with the VAE objective to achieve style transfer of long pop piano pieces, in which users can specify musical attributes including rhythmic intensity and polyphony (i.e., harmonic fullness) they desire, down to the bar level. Experiments show that MuseMorphose outperforms recurrent neural network (RNN) based baselines on numerous widely-used metrics for style transfer tasks.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

PyTorch implementation of MuseMorphose (published at IEEE/ACM TASLP), a Transformer-based model for music style transfer.

19540PythonJul 19, 20213 years agoMIT
music-generationmusic-style-transferpytorchtransformervariational-autoencoder

Similar Papers

Cite this paper

@article{wu2021musemorphose,
  title  = {MuseMorphose: Full-Song and Fine-Grained Piano Music Style Transfer with One Transformer VAE},
  author = {Shih-Lun Wu and Yi-Hsuan Yang},
  year   = {2021},
  eprint = {2105.04090},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.04090}
}

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/2105.04090.svg)](https://codeofpaper.com/paper/2105.04090)

Discussion