Giter Site home page Giter Site logo

robsdedude / melody-composer Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 1.0 37 KB

Using higher Order Markov Modells and Clustering to compose melodies similar to a training data set

License: Other

Python 98.11% Shell 1.89%
clustering compose-melodies content-generation artificial-intelligence computational-creativity ai

melody-composer's Introduction

This program is part of my bachelor thesis which can be found on arXiv. It's a machine learning algorithm that generates monophonic melodies similar to those of a phrase annotated data-set. In- and output are midi files (i.e. machine readable music).

Setup

Use virtualenv

virtualenv venv
source venv/bin/activate
export LC_ALL=C
pip install -r requirements.txt

Troubleshooting

On Ubuntu based systems it can happen, that there are header files missing. Do: sudo apt-get install liblapack-dev libblas-dev It can also happen, that you need to install a fortran compiler. Do: sudo install gfortran After fixing these things re-run pip install -r requirements.txt each time.

Trainings Data

Download the MTC-FS data set and unzip it into the folder MTC-FS-1.0

Then run the preporcessing

mkdir -p MTC-FS-1.0/good_midi  # create folder to put pre-processed midi files in
source venv/bin/activate       # activate virtualenv
python preprocess.py           # run preprocessing
deactivate                     # deactivate virtualenv

Run the program

Start the virtual environment with source venv/bin/activate To general start the program go to this directory and run python main.py More information: python2 main.py --help

Other things

To see how the clustering is working have a look at main() in contour.py

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.