andreasjansson / music-inpainting-bert

Joint melody and chord inpainting model using BERT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joint melody and chord inpainting with BERT

Model

This project uses a custom BERT model that is masking both melody and chords in the same piece of music.

Data representation

The model takes as input beat-quantized chord labels and beat-quantized melodic patterns.

Melodic patterns

Melodies are split into beat-sized chunks, where each chunk is quantized to 16th notes. The chunks are stored in a look-up table.

Dataset

The model is trained on the Wikifonia dataset.

About

Joint melody and chord inpainting model using BERT

License:MIT License


Languages

Language:Python 100.0%