Final Project of Music and Math (PKU 2023 Autumn)
- install requirements with following command
pip install -r requirements.txt
- put your midi files under folder data, these will be the initial population.
- run pipeline
python pipeline.py
- check results in folder result/midis
- choose one midi file, run following command to get chords that matches the melody.
python pipeline.py --mode test --id $your-midi-id$
You can find a .mp3 file in folder doc. We generated it with our codes, and manually add chords given by our program.