Join top executives in San Francisco on July 11-12, to hear how leaders are integrating and optimizing AI investments for success. Learn More

A Google Doodle due out later today will use AI to let you create a melody in a style that mimics composer Johann Sebastian Bach. After you pick your key and the music is harmonized, the tune can be shared on Facebook or Twitter or downloaded as a Musical Instrument Digital Interface (MIDI) file. Users can also turn any classical melody they create into a harmonious rock song.

Doodles are drawings or interactive experiences shared on, often to celebrate noteworthy people or anniversaries of important events.

This is the first Doodle created with artificial intelligence and the first to use tensor processing units, a company spokesperson told VentureBeat in an email. The Doodle is served up with TensorFlow.js and will be available to play with for the first time at 9 p.m. Pacific Time later today and on for 48 hours.

The Bach Doodle is the product of Google’s Doodle team, its People and AI Research team (PAIR), and the open source Magenta project for making music using machine learning. A Magenta-powered Music Transformer was debuted last December.


Transform 2023

Join us in San Francisco on July 11-12, where top executives will share how they have integrated and optimized AI investments for success and avoided common pitfalls.


Register Now

To make the Doodle possible, the group trained CocoNet, a machine learning model that harmonizes music, using 306 of Bach’s chorale harmonizations.

“[Bach’s] chorales always have four voices, each carrying their own melodic line, while creating a rich harmonic progression when played together,” Google AI program manager Lauren Hannah-Murphy wrote in a blog post. “This concise structure makes them good training data for a machine learning model. So when you create a melody of your own on the model in the Doodle, it harmonizes that melody in Bach’s specific style.”

The Bach Doodle may be the first powered by AI, but it’s not the first tie-up between AI and the Doodle team, as Ryan Germick, principal designer on the Google Doodle team, also oversees the personality team for Google Assistant. That team helps decide how Google Assistant responds when you ask about its favorite color or its taste in music.

This is the latest in a long line of interactive Doodles. To play with a larger list of interactive Doodles, visit the Doodle Archive.

VentureBeat's mission is to be a digital town square for technical decision-makers to gain knowledge about transformative enterprise technology and transact. Discover our Briefings.