April 2020
Intermediate to advanced
380 pages
9h 24m
English
In this section, we'll be working on the MusicGenerate.ipynb notebook inside the Jupyter notebook environment:
import midofrom mido import MidiFile, MidiTrack, Messagefrom tensorflow.keras.layers import LSTM, Dense, Activation, Dropout, Flattenfrom tensorflow.keras.preprocessing import sequencefrom tensorflow.keras.models import Sequentialfrom tensorflow.keras.optimizers import Adamfrom sklearn.preprocessing import MinMaxScalerimport numpy as np
We've used the mido library. If you do not have it installed on your system, you can use the following command to install it:
pip install mido
Notice in the preceding ...
Read now
Unlock full access