Skip to content
/ MeRLA Public

Monophonic melody generation with reinforcement learning

Notifications You must be signed in to change notification settings

jKlag/MeRLA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MeRLA

Monophonic melody generation with reinforcement learning

Setup

Running this program requires the installation of the python-midi toolkit, which can be found here.

Running MeRLA

Inside main.py, there are several variables that can be changed. The input chord progressions can be modified near the bottom of the file (there are examples for formatting). The output csv file name and the number of simulations can be modified as parameters to the 'run_experiment' function. The 'SURVEY' boolean at the top of the file can be used to generate three types of melodies (MeRLA with tension, MeRLA without tension, and random) for comparison. If 'SURVEY' is false, only one melody will be generated for each chord progression.

The main.py script can then be run with

python2.7 main.py

Copyright © 2018 Joshua Klag

About

Monophonic melody generation with reinforcement learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages