Controllable Music Production with Diffusion Models and Guidance Gradients
AuthorsMark Levy, Bruno Di Giorgi, Floris Weers, Angelos Katharopoulos, Tom Nickson
AuthorsMark Levy, Bruno Di Giorgi, Floris Weers, Angelos Katharopoulos, Tom Nickson
This paper was accepted at the Diffusion Models workshop at NeurIPS 2023.
We demonstrate how conditional generation from diffusion models can be used to tackle a variety of realistic tasks in the production of music in 44.1kHz stereo audio with sampling-time guidance. The scenarios we consider include continuation, inpainting and regeneration of musical audio, the creation of smooth transitions between two different music tracks, and the transfer of desired stylistic characteristics to existing audio clips. We achieve this by applying guidance at sampling time in a simple framework that supports both reconstruction and classification losses, or any combination of the two. This approach ensures that generated audio can match its surrounding context, or conform to a class distribution or latent representation specified relative to any suitable pre-trained classifier or embedding model.
We show randomly chosen samples for a number of creative applications in Table 1, each conditioned on a given audio prompt. For each task and prompt we show samples from the different models described in the paper.
Task types:
prompt | task | CQTDiff (baseline) | latent | waveform |
---|---|---|---|---|
infill | ||||
infill | ||||
infill | ||||
regenerate | ||||
regenerate | ||||
regenerate | ||||
continuation | ||||
continuation | ||||
continuation | ||||
transitions | ||||
transitions | ||||
transitions | ||||
guidance | ||||
guidance | ||||
guidance |
Prompts are drawn from a test split of the Free Music Archive dataset, published by Michaël Defferrard et al. under a Creative Commons Attribution 4.0 International License (CC BY 4.0).