Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burliEnterprises/tensorflow-music-generator
generates music (midi files) using a Tensorflow RNN
https://github.com/burliEnterprises/tensorflow-music-generator
midi music-generation tensorflow
Last synced: 2 months ago
JSON representation
generates music (midi files) using a Tensorflow RNN
- Host: GitHub
- URL: https://github.com/burliEnterprises/tensorflow-music-generator
- Owner: burliEnterprises
- Created: 2017-08-03T13:05:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T08:33:27.000Z (almost 4 years ago)
- Last Synced: 2024-08-04T20:03:35.828Z (6 months ago)
- Topics: midi, music-generation, tensorflow
- Language: Python
- Homepage: https://medium.com/@m_ko/deep-learning-with-tensorflow-part-3-music-and-text-generation-370cf37bb071
- Size: 1.59 MB
- Stars: 130
- Watchers: 6
- Forks: 43
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- interplanetary-destinesia - Tensorflow Music Generator
- project-awesome - burliEnterprises/tensorflow-music-generator - generates music (midi files) using a Tensorflow RNN (Python)
README
# tensorflow-music-generator
generates music (midi files) using a Tensorflow RNN
Read more about it on Medium: https://medium.com/@m_ko/deep-learning-with-tensorflow-part-3-music-and-text-generation-370cf37bb071
Hear a demo of the result here:
https://www.youtube.com/watch?v=5wZIQ9XHNns&feature=youtu.be## Overview
Use TensorFlow to generate short sequences of music with a [Restricted Boltzmann Machine](http://deeplearning4j.org/restrictedboltzmannmachine.html).
Original code comes from YouTube, see here: (https://youtu.be/ZE7qWXX05T0)## Dependencies
* [Tensorflow](https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html)
* pandas
* numpy
* msgpack-python
* glob2
* tqdm
* python-midi
Use [pip](https://pypi.python.org/pypi/pip) to install any missing dependencies (pip install --upgrade ... )### Dependencies on Windows with python3
```
pip3 install pandas
pip3 install msgpack-python
pip3 install numpy
pip3 install glob2
pip3 install tqdm
pip3 install py-midi
```## Basic Usage
To train the model and create music, simply clone this directory and run
```
python rbm_chords.py
```The training data goes in the pop_music_midi folder. You have to use MIDI files. You can find some [here](http://www.midiworld.com/files/).
I have already added pop songs.
Training will take 5-10 minutes on a modern laptop. The output will be a collection of midi files.## Credits
The credit for this code goes to [dshieble](https://github.com/dshieble) and [llSourcell](https://github.com/llSourcell/Music_Generator_Demo)
Have fun!