Polyffusion: A Diffusion Model for Polyphonic Score Generation with Internal and External Controls

Lejun Min, Junyan Jiang, Gus Xia, Jingwei Zhao
7/19/2023
cs.SDcs.LGeess.AS

Official code: aik2mlj/polyffusion (90 stars, MIT, last commit 2024-07-16).

Abstract

We propose Polyffusion, a diffusion model that generates polyphonic music scores by regarding music as image-like piano roll representations. The model is capable of controllable music generation with two paradigms: internal control and external control. Internal control refers to the process in which users pre-define a part of the music and then let the model infill the rest, similar to the task of masked music generation (or music inpainting). External control conditions the model with external yet related information, such as chord, texture, or other features, via the cross-attention mechanism. We show that by using internal and external controls, Polyffusion unifies a wide range of music creation tasks, including melody generation given accompaniment, accompaniment generation given melody, arbitrary music segment inpainting, and music arrangement given chords or textures. Experimental results show that our model significantly outperforms existing Transformer and sampling-based baselines, and using pre-trained disentangled representations as external conditions yields more effective controls.

View on arXivView PDF

Code Implementations(1)

MIT

Polyffusion: A Diffusion Model for Polyphonic Score Generation with Internal and External Controls

9015Shell, PythonAug 24, 20222 years agoMIT

Similar Papers

Cite this paper

@article{min2023polyffusion,
  title  = {Polyffusion: A Diffusion Model for Polyphonic Score Generation with Internal and External Controls},
  author = {Lejun Min and Junyan Jiang and Gus Xia and Jingwei Zhao},
  year   = {2023},
  eprint = {2307.10304},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.10304v1}
}

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

Discussion