English

Editing Music with Melody and Text: Using ControlNet for Diffusion Transformer

Audio and Speech Processing 2025-01-17 v2 Sound

Abstract

Despite the significant progress in controllable music generation and editing, challenges remain in the quality and length of generated music due to the use of Mel-spectrogram representations and UNet-based model structures. To address these limitations, we propose a novel approach using a Diffusion Transformer (DiT) augmented with an additional control branch using ControlNet. This allows for long-form and variable-length music generation and editing controlled by text and melody prompts. For more precise and fine-grained melody control, we introduce a novel top-kk constant-Q Transform representation as the melody prompt, reducing ambiguity compared to previous representations (e.g., chroma), particularly for music with multiple tracks or a wide range of pitch values. To effectively balance the control signals from text and melody prompts, we adopt a curriculum learning strategy that progressively masks the melody prompt, resulting in a more stable training process. Experiments have been performed on text-to-music generation and music-style transfer tasks using open-source instrumental recording data. The results demonstrate that by extending StableAudio, a pre-trained text-controlled DiT model, our approach enables superior melody-controlled editing while retaining good text-to-music generation performance. These results outperform a strong MusicGen baseline in terms of both text-based generation and melody preservation for editing. Audio examples can be found at https://stable-audio-control.github.io.

Cite

@article{arxiv.2410.05151,
  title  = {Editing Music with Melody and Text: Using ControlNet for Diffusion Transformer},
  author = {Siyuan Hou and Shansong Liu and Ruibin Yuan and Wei Xue and Ying Shan and Mangsuo Zhao and Chao Zhang},
  journal= {arXiv preprint arXiv:2410.05151},
  year   = {2025}
}

Comments

Accepted for publication at ICASSP 2025

R2 v1 2026-06-28T19:11:31.321Z