English

The Bach Doodle: Approachable music composition with machine learning at scale

Sound 2019-07-17 v1 Human-Computer Interaction Machine Learning Audio and Speech Processing Machine Learning

Abstract

To make music composition more approachable, we designed the first AI-powered Google Doodle, the Bach Doodle, where users can create their own melody and have it harmonized by a machine learning model Coconet (Huang et al., 2017) in the style of Bach. For users to input melodies, we designed a simplified sheet-music based interface. To support an interactive experience at scale, we re-implemented Coconet in TensorFlow.js (Smilkov et al., 2019) to run in the browser and reduced its runtime from 40s to 2s by adopting dilated depth-wise separable convolutions and fusing operations. We also reduced the model download size to approximately 400KB through post-training weight quantization. We calibrated a speed test based on partial model evaluation time to determine if the harmonization request should be performed locally or sent to remote TPU servers. In three days, people spent 350 years worth of time playing with the Bach Doodle, and Coconet received more than 55 million queries. Users could choose to rate their compositions and contribute them to a public dataset, which we are releasing with this paper. We hope that the community finds this dataset useful for applications ranging from ethnomusicological studies, to music education, to improving machine learning models.

Keywords

Cite

@article{arxiv.1907.06637,
  title  = {The Bach Doodle: Approachable music composition with machine learning at scale},
  author = {Cheng-Zhi Anna Huang and Curtis Hawthorne and Adam Roberts and Monica Dinculescu and James Wexler and Leon Hong and Jacob Howcroft},
  journal= {arXiv preprint arXiv:1907.06637},
  year   = {2019}
}

Comments

Proceedings of the 18th International Society for Music Information Retrieval Conference, ISMIR 2019

R2 v1 2026-06-23T10:21:28.434Z