Classical Music Generator
For this project, we will use Python3.7
, managing the necessary Python packages using
Pipenv: Python Dev Workflow for Humans.
You can install it following the steps shown at their installation section.
To install the requirements listed in the Pipfile, run:
$ pipenv install
To add a new package to the project:
$ pipenv install <package>
To activate the python shell, run the following command, which will spawn a new shell subprocess, which can be deactivated by using exit
.
$ pipenv shell
First of all, to work with this project, we are going to need a Environment variable pointing to our root. E.g. if our project is at /home/projects/bachpropagation, just add to your`favorite bash profile:
export BACHPROPAGATION_ROOT_PATH=/home/projects/bachpropagation
To download the raw midi files, run the script at src/dataset
called crawler.py
,
which will download all MIDI files into res/dataset/raw
. Then, to make them easier to process, we will convert those
into CSV files by running src/dataset/parser.py
that will write the processed files into res/dataset/processed
.