PIANOTO | NOTONO | NONOTO |
---|---|---|
Expressive piano performances creation | Time-frequency inpainting of instrument spectrograms | Inpainting of music sheet (with Ableton-Link support) |
This repository holds the source code for the web-based, AI-assisted interactive music creation apps developed by Théis Bazin at Sony CSL Paris. These apps are all based on inpainting, that is, the use of AI-models to transform images, sounds or sheets in a local fashion: just tell the model which zones of the media you'd like to transform (because you don't like it or because you'd like to see a variation of it!) and it will regenerate it for you. Thanks to the intuitive interactions offered by inpainting, these apps remove the need for cumbersome micro-level edits and work nicely on mobile as well!
Note that the music-inpainting.ts
interfaces each require connection to an AI model for inference!
Don't panic though:
- 🎉 We provide compatible models as Docker images (GPU recommended).
- ⚗️ The apps are model-agnostic: try to use them in conjunction with your own models!
PIANOTO helps you be the piano maestro that you deserve to be!
It is an A.I.-powered interactive MIDI piano roll, for mobile and desktop. Swipe on the musical representation to regenerate zones, always staying coherent with the context.
20221001-pianoto_usage_demo.mp4
NOTONO lets you use your visual brain to create instrument sounds.
Your guitar sample is lacking some depth? Paint some subs from an organ into it! Generate new sounds from scratch or drag-and-drop sounds of your choice into NOTONO to edit them.
2021_06_28-notono-final_fantasy_piano-short_demo.mp4
NONOTO is an interactive interface for symbolic sheet music generation and transformation by inpainting. Along with the DeepBach model by Gaëtan Hadjeres, NONOTO lets you generate 4-part chorale-like music in the style of J.S. Bach. Synchronize the app with Ableton Live via the included Ableton Link support and route the output via MIDI to get a smart, melodic and harmonic 4-channel sequencer. Get creative with the chorales by routing the different voices to custom synthesizers!
Here is a demo video of using NONOTO in sync with Ableton Live via Ableton-Link.
deepbach_acid_crew.mp4
These apps can be used either as standard web applications or as a packaged Electron app (which brings a few perks such as native drag-out or the support for Ableton-Link). They all share the same audio engine, based on the Web Audio API through Yotam Mann's Tone.js. They all support MIDI In and Out for interoperability with external software or hardware, via Jean-Philippe Côté's webmidi.js helper library over the Web MIDI API.
You can access the interfaces here!
You can download MacOS and Linux standalone applications here.
We recommended using the nvm
installation manager for Node.js, available
here.
The music-inpainting.ts apps are currently developed with node v18.5.0
and npm v8.15.0
.
We use the standard npm
package manager.
The apps can be installed as follows:
git clone https://github.com/SonyCSLParis/music-inpainting-ts.git
cd music-inpainting-ts
npm install
Once this is done, the music-inpainting.ts
Electron app (with live-reloading enabled for hacking) can be started with:
npm start
We strongly recommend running these images on a machine equipped with an NVIDIA CUDA-compatible GPU.
Application | Model | Docker image |
---|---|---|
PIANOTO | PIAv3 | public.ecr.aws/csl-music-team/piano_inpainting_app:v3 |
NOTONO | NOTONO | public.ecr.aws/csl-music-team/notono:pytorch-1.11.0-cuda11.3-cudnn8-runtime |
NONOTO | DeepBach | public.ecr.aws/csl-music-team/deepbach:latest |
- The
docker run
-p
parameter takes a pair of ports of the formCONTAINER_PORT:LOCALHOST_PORT
. - You might need to run the following commands as root depending on your installation of Docker.
The following commands start an inference server with access to the GPU with index 0
and listening on port 5005
(adapt to your own convenience).
Choose the appropriate model, run the command and leave the server running in the background. Then launch the music-inpainting.ts
interface as described above, set the Inpainting API address input field to http://localhost:5005
and select the appropriate mode, that's it!
docker run -p 5000:5005 --rm --gpus 0 public.ecr.aws/csl-music-team/piano_inpainting_app:v3 serve
serve
command!
docker run -p 8000:5005 --rm --gpus 0 public.ecr.aws/csl-music-team/notono:pytorch-1.11.0-cuda11.3-cudnn8-runtime
docker run -p 5000:5005 --rm --gpus 0 public.ecr.aws/csl-music-team/deepbach:latest --num_iterations_per_quarter=25 --num_iterations_per_quarter_initial_generate=10
Some icons used were made by Freepik from [www.flaticon.com].
We thank EPITECH students Martin Leblancs, Matthieu Queru and Sandro Sgro for their help on a preliminary version of PIANOTO during a development project at Sony CSL Paris.
This work was supported by the French ANRT through the CIFRE Industrial PhD grant Nr. 2019/0472.