Lune

AAAI2025Top-tier venue

Text2midi: Generating Symbolic Music from Captions

Keshav Bhandari, Abhinaba Roy, Kyra Wang, Geeta Puri, Simon Colton, Dorien Herremans

Abstract

This paper introduces text2midi, an end-to-end model to generate MIDI files from textual descriptions. Leveraging the growing popularity of multimodal generative approaches, text2midi capitalizes on the extensive availability of textual data and the success of large language models (LLMs). Our end-to-end system harnesses the power of LLMs to generate symbolic music in the form of MIDI files. Specifically, we utilize a pretrained LLM encoder to process captions, which then condition an autoregressive transformer decoder to produce MIDI sequences that accurately reflect the provided descriptions. This intuitive and user-friendly method significantly streamlines the music creation process by allowing users to generate music pieces using text prompts. We conduct comprehensive empirical evaluations, incorporating both automated and human studies, that show our model generates MIDI files of high quality that are indeed controllable by text captions that may include music theory terms such as chords, keys, and tempo. We release the code and music samples on our demo page 1 for users to interact with text2midi.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Simple and Controllable Music Generation cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • MIDILM: A Dual-Path Model for Controllable Text-to-MIDI Generation cites Simple and Controllable Music Generation
  • MIDILM: A Dual-Path Model for Controllable Text-to-MIDI Generation cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
  • Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
  • Amadeus: Autoregressive Model with Bidirectional Attribute Modelling for Symbolic Music cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. MIDILM: A Dual-Path Model for Controllable Text-to-MIDI GenerationShuyu Li, Dooho Choi, Yunsick SungAAAI 2026
  2. Amadeus: Autoregressive Model with Bidirectional Attribute Modelling for Symbolic MusicHongju Su, Ke Li, Lan Yang, Honggang Zhang et al.ACL 2026

Builds on6

  1. Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
  2. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
  3. Simple and Controllable Music GenerationJade Copet, Felix Kreuk, Itai Gat, Tal Remez et al.NeurIPS 2023 · 843 citations
  4. Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano CompositionsYu-Siang Huang, Yi-Hsuan YangACM MM 2020 · 265 citations
  5. Museformer: Transformer with Fine- and Coarse-Grained Attention for Music GenerationBotao Yu, Peiling Lu, Rui Wang, Wei Hu et al.NeurIPS 2022 · 104 citations

Related papers

  1. Context-aware Image-to-Music Generation via Bridging Modalities through Musical CaptionsShilin Liu, Kyohei Kamikawa, Keisuke Maeda, Takahiro Ogawa et al.ACM MM 2025
  2. ChatMusician: Understanding and Generating Music Intrinsically with LLMRuibin Yuan, Hanfeng Lin, Yi Wang, Zeyue Tian et al.ACL Findings 2024 · 41 citations
  3. MuPT: A Generative Symbolic Music Pretrained TransformerXingwei Qu, Yuelin Bai, Yinghao Ma, Ziya Zhou et al.ICLR 2025
  4. Fine-Grained Controllable Text Generation Using Non-Residual PromptingFredrik Carlsson, Joey Öhman, Fangyu Liu, Severine Verlinden et al.ACL 2022
  5. Moûsai: Efficient Text-to-Music Diffusion ModelsFlavio Schneider, Ojasv Kamal, Zhijing Jin, Bernhard SchölkopfACL 2024
Dusk over the sea between two cliffs drawn in fine vertical lines