Skip to content

sorgmi/deeplearning_music_generation

Repository files navigation

Deep Learning for Music Generation

I love music and deep learning. Let's combine both.


List of experiments

  1. Overfitting example with Keras: Overfit a single and simple piece of music with a basic encoder-decoder LSTM
  2. Overfitting example with PyTorch and Embeddings (or use this link): Overfit a single and simple piece of music with a basic encoder-decoder LSTM. Supports different note lengths
  3. Overfitting example with Attention: Overfit a single and simple piece of music with a basic encoder-decoder LSTM. This time the decoder uses the attention mechanism. Attetion focus is visualised

Todo

  • Support variable note length (ties wihtin the same note)
  • Support Ties
  • Support chords
  • Use and analyse attention (show and plot attetion focus)
  • Perform quantization
  • Look for more advanced network architectures (RNN's, GAN's...)

Encoding details

Encoding is inspired by Bachbot. Image is from here: Encoding from Bachbot

Encoding and decoding is done by encoding.py.

Current encoding: 258 different symbols are used as input

  • 128 midi notes: Represent standard notes
  • additional 128 midi notes: Represents the same note as the 128 first notes (same pitch), but this time the note is tied to the previous note. This the network can output notes with different lengths (multipple times the same note tied to the previous note).
  • 2 additional symbols: START, STOP

 

Some interesting and relevant links

About

Generating music with neural networks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published