Generate counter point melody given cantus firmus using LSTM model. This project is based on [1] by Valerio Velardo.
LSTM (Long Short-Term Memory) [2] model is trained on sequences of cantus firmus and counter point melodies.
MusicXML Dataset for training the LSTM model is from http://www.mscorelib.com. Sample of about 100 Bach's pieces are included in this project.
Input: Sub-section of "Autumn Leaves" by Joseph Kosma ("cantus.mxl"):
Output: The input melody with counter point in Bach's style ("melody.mid")
[1] Valerio Velardo. https://github.com/musikalkemist/generating-melodies-with-rnn-lstm
[2] Hochreiter, S. and Schmidhuber, J., 1997. Long short-term memory. Neural computation, 9(8), pp.1735-1780.