https://github.com/gopuman/musicgen
https://github.com/gopuman/musicgen
keras midi music
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gopuman/musicgen
- Owner: gopuman
- Created: 2022-07-21T06:21:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T08:56:05.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T11:32:43.338Z (5 months ago)
- Topics: keras, midi, music
- Language: Python
- Homepage:
- Size: 396 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MusicGen
Credits - [How to Generate Music using a LSTM Neural Network in Keras](https://towardsdatascience.com/how-to-generate-music-using-a-lstm-neural-network-in-keras-68786834d4c5) --> [Classical Piano Composer](https://github.com/Skuldur/Classical-Piano-Composer)This project allows you to train a neural network to generate midi music files that make use of a single instrument
## Requirements
* Python 3.x
* Installing the following packages using pip:
* Music21
* Keras
* Tensorflow
* h5py
## Usage
* Place midi files of your choice into the midi_songs directory* Run the train.py file to train the NN
```
python3 train.py
```* After successfully running train.py, update the path_to_weights_file variable in `gen.py` and run:
```
python3 gen.py
```* Find the results in - `test_output.mid`
## Results
* I had chosen music of similar genres i.e Superhero/Sci-Fi music
* Check it out -> [BatAI_unmixed](https://soundcloud.com/gopal-nambiar/batai_unmixed?in=gopal-nambiar/sets/the-bat)