A Python attempt at supervised, automatic melodic harmonization.
Demonstration available here: https://www.youtube.com/watch?v=fq1XNULCcSw
In order to take advantage of the full power of Das-Harmonie, you should download the following software:
-
LilyPond (http://www.lilypond.org)
-
Finale NotePad (available free at http://www.finalemusic.com/products/finale-notepad/resources)
INSTRUCTIONS FOR INSTALLATION
-
Parts of this program depend on the open-source Music21 library for converting files. Download and install Music21 at https://code.google.com/p/music21/downloads/list. Follow the instructions to properly configure the library. Music21 should be installed globally.
-
Get the files for das-harmonie from GitHub (git clone).
-
You should now have a folder titled "das-harmonie." Move into the parent directory ("cd ..").
-
Run the program with code like this!
>>> python das-harmonie inputfile.xml -B --mus
Arguments
- das-harmonie
- name of file containing melody
- style of accompaniment
- format of output score
Accepted file types
- 'xml'
- 'mxl'
- 'abc' --> only used in music21 corpus: http://web.mit.edu/music21/doc/systemReference/referenceCorpus.html
Code | Style of accompaniment |
---|---|
-B | Block chords |
-A | Arppegiated chords |
Code | Possible output formats |
---|---|
--mus | Returned as a score in Finale NotePad |
PDF Document (requires LilyPond - see above) | |
--lily.pdf | PDF Document (same functionality as --pdf) |
--lily | PNG file (also requires LilyPond) |
--text | Prints the output to the terminal in music21 notation |
--debug | Can be used to turn on debug functionality. Will not print a score. |