Emerging Technologies

This Google AI can play a duet with you on the piano

A grand piano that has been left by the East River underneath the Brooklyn Bridge is pictured in the Manhattan borough of New York May 31, 2014. According to local media, the piano has been there for a few days puzzling locals as to how it got there and the reason for its placement, perfectly under the bridge.   REUTERS/Carlo Allegri (UNITED STATES - Tags: SOCIETY) - RTR3RO17

Google is developing AI which can play a piano. Image: REUTERS/Carlo Allegri

Rob Price
Technology Reporter, Business Insider

Google is trying to create artificial intelligence (AI) capable of making art — and it has now taught it to play piano.

A new experiment from the Californian technology giant lets you play musical duets with a piano-playing AI.

The project, called "A.I. DUET," uses neural network technology to learn how to play the instrument in response to the user's input.

You just play a tune — as simple or complex as you want — and then the AI plays a response to your tune back to you.

"You don’t even have to know how to play piano — it's fun to just press some keys and listen to what comes back," Google employee Alexander Chen wrote in a blog post.

"We hope it inspires you — whether you’re a developer or musician, or just curious — to imagine how technology can help creative ideas come to life."

I gave it a go, and the results were mixed: Sometimes, it sounded fantastic, like there was a real pianist responding to my music. Other times, it was nonsensical, jarring, or overly simple.

 Interface
Image: Google

But what makes this experiment so interesting — and different to traditional piano-playing computer programs — is how it works, using neural networks. Its creators didn't program specific responses into it — they just gave it a load of music, and from that it taught itself how to respond to different tunes.

"We played the computers tons of examples of melodies. Ove time, it learns these fuzzy relationships between tones and timings, and built its own map based on the examples it's given," Google employee Yotam Mann said in a video. "So in this experiment you play a few notes, they go to the neural net, which basically decides based on those notes and all the examples it's been given some possible responses."

He added: "It picks up on stuff like key and rhythm that you're implying, even though I never explicitly programmed the concepts of key and rhythm."

You can play it directly from your computer, using your keyboard or your mouse. Or if you're more musically inclined, you can plug a proper musical keyboard straight into your computer, and play with the AI that way.

And this isn't just a fun toy for anyone to play with — though it is that as well. It's part of a larger project from Google to try and create art and music using AI. The project is called Magenta, and it's all open source, so anyone interested can download the code and experiment with it for themselves.

There's a video of Yotam Mann talking about the experiment below, and you can play with it here »

Loading...
Don't miss any update on this topic

Create a free account and access your personalized content collection with our latest publications and analyses.

Sign up for free

License and Republishing

World Economic Forum articles may be republished in accordance with the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License, and in accordance with our Terms of Use.

The views expressed in this article are those of the author alone and not the World Economic Forum.

Stay up to date:

Media, Entertainment and Sport

Related topics:
Emerging TechnologiesArts and CultureIndustries in Depth
Share:
The Big Picture
Explore and monitor how Arts and Culture is affecting economies, industries and global issues
A hand holding a looking glass by a lake
Crowdsource Innovation
Get involved with our crowdsourced digital platform to deliver impact at scale
World Economic Forum logo
Global Agenda

The Agenda Weekly

A weekly update of the most important issues driving the global agenda

Subscribe today

You can unsubscribe at any time using the link in our emails. For more details, review our privacy policy.

AI at work: A practical guide to implementing and scaling new tools

David Elliott

November 25, 2024

Generative AI and the workforce: 10 big trends we're seeing right now

About us

Engage with us

  • Sign in
  • Partner with us
  • Become a member
  • Sign up for our press releases
  • Subscribe to our newsletters
  • Contact us

Quick links

Language editions

Privacy Policy & Terms of Service

Sitemap

© 2024 World Economic Forum