DeepBach: A Steerable Model for Bach Chorales Generation

All projectsICML · 2017

Generate and edit Bach-style chorales while fixing selected notes, rhythms, or voices.

Neural generation · Four-part harmony

Four voices: the melody and cadence remain fixed while the other parts are regenerated.

A steering example: keep the melody and cadence, then regenerate the other notes. Colours distinguish fixed choices from passages to sample.

Overview

Listen to generated four-part chorales, including examples sung by the Wishful Singing choir. The original code includes a MuseScore plug-in that lets you regenerate selected passages.

Authors: Gaëtan Hadjeres, François Pachet, Frank Nielsen

Reference: Proceedings of the 34th International Conference on Machine Learning (ICML),
pp. 1362–1371, 2017.

Resources

Abstract

DeepBach generates four-part chorales in the style of Bach using pseudo-Gibbs sampling and a model trained on 352 Bach chorales after filtering, with additional examples from transposition. A user can fix notes, rhythms, voices, or cadences and let the model fill in the rest. In an online listening test, around half of listener judgments on DeepBach excerpts attributed them to Bach.

Highlights

  • Deep generative model for four-part Bach-style chorales using pseudo-Gibbs sampling.
  • Users can fix notes, rhythms, cadences, and specific voices in the score.
  • Generated chorales reproduce Bach-like patterns, including characteristic cadences and nonchord tones.
  • The listening test involved 1,272 participants across three levels of musical expertise.
  • The accompanying MuseScore plug-in demonstrates interactive reharmonization.

Keywords

Deep learning for music; symbolic music generation; steerable generative models; Bach chorales;
pseudo-Gibbs sampling; computational creativity; music information retrieval.

BibTeX

Show citation
@inproceedings{hadjeres2017deepbach,
  title        = {DeepBach: a Steerable Model for Bach Chorales Generation},
  author       = {Hadjeres, Ga{\"e}tan and Pachet, Fran{\c{c}}ois and Nielsen, Frank},
  booktitle    = {Proceedings of the 34th International Conference on Machine Learning},
  pages        = {1362--1371},
  year         = {2017}
}

Related work

GLSR-VAE: Geodesic Latent Space Regularization for Variational AutoEncoder Architectures · PDF (2017), by Gaëtan Hadjeres, Frank Nielsen and François Pachet, explores another approach to steerable generation: shaping a VAE latent space so that movement corresponds to changes in generated attributes.

Why this paper matters

DeepBach was one of the first systems to show that deep learning could convincingly generate music
in a highly codified style, and demonstrated this in an online listening test. It also framed
symbolic music generation as an interactive and steerable process, where human
users retain control over musical structure while the model fills in the details. This idea has
influenced many later AI music systems and remains a reference point for controllable music models.

Related projects
Flow Machines