magenta /magenta

Magenta: Music and Art Generation with Machine Intelligence

★ 19,785⑂ 3,757👁 7⑃ 1,146● 970▤ 48
PythonApache-2.0Created 2016-05-05
Download: Magenta v2.1.4Magenta-2.1.4 ↓2.1.42022-08-01
+0
Daily
19,785
stars
3,757
forks
7
watchers
1,146
prs
970
issues
48
releases

README

Status

This repository is currently inactive (archived, read only) and serves only as a supplement some of our papers. We have transitioned to using individual repositories for new projects. For our current work, see the Magenta website and Magenta GitHub Organization.

 Magenta




 

Magenta is a research project exploring the role of machine learning
in the process of creating art and music.  Primarily this
involves developing new deep learning and reinforcement learning
algorithms for generating songs, images, drawings, and other materials. But it's also
an exploration in building smart tools and interfaces that allow
artists and musicians to extend (not replace!) their processes using
these models.  Magenta was started by some researchers and engineers
from the Google Brain team,
but many others have contributed significantly to the project. We use
TensorFlow and release our models and
tools in open source on this GitHub.  If you’d like to learn more
about Magenta, check out our blog,
where we post technical details.  You can also join our discussion
group.

This is the home for our Python TensorFlow library. To use our models in the browser with TensorFlow.js, head to the Magenta.js repository.

 Getting Started

Take a look at our colab notebooks for various models, including one on getting started.
Magenta.js is also a good resource for models and demos that run in the browser.
This and more, including blog posts and Ableton Live plugins, can be found at https://magenta.tensorflow.org.

 Magenta Repo

 Installation
 Using Magenta
 Development Environment (Advanced)

 Installation

Magenta maintains a pip package for easy
installation. We recommend using Anaconda to install it, but it can work in any
standard Python environment. We support Python 3 (= 3.5). These instructions
will assume you are using Anaconda.

 Automated Install (w/ Anaconda)

If you are running Mac OS X or Ubuntu, you can try using our automated
installation script. Just paste the following command into your terminal.

bash
curl https://raw.githubusercontent.com/tensorflow/magenta/main/magenta/tools/magenta-install.sh  /tmp/magenta-install.sh
bash /tmp/magenta-install.sh


After the script completes, open a new terminal window so the environment
variable changes take effect.

The Magenta libraries are now available for use within Python programs and
Jupyter notebooks, and the Magenta scripts are installed in your path!

Note that you will need to run source activate magenta to use Magenta every
time you open a new terminal window.

 Manual Install (w/o Anaconda)

If the automated script fails for any reason, or you'd prefer to install by
hand, do the following steps.

Install the Magenta pip package:

bash
pip install magenta


NOTE: In order to install the rtmidi package that we depend on, you may need to install headers for some sound libraries. On Ubuntu Linux, this command should install the necessary packages:

bash
sudo apt-get install build-essential libasound2-

Top issues

Latest release

Magenta v2.1.4 v2.1.4 2022-08-01
Pin dependency versions for faster pip install, and a few other minor updates.

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON