A piano that responds to you.
Go to file
2022-05-22 19:17:25 +02:00
server repaired docker, added docker-compose 2022-05-22 19:17:25 +02:00
static using specific versions of libs 2018-06-12 11:03:27 -04:00
.gitignore adding readme / contributing 2016-11-11 13:52:40 -05:00
CONTRIBUTING.md adding readme / contributing 2016-11-11 13:52:40 -05:00
docker-compose.yml repaired docker, added docker-compose 2022-05-22 19:17:25 +02:00
Dockerfile repaired docker, added docker-compose 2022-05-22 19:17:25 +02:00
README.md repaired docker, added docker-compose 2022-05-22 19:17:25 +02:00

A.I. Duet

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.

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:

$ sudo docker build -t ai-duet .
$ sudo docker run -t -p 8080:8080 ai-duet

You can now play with A.I. Duet at localhost:8080.

DOCKER-COMPOSE

$ docker-compose build
$ docker-compose up -d

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.