Who needs a partner when you have artificial intelligence?

Next time you have a hankering to play “Heart and Soul,” just turn on your computer. A new experiment by Google allows your machine to play a duet using AI.

The program was developed as part of Magenta, an open-source project launched by Google last year. With it, you can play some notes on a virtual piano, and the computer will respond with a melody.

To teach the computer, Google played it different examples of melodies. The computer was then able to learn relationships between notes and map its own using the neural net.

The experiment’s coder Yotam Mann said in a video that the computer was able to learn key and rhythm without him programming those concepts in.

But don’t kick out your keyboardist just yet. While the computer can respond to melodies, it doesn’t actually play songs. Instead, you take turns playing notes with the machine.

You can check it out here, and, don’t worry if you’re not a musician, the computer will respond to anything you play and it won’t judge you either.

Like what you're reading? Subscribe to GeekWire's free newsletters to catch every headline

Job Listings on GeekWork

Find more jobs on GeekWork. Employers, post a job here.