Giter VIP home page Giter VIP logo

music_composer's Introduction

AI-Music-Composer

A project that trains a LSTM recurrent neural network over a data-set of MIDI files.

Dependencies

Numpy (http://www.numpy.org/)

Tensorflow 0.8 (https://github.com/tensorflow/tensorflow) its best to uses virtual env to do this

virtual env (https://virtualenv.pypa.io/en/stable/)

Python Midi (https://github.com/vishnubob/python-midi.git)

Mingus (https://github.com/bspaans/python-mingus)

Matplotlib (https://github.com/matplotlib/matplotlib)

How to use it?

  1. mkdir data && mkdir models
  2. run python main.py. This will collect the data, create the chord mapping file in data/nottingham.pickle, and train the model
  3. Run python rnn_sample.py --config_file new_config_file.config to generate a new MIDI song.

Give it 1-2 hours to train on your local machine, then generate the new song. You don't have to wait for it to finish, just wait until you see the 'saving model' message in terminal. To increase speed you can use a cloud based GPU such as www.fomoro.com

Credits

Credit for the vast majority of code here goes to Yoav Zimmerman. My only addition was a code wrapper. The main use of this project is as a proof of concept for RNN.

music_composer's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.