Coder Social home page Coder Social logo

tarcisio-marinho / music-generation Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 3.0 847 KB

Piano music generation with RNN with Tensorflow

License: GNU General Public License v2.0

Python 100.00%
rnn rnn-tensorflow rnn-model recurrent-neural-networks recurrent-neural-network lstm lstm-neural-networks lstm-model tensorflow tensorflow-models

music-generation's Introduction

Piano Music Generation with RNN with tensorflow

You can generate new piano music based with your prefered artists.

Pass as argument the path with the .mid files to the main.

If none argument is passed, it will use the EDEN playlist.

python main.py -d <path>

You can also pass the name of the file, if not specified, it will be "output"

python main.py -o output_file

It will generate the output as .mp3 so you can listen to it!

If the quality of the output isn't that good, you can feed the program with more music.

Dependencies

sudo apt-get install timidity

sudo apt-get install ffmpeg

sudo pip install python-midi numpy msgpack tqdm tensorflow

sudo pip install msgpack

Usage

usage: main.py [-h] [-d] [-o]

Generate Piano music.

optional arguments:
  -h, --help         show this help message and exit
  -d , --directory   the music to be trained should be inside this dir, if not
                     specified, EDEN-midi will be the input
  -o , --output      Output music as an .mp3 file, if not specified, will be
                     output.mp3

music-generation's People

Contributors

tarcisio-marinho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.