Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DamiPayne/AI-Music-Composer
A project that trains a LSTM recurrent neural network over a data-set of MIDI files.
https://github.com/DamiPayne/AI-Music-Composer
ai ai-music midi-files neural-network python python-midi songs
Last synced: 2 months ago
JSON representation
A project that trains a LSTM recurrent neural network over a data-set of MIDI files.
- Host: GitHub
- URL: https://github.com/DamiPayne/AI-Music-Composer
- Owner: DamiPayne
- License: mit
- Created: 2017-04-13T10:52:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-03T17:07:35.000Z (over 3 years ago)
- Last Synced: 2024-08-05T06:06:10.345Z (6 months ago)
- Topics: ai, ai-music, midi-files, neural-network, python, python-midi, songs
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 65
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
- project-awesome - DamiPayne/AI-Music-Composer - A project that trains a LSTM recurrent neural network over a data-set of MIDI files. (Python)
README
# 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
This is an adaptation of an idea from [Yoav Zimmerman](https://github.com/yoavz). The main use of this project is as a proof of concept for a RNN.