Skip to content

Commit

Permalink
Add version information for magenta installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dubreuia committed Feb 21, 2020
1 parent 9c4b963 commit adb8bd7
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 5 deletions.
16 changes: 12 additions & 4 deletions Chapter01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,22 @@ conda create --name magenta python=3.6
conda activate magenta
```

Then you can install Magenta and dependencies for the book with:
Then you can install Magenta version 1.1.7 and the dependencies for the book using:

```bash
# Install
pip install magenta visual_midi
pip install magenta==1.1.7 visual_midi tables
```

We're using version 1.1.7 for this code repository. You might be able to follow the examples using another version, but since Magenta's code changes quite a lot, imports might change depending on the version.

# Test installation
```bash
# Check Magenta versoin
python -c "import magenta; print(magenta.__version__)"
## 1.1.7

# Check Tensorflow versoin
python -c "import tensorflow; print(tensorflow.__version__)"
## 1.15.0
```

## Utility Scripts
Expand Down
2 changes: 2 additions & 0 deletions Chapter02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This chapter will show you what many consider the foundation of music—percussi

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_02_example_01.py) or [notebook](notebook.ipynb)

This example shows a basic Drums RNN generation with a hard coded primer. For the Python script, while in the Magenta environment (`conda activate magenta`):
Expand Down
2 changes: 2 additions & 0 deletions Chapter03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This chapter will show the importance of Long Short-Term Memory (LSTM) networks

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_03_example_01.py) or [notebook](notebook.ipynb)

This example shows a melody (monophonic) generation using the Melody RNN model and 3 configurations: basic, lookback and attention. For the Python script, while in the Magenta environment (`conda activate magenta`):
Expand Down
2 changes: 2 additions & 0 deletions Chapter04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This chapter will show the importance of continuous latent space of Variational

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_04_example_01.py) or [notebook](notebook.ipynb)

This example shows how to sample, interpolate and humanize a drums sequence using MusicVAE and various configurations. For the Python script, while in the Magenta environment (`conda activate magenta`):
Expand Down
2 changes: 2 additions & 0 deletions Chapter05/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ We provide some sound samples and MIDI files for the examples.

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_05_example_01.py)

This example shows how to use NSynth to interpolate between pairs of sounds.
Expand Down
2 changes: 2 additions & 0 deletions Chapter06/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ python /path/to/the/pipeline/melody_rnn_pipeline_example.py --config="attention_

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 0](chapter_06_example_00.py)

Extract techno (four on the floor) drum rhythms.
Expand Down
2 changes: 1 addition & 1 deletion Chapter07/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This chapter will show how to tune hyperparameters, like batch size, learning ra

## Code

This chapter doesn't contain a lot of code, refer to the book for the content.
This chapter doesn't contain a lot of code, refer to the book for the content. Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_07_example_01.py)

Expand Down
2 changes: 2 additions & 0 deletions Chapter08/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This chapter will show a JavaScript implementation of Magenta that gained popula

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_08_example_01.html)

An example on how to use a converted model (from a previously trained model) locally.
Expand Down
2 changes: 2 additions & 0 deletions Chapter09/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This chapter will show how Magenta fits in a broader picture by showing how to m

## Code

Before you start, follow the [installation instructions for Magenta 1.1.7](https://github.com/PacktPublishing/hands-on-music-generation-with-magenta/tree/master/Chapter01#installing-magenta).

### [Example 1](chapter_09_example_01.py)

Utility functions for finding and creating MIDI ports.
Expand Down

0 comments on commit adb8bd7

Please sign in to comment.