Humming2Music: Being A Composer As Long As You Can Humming

Yao Qiu, Jinchao Zhang, Huiying Ren, Yong Shan, Jie Zhou

Introduction

While artificial intelligence has made significant strides in music generation, a substantial "usability gap" persists for the average user. Most current tools require technical proficiency, such as the ability to write complex text prompts or provide existing chord progressions. Humming remains the most intuitive way for humans to express musical ideas, yet it presents significant technical challenges: the human voice lacks the clear onsets of instruments, and short vocal fragments often lack the structural depth required for a full song. Humming2Music addresses these hurdles by providing an end-to-end pipeline that transforms a simple hum into a fully orchestrated composition.

The Humming2Music Pipeline

The system employs a five-stage process to bridge the gap between raw audio and a polished track. This modular approach ensures that each component—from initial transcription to final mixing—maintains musical integrity and user intent.

The end-to-end pipeline of the Humming2Music system, illustrating the flow from user humming to multi-track synthesis.

1. Vision-Based Transcription (MusicYOLO)

Traditional frame-based transcription models often struggle with the "fuzzy" onsets and pitch instability of the human voice. Humming2Music bypasses this by treating transcription as an object detection task. By converting audio into a Constant-Q Transform (CQT) spectrogram, the system uses MusicYOLO (based on YOLOX) to detect notes as visual bounding boxes. This method proves significantly more robust than traditional pitch-tracking algorithms.

2. Template-Led Melody Generation (CMT)

To extend a short hum into a complete melody, the system utilizes a Conditional Generation Model. Rather than generating notes in a vacuum, it searches a library of one million 8-bar samples to find chord and rhythm templates that match the user's input. These templates serve as a structural "skeleton," preventing the common AI issue of "drifting" off-key or losing rhythmic coherence over time.

3. Orchestration and Synthesis

Once the lead melody is established, the system generates a full arrangement:

  • Broken Chord Generation: A Transformer-based model creates accompaniment tracks, using a specific alignment strategy to ensure harmonic and temporal synchronization with the melody.
  • Accompaniment Layers: An expert system based on music theory rules generates bass and string tracks, while a pattern library provides drum tracks.
  • Audio Synthesis: The final MIDI tracks are mixed using the Pedalboard library, applying professional audio processing like compression and reverb.
A detailed view of the generated multi-track score, showing the alignment of melody, broken chords, and other accompaniment layers.

Key Insights

  • Audio as Vision: By reframing transcription as a computer vision problem, the system handles the nuances of human singing more effectively than standard audio processing.
  • Constraint-Led Creativity: Using extracted chord and rhythm templates ensures that the output adheres to the repetition and structure typical of popular music, avoiding "musical word salad."
  • Score-Level Control: Because the system generates MIDI scores before synthesis, the output remains fully editable, offering a level of control not found in "black box" audio-to-audio models.

Evaluation and Results

The system was evaluated through human testing, focusing on accuracy and user satisfaction. Transcription remained highly accurate for standard humming speeds. Notably, melody quality did not degrade as song length increased, a common failure point for purely autoregressive models. In user surveys, 85% of participants rated the results as at least "not bad," with 39% finding the generated music "enjoyable and surprising."

Future Work

Future iterations of Humming2Music aim to improve transcription for rapid humming and move away from rule-based systems for bass and drums in favor of fully learned models. Additionally, the researchers plan to incorporate more expressive nuances, such as subtle timing variations and velocity changes, to make the synthesized audio sound more natural.

Summary updated

BibTeX
@inproceedings{qiu2023humming,
  author = {Yao Qiu and Jinchao Zhang and Huiying Ren and Yong Shan and Jie Zhou},
  title = {{Humming2Music: Being A Composer As Long As You Can Humming}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/840},
}
Figure