UPDATED 18:12 EST / DECEMBER 14 2016

EMERGING TECH

Researchers teach an AI to compose music like Bach’s

First artificial intelligence conquered board games. Now, it’s going after classical music.

In yet another example that no job is safe from automation, Gaetan Hadjeres and Francois Pachet from the Sony Computer Science Laboratories in Paris say they have trained an artificial intelligence agent named “DeepBach,” which can compose songs in the style of 17th-century German composer Johann Sebastian Bach.

Hadjeres and Pachet explained that they trained the AI using data from over 400 of Bach’s chorale compositions. Using neural networks, DeepBach can not only compose its own music, but also can take existing songs and re-harmonize them in Bach’s style. DeepBach can apparently do that so quickly that the researchers say it can actually be used in interactive music compositions, changing up music on the fly as needed.

“After being trained on the chorale harmonizations by Johann Sebastian Bach, our model is capable of generating highly convincing chorales in the style of Bach,” the researchers said in a Cornell University Library arXiv.org paper.

The researchers tested the success of their program by playing DeepBach compositions and asking listeners whether or not the piece was genuine. According to Hadjeres and Pachet, DeepBach had a roughly 50 percent success rate for this test, and they noted that the percentage for actual Bach compositions was only 75 percent. While there is clearly room for improvement, the researchers believe that DeepBach demonstrates the possibilities for AI-generated music, and they hope to apply the same technique to other composers and music genres.

“This method is not only applicable to Bach chorales but embraces a wide range of polyphonic chorale music, from Palestrina to Take 6,” said Hadjeres and Pachet.

Sony is not the only company looking into AI-generated music. Earlier this year, the Google Brain team unveiled a new TensorFlow project called Magenta, which can take a very short melody and expand it into a full-length song. Magenta has yet to write any chart-toppers, but Google hopes that the project will open new avenues of AI research and build a community of artists and developers.

You can listen to one of DeepBach’s compositions:

Photo: woodleywonderworks boy, playing piano via photopin

Since you’re here …

… We’d like to tell you about our mission and how you can help us fulfill it. SiliconANGLE Media Inc.’s business model is based on the intrinsic value of the content, not advertising. Unlike many online publications, we don’t have a paywall or run banner advertising, because we want to keep our journalism open, without influence or the need to chase traffic.The journalism, reporting and commentary on SiliconANGLE — along with live, unscripted video from our Silicon Valley studio and globe-trotting video teams at theCUBE — take a lot of hard work, time and money. Keeping the quality high requires the support of sponsors who are aligned with our vision of ad-free journalism content.

If you like the reporting, video interviews and other ad-free content here, please take a moment to check out a sample of the video content supported by our sponsors, tweet your support, and keep coming back to SiliconANGLE.