Music ControlNet:
Multiple Time-varying Controls for Music Generation


Shih-Lun Wu1,2*   Chris Donahue1   Shinji Watanabe1   Nicholas J. Bryan2  

1School of Computer Science, Carnegie Mellon University
2Adobe Research
*Work done during an internship at Adobe Research

Paper Video

Abstract


Text-to-music generation models are now capable of generating high-quality music audio in broad styles. However, text control is primarily suitable for the manipulation of global musical attributes like genre, mood, and tempo, and is less suitable for precise control over time-varying attributes such as the positions of beats in time or the changing dynamics of the music. We propose Music ControlNet, a diffusion-based music generation model that offers multiple precise, time-varying controls over generated audio. To imbue text-to-music models with time-varying control, we propose an approach analogous to pixel-wise control of the image-domain ControlNet method. Specifically, we extract controls from training audio yielding paired data, and fine-tune a diffusion-based conditional generative model over audio spectrograms given melody, dynamics, and rhythm controls. While the image-domain Uni-ControlNet method already allows generation with any subset of controls, we devise a new strategy to allow creators to input controls that are only partially specified in time. We evaluate both on controls extracted from audio and controls we expect creators to provide, demonstrating that we can generate realistic music that corresponds to control inputs in both settings. While few comparable music generation models exist, we benchmark against MusicGen, a recent model that accepts text and melody input, and show that our model generates music that is 49% more faithful to input melodies despite having 35x fewer parameters, training on 11x less data, and enabling two additional forms of time-varying control.


Bibtex

        
        @article{Wu2023MusicControlNet,
            title={Music ControlNet: Multiple Time-varying Controls for Music Generation}, 
            author={Wu, Shih-Lun and Donahue, Chris and Watanabe, Shinji and Bryan, Nicholas J.},
            year={2023},
            eprint={TBD},
            archivePrefix={arXiv},
            primaryClass={cs.SD}
        }
                  

Examples (Cherry-picked)

Please find generated music and feature plots with different control combinations including melody, dynamics, and rhythm, and their combinations as well as partially-specified controls over time. The examples here are mildly cherry-picked to show the best results. For random (non-cherry-picked) examples, please see the section below.

For each example, the first row of plots are controls extracted from generation, and the second row ones are input controls. Examples with gray shaded regions denote partially-specified controls, where the gray region is not enforced. A melody reference file is also provided for examples that includes melody control.
Melody Control
Reference
Generated Music
Text
Feature Plots

happy, jazz

Features

sexy, pop

Features

happy, electronic

Features

sexy, electronic

Features

happy, acoustic

Features
Dynamics Control
Generated Music
Text
Feature Plots

happy, rock

Features

sexy, acoustic

Features

sexy, classical

Features

inspiring, electronic

Features

nostalgic, pop

Features
Rhythm Control
Generated Music
Text
Feature Plots

happy, classical

Features

happy, rock

Features

inspiring, jazz

Features

mellow, hip-hop

Features

mellow, world

Features
Melody & Rhythm Control
Reference
Generated Music
Text
Feature Plots

happy, electronic

Features

sad, jazz

Features

mellow, acoustic

Features

sexy, world

Features

sad, country

Features
Dynamics & Rhythm Control
Generated Music
Text
Feature Plots

happy, acoustic

Features

sexy, r&b

Features

powerful, rock

Features

mellow, acoustic

Features

happy, electronic

Features
Melody & Dynamics Control
Reference
Generated Music
Text
Feature Plots

happy, rock

Features

powerful, electronic

Features

inspiring, classical

Features

angry, country

Features

powerful, country

Features
Melody, Dynamics, & Rhythm Control
Generated Music
Text
Feature Plots

happy, jazz

Features

angry, rock

Features

dramatic, electronic

Features

sexy, pop

Features

drmatic, hip-hop

Features
Partial Melody Control
Reference
Generated Music
Text
Feature Plots

happy, jazz

Features

atmospheric, electronic

Features

powerful, hip-hop

Features

mellow, world

Features

mellow, jazz

Features
Partial Dynamics Control
Generated Music
Text
Feature Plots

happy, acoustic

Features

sexy, classical

Features

happy, r&b

Features

mellow, world

Features

inspiring, acoustic

Features
Partial Rhythm Control
Generated Music
Text
Feature Plots

happy, pop

Features

sexy, acoustic

Features

mellow, jazz

Features

powerful, acoustic

Features

inspiring, r&b

Features

Examples (Random)

Please find generated music and feature plots with different control combinations including melody, dynamics, and rhythm, and their combinations as well as partially-specified controls over time. The examples here randomly generated.

For each example, the first row of plots are controls extracted from generation, and the second row ones are input controls. Examples with gray shaded regions denote partially-specified controls, where the gray region is not enforced. A melody reference file is also provided for examples that includes melody control.
Melody Control
Reference
Generated Music
Text
Feature Plots

atmospheric, rock

Features

angry, hip-hop

Features

sad, hip-hop

Features

mellow, classical

Features

angry, acoustic

Features
Dynamics Control
Generated Music
Text
Feature Plots

sexy, classical

Features

angry, country

Features

happy, classical

Features

mellow, electronic

Features

happy, country

Features
Rhythm Control
Generated Music
Text
Feature Plots

powerful, world

Features

mellow, jazz

Features

sexy, country

Features

sad, hip-hop

Features

inspiring, hip-hop

Features
Melody & Rhythm Control
Reference
Generated Music
Text
Feature Plots

atmospheric, pop

Features

dramatic, acoustic

Features

mellow, acoustic

Features

inspiring, world

Features

atmospheric, hip-hop

Features
Dynamics & Rhythm Control
Generated Music
Text
Feature Plots

angry, rock

Features

mellow, hip-hop

Features

powerful, country

Features

mellow, classical

Features

powerful, pop

Features
Melody & Dynamics Control
Reference
Generated Music
Text
Feature Plots

happy, jazz

Features

sad, country

Features

angry, world

Features

happy, electronic

Features

powerful, classical

Features
Melody, Dynamics, & Rhythm Control
Generated Music
Text
Feature Plots

powerful, jazz

Features

mellow, world

Features

sad,r&b

Features

mellow, hip-hop

Features

nostalgic, r&b

Features
Partial Melody Control
Reference
Generated Music
Text
Feature Plots

angry, jazz

Features

sexy, acoustic

Features

atrmospheric, hip-hop

Features

inspiring, country

Features

happy, world

Features
Partial Dynamics Control
Generated Music
Text
Feature Plots

sexy, jazz

Features

dramatic, r&b

Features

sad, jazz

Features

nostalgic, acoustic

Features

sad, r&b

Features
Partial Rhythm Control
Generated Music
Text
Feature Plots

nostalgic, hip-hop

Features

sad, electronic

Features

angry, r&b

Features

sad, classical

Features

inspiring, acoustic

Features