NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MoodLoopGP: Generating Emotion-Conditioned Loop Tablature Music with Multi-granular Features

Wenqian Cui, Pedro Sarmento, Mathieu Barthet

TL;DR

MoodLoopGP is a new generative AI framework that allows creators to steer the emotional "vibe" of loopable guitar music. By combining song-level metadata (like tempo and mode) with bar-level "tonal tension" features, the system generates guitar tablatures that effectively convey specific emotions like happiness or sadness while maintaining high-quality musical repetition.

What Problem Does This Paper Address?

Loop-based music is the backbone of genres like EDM and hip-hop, and it's essential for background tracks in video games and VR. While AI models have become quite good at generating music, they often act like "black boxes"—you press a button, and you get a loop, but you have very little control over its emotional character.

Existing systems that do offer emotional control often treat a song as a static entity, applying a single "happy" or "sad" label to the entire piece. However, music is dynamic; the tension and release within a single bar can drastically change how a listener feels. The researchers behind MoodLoopGP set out to bridge this gap by creating a system that uses multi-granular features—controls that operate at both the song level and the individual bar level—to provide more nuanced emotional steering.

Methods

The researchers built MoodLoopGP on top of LooperGP, a baseline model designed to produce repeatable guitar tablature. They used a Transformer-XL architecture, which is particularly good at handling long-range dependencies in sequences (like the repeating patterns in a loop).

The "secret sauce" of MoodLoopGP lies in its multi-granular conditioning:

  • Song-Level Features: At the start of a sequence, the model is prompted with "global" tokens: Emotion Labels (Valence and Arousal scores pulled from Spotify), Tempo (BPM), and Mode (Major vs. Minor).
  • Bar-Level Features: To handle the dynamic nature of music, they introduced Tonal Tension tokens at the start of every new bar. These metrics (Cloud Diameter, Cloud Momentum, and Tensile Strain) quantify how "stable" or "tense" the harmony feels based on mathematical models of tonality.

By discretizing these continuous values into categorical tokens (e.g., valence:high, tension:low), they turned the generation process into a guided "choose-your-own-adventure" for the AI.

Datasets

The model was trained on DadaGP, a massive dataset of over 26,000 guitar tablatures in Guitar Pro format.

  • Filtering: The authors narrowed this down to 13,466 high-quality loops.
  • Annotation: They used the Spotify Web API to match songs in the dataset with their metadata, specifically retrieving "Valence" (musical positiveness) and "Energy" (used as a proxy for Arousal).
  • Feature Extraction: They used the midi-miner Python package to calculate the mathematical tonal tension for every single bar in the dataset.

Key Insights and Ideas

  • Music Psychology as a Blueprint: Instead of letting the AI guess what "sad" sounds like, the authors explicitly baked in findings from music psychology—such as the fact that slow tempos and minor modes are strongly correlated with sadness.
  • The Power of Tonal Tension: One of the most interesting "aha moments" was the role of bar-level features. While song-level labels set the general mood, the bar-level tonal tension tokens provided the "fine-grained" guidance necessary for the music to feel human-perceivable as happy or sad.
  • Loopability vs. Control: Often, adding more constraints to a model makes it "forget" how to do its primary job (in this case, making loops). MoodLoopGP proved that you can have both: it actually generated 45% more valid loops than a standard Transformer-XL model trained on the same data.

Key Results

The authors evaluated the model using both algorithms and human ears:

  • Emotion Identification: Using a BERT-style classifier, they found that MoodLoopGP was highly effective at hitting its emotional targets. There was a 54% difference in emotion metrics between the "happy" and "sad" generated groups.
  • The Turing Test: In a subjective listening test, 27% of the machine-generated loops were mistaken for human-composed music. While humans still preferred human-composed music (scoring 0.60 vs -0.30 on a preference scale), the AI's "All Information" model significantly outperformed versions where the bar-level tension was removed.
  • Ablation Success: The ablation study confirmed that removing any one feature (Emotion Labels, Psych features, or Tonal Tension) led to a significant drop in the model's ability to convey the target mood.

Limitations and Future Work

Despite the success, the authors noted a few hurdles:

  • The "Robotic" Sound: Because the music was rendered from MIDI/tablature without dynamic information (like how hard a string is plucked), some listeners found the output "rigid."
  • Emotional Simplification: The study focused on the "Happiness vs. Sadness" axis. Real music conveys a much broader spectrum (anger, fear, nostalgia), which the model isn't yet trained to handle.
  • Subjectivity: The model assumes high valence/arousal always equals "happy," but music is culturally and individually subjective.

Future work aims to incorporate more diverse emotions and explore how these multi-granular features can be used for real-time "musification" of data in smart cities or interactive gaming environments.

Summary updated

BibTeX
@inproceedings{cui2024moodloopgp,
  author = {Wenqian Cui and Pedro Sarmento and Mathieu Barthet},
  title = {{MoodLoopGP: Generating Emotion-Conditioned Loop Tablature Music with Multi-granular Features}},
  booktitle = {EvoMUSART},
  year = {2024},
  url = {https://openreview.net/forum?id=u5SSq2wj4y},
}

Loading related content...

Figure