UPDATED 17:16 EDT / FEBRUARY 16 2017

EMERGING TECH

Google’s AI Duet lets you play piano with a robot

It has been more than half a year since Google Inc. first revealed a piano-playing artificial intelligence that can take a few notes and turn them into a song. Now the search giant has decided to share the experience with the world with its AI Duet web app.

Yotam Mann is the musician and coder behind the new AI, which he created with help from Google’s Magenta and Creative Labs teams. In a video, Mann explained the process behind the AI and how it manages to play along with new music on the fly.

“Making music using code isn’t a new thing at all, but machine learning gives us a different way to go about it,” said Mann. “If I was trying to make AI Duet with more traditional programming, I’d have to write out lots of rules.”

Mann explained that using older methods of AI programming, he would have had to tell the computer exactly how to respond to an impossible number of inputs. “I’d basically be creating this map to tell the computer how to make these decision, but there are just too many note and timing combinations to map it all by hand,” he said.

Rather than programming AI Duet with specific rules for how to respond to notes, Mann trained the AI using neural networks. This technique attempts to work roughly like the human brain, with artificial neurons working together to form links and reinforce existing knowledge.

Google fed its AI a massive number of note combinations, and from that data, the AI learned how to form connections between notes that are often played together or in sequence, their timing and so on. With AI Duet, when you play a few notes, the AI compares that data to the links created in its neural nets and then decides what to play from a few different possibilities. Mann said that the AI will try to make sense of any notes you give it, even if you just mash the keyboard, but it will also try to follow along with rhythm and melodies.

Mann built AI Duet using Magenta, an open-source deep learning library that the Google Brain team built with TensorFlow. The code for AI Duet is also open source, so if you want to build your own piano-playing robot, you can get started now.

My results with Google’s AI Duet have not been particularly catchy so far, but then again, maybe the AI is only as good as its partner. Either way, it still won’t play “Chopsticks” with us.

Here’s the video:

Image courtesy of Google

A message from John Furrier, co-founder of SiliconANGLE:

Support our mission to keep content open and free by engaging with theCUBE community. Join theCUBE’s Alumni Trust Network, where technology leaders connect, share intelligence and create opportunities.

  • 15M+ viewers of theCUBE videos, powering conversations across AI, cloud, cybersecurity and more
  • 11.4k+ theCUBE alumni — Connect with more than 11,400 tech and business leaders shaping the future through a unique trusted-based network.
About SiliconANGLE Media
SiliconANGLE Media is a recognized leader in digital media innovation, uniting breakthrough technology, strategic insights and real-time audience engagement. As the parent company of SiliconANGLE, theCUBE Network, theCUBE Research, CUBE365, theCUBE AI and theCUBE SuperStudios — with flagship locations in Silicon Valley and the New York Stock Exchange — SiliconANGLE Media operates at the intersection of media, technology and AI.

Founded by tech visionaries John Furrier and Dave Vellante, SiliconANGLE Media has built a dynamic ecosystem of industry-leading digital media brands that reach 15+ million elite tech professionals. Our new proprietary theCUBE AI Video Cloud is breaking ground in audience interaction, leveraging theCUBEai.com neural network to help technology companies make data-driven decisions and stay at the forefront of industry conversations.