Generating Metal Riffs with Transformers

Sample MIDI generated from the first six notes:

A metal song consists of a list of riffs (short melodies that are repeated). In a metal song, each riff has its distinct identity and the beginnings and ends of riffs are usually clear, whereas some classical music has long passages of free flowing melodies that blend into each other.

Problem: There is no good model to generate instrumentals for metal.

My Approach: .

Data and Model.

Using the same six notes for prompt as the previous sample but increasing the temperature, the model produced something dissonant that reminds me of modern technical death metal: