HANCOC: Harmonically Adding New Chords On Composition

• Sep 16, 2018 - 15:47

HANCOC, the short for Harmonically Adding New Chords On Composition is a python tool that takes a Music XML file (a computer file format that stores musical score) as input and outputs the same file with chord notations added. These chord notations are being generated by a machine learning model based on the melody in the score.

The blog post about it is here:
https://wallylay.wordpress.com/2018/09/03/user-guide-to-hancoc-harmonic…

Also, the zip file is the same as the one in the GitHub repository. Downloading it here should be more convenient.

Attachment Size
HANCOC-master.zip 30.58 KB

Comments

In reply to by mike320

It might look similar, and the working process has some parallel, but this is for single-note melody. Therefore, it requires knowledge of harmonics, and that's why I use machine learning. If you already have multiple notes, the algorithm is way easier because we all know that a measure with D, F#, and A notes probably goes by Dmaj. This task I'm doing is different from simply identifying, but adding. With only the single-note melody as the input, this is more subjective at times, and there has only been one research paper in the history of human race published regarding this task by Seoul University in October 2017. I started working on this in June 2017, so both are unprecedented innovations.

In reply to by 張旋

It would be great if you could provide a webservice that accept a MusicXML file and send back a MusicXML file with chordnames. We could then write a plugin for MuseScore, similar to the ABC converter plugin, that can automate saving the score to MusicXML, sending it to your webservice and opening the resulting MusicXML.

This setting would lower the barrier for user to try your algorithm and you could see what kind of melodies are being sent and maybe what chordnames are expected.

Do you still have an unanswered question? Please log in first to post your question.