googlecreativelab/aiexperiments-ai-duet is one of the open-source repositories TopGit tracks, currently at 1.7k stars, written primarily in JavaScript. A piano that responds to you.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This project is no longer actively maintained by the Google Creative Lab but remains here in a read-only Archive mode so that it can continue to assist developers that may find the examples helpful. We aren’t able to address all pull requests or bug reports but outstanding issues will remain in read-only mode for reference purposes. Also, please note that some of the dependencies may not be up to date and there hasn’t been any QA done in a while so your mileage may vary.
For more details on how Archiving affects Github repositories see this documentation .
We welcome users to fork this repository should there be more useful, community-driven efforts that can help continue what this project began.
A.I. Duet (2016)
A piano that responds to you.
About
This experiment lets you make music through machine learning. A neural network was trained on many MIDI examples and it learned about musical concepts, building a map of notes and timings. You just play a few notes, and see how the neural net responds.
https://aiexperiments.withgoogle.com/ai-duet
This is not an official Google product.
CREDITS
Built by Yotam Mann with friends on the Magenta and Creative Lab teams at Google. It uses TensorFlow, Tone.js and open-source tools from the Magenta project. Check out more at A.I. Experiments.
OVERVIEW
A.I. Duet is composed of two parts, the front-end which is in the static folder and the back-end which is in the server folder. The front-end client creates short MIDI files using the players's input which is sent to a Flask server. The server takes that MIDI input and "continues" it using Magenta and TensorFlow which is then returned back to the client.
INSTALLATION
A.I. Duet only works with Python 2.7 and it was tested with Node v6. There are two basic ways of installing A.I. Duet: with Docker or without Docker.
If you already have a Python environment setup, install all of the server dependencies and start the server by typing the following in the terminal:
cd server
pip install -r requirements.txt
If this does not work, jump down to the Docker installation instructions, which will walk you through installing A.I. Duet within a Docker container.
If it did install tensorflow and magenta successfully, you can run the server by typing:
python server.py
Then to build and install the front-end Javascript code, first make sure you have Node.js 6 installed. And then install of the dependencies of the project and build the code by typing the following in the terminal:
cd static
npm install
npm run build
You can now play with A.I. Duet at localhost:8080.
DOCKER
Docker is an open-source containerization software which simplifies installation across various OSes. It is the simplest method to build and install both the front-end and back-end components. Once you have Docker installed, you can just run:
You can now play with A.I. Duet at localhost:8080.
MIDI SUPPORT
The A.I. Duet supports MIDI keyboard input using Web Midi API and the WebMIDI library.
PIANO KEYBOARD
The piano can also be controlled from your computer keyboard thanks to Audiokeys. The center row of the keyboard is the white keys.
AUDIO SAMPLES
Multisampled piano from Salamander Grand Piano V3 by Alexander Holm (Creative Commons Attribution 3.0).
String sounds from MIDI.js Soundfonts generated from FluidR3_GM.sf2 (Creative Commons Attribution 3.0).
LICENSE
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Is googlecreativelab/aiexperiments-ai-duet open source?
TopGit's metadata for googlecreativelab/aiexperiments-ai-duet does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is googlecreativelab/aiexperiments-ai-duet?
googlecreativelab/aiexperiments-ai-duet (googlecreativelab/aiexperiments-ai-duet) is a JavaScript project on GitHub. From the project's own README: A piano that responds to you.
Where can I see googlecreativelab/aiexperiments-ai-duet in action?
The project maintains a homepage at https://aiexperiments.withgoogle.com/ai-duet. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about googlecreativelab/aiexperiments-ai-duet?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/googlecreativelab/aiexperiments-ai-duet is the definitive source.
Read full README in the tab above.
Curious whether aiexperiments-ai-duet is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about aiexperiments-ai-duet.