This is the code repository for our paper Phrase-Level Symbolic Music Generation.
You may download the digital scores in kern format and prepare the Sonata Dataset used in the paper, or prepare your own dataset.
- Data collection: download the musical scores in the Humdrum **kern data format. See
sonata-dataset/README.mdfor more details on the classical piano sonata collected in this dataset. - Preprocess: See
./src/preprocess/README.mdfor more details.
```
python3 train.py
```
- Prepare test set with the test samples in
sonata-dataset/example_test_info.json.python3 prepare_testset.py - Inference
python3 inference.py
If you find this repo useful, please cite our paper.
@article{Feng2024Phrase,
author = {Feng, Yijing and Sahin, Egemen and Casey, Michael A.},
journal = {AIMC 2024 (09/09 - 11/09 )},
year = {2024},
month = {aug 29},
note = {https://aimc2024.pubpub.org/pub/2e7q3cpr},
publisher = {},
title = {Phrase-{Level} {Symbolic} {Music} {Generation}},
}