Text Conditioned Symbolic Drumbeat Generation using Latent Diffusion Models
Pushkar Jajoria, James McDermott
TL;DR
This work addresses the challenge of text-conditioned drumbeat generation by leveraging Latent Diffusion Models trained to respond to textual prompts derived from training filenames. It combines CLIP-like contrastive pretraining to align text and MIDI with a MultiResolutionLSTM-enhanced autoencoder, and performs diffusion in a latent space to improve speed and stability. Empirical distances and a listening test show that generated drumbeats are novel and closely aligned with prompts, with quality comparable to human-created outputs. The results demonstrate the feasibility and practical potential of text-to-drumbeat synthesis in latent space, enabling real-time, controllable symbolic drum generation, with code and samples released for reuse.
Abstract
This study introduces a text-conditioned approach to generating drumbeats with Latent Diffusion Models (LDMs). It uses informative conditioning text extracted from training data filenames. By pretraining a text and drumbeat encoder through contrastive learning within a multimodal network, aligned following CLIP, we align the modalities of text and music closely. Additionally, we examine an alternative text encoder based on multihot text encodings. Inspired by musics multi-resolution nature, we propose a novel LSTM variant, MultiResolutionLSTM, designed to operate at various resolutions independently. In common with recent LDMs in the image space, it speeds up the generation process by running diffusion in a latent space provided by a pretrained unconditional autoencoder. We demonstrate the originality and variety of the generated drumbeats by measuring distance (both over binary pianorolls and in the latent space) versus the training dataset and among the generated drumbeats. We also assess the generated drumbeats through a listening test focused on questions of quality, aptness for the prompt text, and novelty. We show that the generated drumbeats are novel and apt to the prompt text, and comparable in quality to those created by human musicians.
