- Python 3.8 or above
- Installing all the packages under requirement.txt
- To visually display a Midi file, install MuseScore.
- run this command to config music21 library to detech MuseScore:
from music21 import * configure.run()
- Base model is named
classic-bach-1-note-generation
python training.py
will start the training model processpython testing.py
will start the music generating process- the model is saved to corresponded folder under
model/
andoutput/
- Base model is named
classic-bach-4-notes-harmonization
python training_4features.py
will start the training model processpython testing_4features.py
will start the music generating process- the model is saved to corresponded folder under
model/
andoutput/
- All the midi files are stored under
output/
- The
testing
script will always create a new sample, and try to display the sample on MuseScore