Skip to main content
QUICK REVIEW

[Paper Review] The Piano Inpainting Application

Gaëtan Hadjeres, Léopold Crestel|arXiv (Cornell University)|Jul 13, 2021
Music and Audio ProcessingComputer Science25 references7 citations
TL;DR

This paper introduces the Piano Inpainting Application (PIA), a real-time, interactive AI system that generates expressive piano performances by inpainting missing segments in MIDI clips. Using a novel Structured MIDI Encoding and an optimized Linear Transformer encoder-decoder model, PIA enables fast, responsive generation within Ableton Live via a Max for Live plugin, supporting fluid human-AI collaboration in music composition.

ABSTRACT

Autoregressive models are now capable of generating high-quality minute-long expressive MIDI piano performances. Even though this progress suggests new tools to assist music composition, we observe that generative algorithms are still not widely used by artists due to the limited control they offer, prohibitive inference times or the lack of integration within musicians' workflows. In this work, we present the Piano Inpainting Application (PIA), a generative model focused on inpainting piano performances, as we believe that this elementary operation (restoring missing parts of a piano performance) encourages human-machine interaction and opens up new ways to approach music composition. Our approach relies on an encoder-decoder Linear Transformer architecture trained on a novel representation for MIDI piano performances termed Structured MIDI Encoding. By uncovering an interesting synergy between Linear Transformers and our inpainting task, we are able to efficiently inpaint contiguous regions of a piano performance, which makes our model suitable for interactive and responsive A.I.-assisted composition. Finally, we introduce our freely-available Ableton Live PIA plugin, which allows musicians to smoothly generate or modify any MIDI clip using PIA within a widely-used professional Digital Audio Workstation.

Motivation & Objective

  • Address the lack of interactive, responsive AI tools in professional music composition workflows.
  • Overcome limitations of existing generative models in controlling, editing, or integrating with DAWs in real time.
  • Enable intuitive human-AI collaboration through a focused inpainting task that restores missing sections of piano performances.
  • Develop a system that integrates seamlessly into professional music production environments like Ableton Live.
  • Improve inference speed and model controllability for expressive MIDI generation using a novel data representation and architecture.

Proposed method

  • Propose a novel Structured MIDI Encoding representation that separates pitch, velocity, duration, and time-shift into structured, low-vocabulary sequences, enhancing model generalization and inpainting efficiency.
  • Implement an encoder-decoder Linear Transformer architecture trained on expressive piano performances to model long-range dependencies and enable conditional generation.
  • Leverage the two-mode inference capability of Linear Transformers—autoregressive and non-autoregressive—to accelerate inpainting of contiguous regions.
  • Design a fast inference scheme that generates notes progressively in real time, enabling responsive interaction with minimal latency.
  • Develop a Max for Live plugin for Ableton Live, allowing musicians to trigger inpainting of selected MIDI clips directly in a DAW environment.
  • Use a fine-tuned, moderate-sized model to achieve high-quality, expressive output while maintaining near real-time inference speed.

Experimental results

Research questions

  • RQ1Can a generative model for expressive piano performance be made interactive and efficient enough for real-time use in professional DAWs?
  • RQ2How can a structured, non-event-based MIDI representation improve the performance and controllability of inpainting models compared to standard event-based encodings?
  • RQ3To what extent can Linear Transformers enable fast, high-quality inpainting of contiguous regions in expressive piano performances?
  • RQ4Can a plugin-based integration into a widely used DAW like Ableton Live significantly improve accessibility and adoption of AI-assisted music composition?
  • RQ5What novel compositional workflows emerge when AI tools support iterative, interactive inpainting rather than unconditional generation?

Key findings

  • The Piano Inpainting Application (PIA) achieves near real-time inference, with the first notes of an inpainted region generated in under one second, enabling responsive human-AI interaction.
  • The Structured MIDI Encoding representation enables better model generalization and more efficient training and inference by decoupling musical attributes into smaller, structured vocabularies.
  • The Linear Transformer architecture, combined with its dual inference mode, allows for fast, high-quality inpainting of contiguous regions without sacrificing expressiveness.
  • The PIA plugin integrates seamlessly into Ableton Live, allowing musicians to regenerate or modify any MIDI clip directly in a professional DAW environment.
  • The system supports innovative compositional workflows by enabling iterative, interactive editing of piano performances, moving beyond simple continuation or unconditional generation.
  • The model demonstrates strong generation quality on expressive piano performances, maintaining fine-grained control over velocity and micro-timing, even when inpainting long or complex segments.

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.