Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.21 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.21 KB

counterpoint-generator-lstm

Generate counter point melody given cantus firmus using LSTM model. This project is based on [1] by Valerio Velardo.

Model

LSTM (Long Short-Term Memory) [2] model is trained on sequences of cantus firmus and counter point melodies.

Data

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-Output Example

Input: Sub-section of "Autumn Leaves" by Joseph Kosma ("cantus.mxl"): image

Output: The input melody with counter point in Bach's style ("melody.mid") image

Video Demo

References

[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.