Code Monkey home page Code Monkey logo

lstm-composer's Introduction

This is the code repository for my Master's Thesis work, in Algorithmic Music Composition using Recurrent Neural Networks (RNN).

I'm currently testing different Long-Short Term Memory (LSTM) based models using the Keras library.

The main file, and the one that should be run, is model.py. That's the one that creates, trains and evaluates the model. The script will run with the configuration specified by default on config.ini. If you wish to load a different configuration file, please pass the file path as an argument to the script call: python model.py <myconfigfile.ini>

My approach to learning from musical pieces is to load .mid files into the model and translate the musical pieces to a "piano roll" like representation. All the necessary functions are contained within the dataUtils.py file. This file includes helper functions to convert from the MIDI format to a binary time discretized (what I call "piano roll" format) and the other way around, it also provides functions to reduce the size of the data considerably without losing much detail, mainly for performance purposes.

As a last note, this repository is still in active development as I keep trying more approaches to my area of research, so it might not be completely stable at all times. If you have any issues with running the code, please let me know.

lstm-composer's People

Contributors

bernatfp avatar

Stargazers

 avatar

Watchers

 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.