I love this Google Doodle, though even Bach can’t rescue my appalling lack of musical ability!
Google’s first AI-powered Doodle is a piano duet with Bach
Starting on March 21st, you’ll be able to play with the interactive Doodle, which will prompt you to compose a two-measure melody or pick one of the pre-existing choices. When you press the “Harmonize” button, it will use machine learning to give you a version of your melody that sounds like it was composed by Bach himself.
Various Google teams were involved in this project, including Google Magenta. There is an incredible amount of detail about the technologies behind the Bach harmonies on their own site.
Coconet: the ML model behind today’s Bach Doodle
Coconet is trained to restore Bach’s music from fragments: we take a piece from Bach, randomly erase some notes, and ask the model to guess the missing notes from context. The result is a versatile model of counterpoint that accepts arbitrarily incomplete scores as input and works out complete scores. This setup covers a wide range of musical tasks, such as harmonizing melodies, creating smooth transitions, rewriting and elaborating existing music, and composing from scratch.
I cannot begin to understand what’s going on there, but it sounds good.