Skip to main content
QUICK REVIEW

[Paper Review] Explicitly Conditioned Melody Generation: A Case Study with Interdependent RNNs

Benjamin Genchel, Ashis Pati|arXiv (Cornell University)|Jul 10, 2019
Music and Audio ProcessingComputer Science19 references10 citations
TL;DR

This paper investigates the impact of explicit musical conditioning on monophonic melody generation using a pair of interdependent RNNs that model pitch and duration sequences. By conditioning on chord harmony, next chord, bar position, and inter-conditioning between pitch and duration, the study shows that harmonic conditioning significantly improves pitch accuracy, rhythmic variety, and musicality—especially in Bebop, where it prevents key drift and enhances phrasing—while synergistic combinations of conditionings yield the most aesthetically pleasing results.

ABSTRACT

Deep generative models for symbolic music are typically designed to model temporal dependencies in music so as to predict the next musical event given previous events. In many cases, such models are expected to learn abstract concepts such as harmony, meter, and rhythm from raw musical data without any additional information. In this study, we investigate the effects of explicitly conditioning deep generative models with musically relevant information. Specifically, we study the effects of four different conditioning inputs on the performance of a recurrent monophonic melody generation model. Several combinations of these conditioning inputs are used to train different model variants which are then evaluated using three objective evaluation paradigms across two genres of music. The results indicate musically relevant conditioning significantly improves learning and performance, and reveal how this information affects learning of musical features related to pitch and rhythm. An informal subjective evaluation suggests a corresponding improvement in the aesthetic quality of generations.

Motivation & Objective

  • To investigate how explicit musical conditioning influences the learning and performance of deep generative models in monophonic melody generation.
  • To isolate and compare the effects of four conditioning inputs—chord, next chord, bar position, and inter-conditioning—on pitch and duration modeling.
  • To evaluate whether conditioning improves learning of musical features like harmony, meter, and rhythm without relying solely on raw data patterns.
  • To assess the synergy between conditioning inputs and their impact on both objective metrics and subjective aesthetic quality.
  • To examine genre-specific differences in conditioning effectiveness, particularly between Scottish/Irish folk and Bebop jazz.

Proposed method

  • Train a dual-RNN architecture where one network models pitch sequences and another models duration sequences, with shared input embeddings.
  • Condition each network with combinations of four inputs: current chord, next chord, bar position, and inter-conditioning (pitch network conditioned on duration, and vice versa).
  • Use one-hot encoded representations for pitch, duration, chord, and bar position, with trainable embedding layers to learn semantic representations.
  • Train the model using cross-entropy loss on a sequence-to-sequence task, predicting the next note event given prior context and conditioning.
  • Evaluate 13 configurations (including no conditioning) across two datasets: Scottish/Irish folk and Bebop jazz, each with chord-labeled melodies.
  • Apply three objective evaluation metrics—pitch accuracy, duration accuracy, and harmonic consistency—alongside informal subjective evaluation of generated melodies.

Experimental results

Research questions

  • RQ1How does explicit conditioning with current and next chord harmony affect pitch and duration prediction accuracy in monophonic melody generation?
  • RQ2What is the individual and combined effect of bar position and inter-conditioning on rhythmic phrasing and melodic variety?
  • RQ3How do conditioning inputs influence the model's ability to maintain key and harmonic consistency, especially in complex genres like Bebop?
  • RQ4To what extent do synergistic combinations of conditioning inputs improve aesthetic quality beyond individual effects?
  • RQ5How does the effectiveness of conditioning vary across different musical genres, such as folk versus Bebop jazz?

Key findings

  • Chord conditioning significantly improved harmonic consistency and pitch accuracy, especially in Bebop, where models without it frequently drifted out of key.
  • Chord-conditioned models generated more musically expressive intervals (e.g., thirds, fourths) and reduced overuse of consecutive whole tones, which were common in unconditioned folk generations.
  • Inter-conditioning alone sometimes induced repetitive melodic patterns (e.g., repeated B4 notes), but when combined with chord conditioning, these issues were mitigated.
  • Bar position conditioning enhanced rhythmic variety and phrasing in Bebop generations but had minimal effect in folk music, suggesting genre-dependent utility.
  • The combination of chord, inter-conditioning, and bar position (CIB) produced the most aesthetically pleasing melodies, indicating strong synergistic effects.
  • Next chord conditioning sometimes caused models to anticipate chord changes prematurely, leading to key inconsistencies, particularly in Bebop, suggesting it may be less reliable than current chord conditioning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.