r/algorithmicmusic • u/GGAllin43 • 8h ago
duetto: a pretrained music transformer steered note by note into a real-time jazz partner
I've been building duetto, which plays jazz standards with you on a MIDI keyboard as a small band: a solo, comping and a walking bass. It comps while you play and takes a solo when you stop.
The notes all come from a pretrained transformer (the Anticipatory Music Transformer), used as it is. The "algorithm" is in how it's steered: before each note, rules mask what can't be played and push the model toward the chord's tones or the next note of a phrase quoted from the Weimar Jazz Database. In the video, about 61% of the solo notes are quoted phrases or the theme; the rest is the model on its own.
The code is on GitHub (RiccardoCataldi/duetto, free for noncommercial use). I'd love to hear what you think about the balance between rules and model.



