Skip to content

generate counter point melody given cantus firmus using LSTM model.

Notifications You must be signed in to change notification settings

AdamLauz/counterpoint-generator-lstm

Repository files navigation

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.

About

generate counter point melody given cantus firmus using LSTM model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages