Pretrained Music Transformer Jams Live With Steering-Only MIDI Controls
A developer demonstrated Duetto, a system that steers the pretrained Anticipatory Music Transformer with live MIDI keyboard input without training or fine-tuning. It tracks key, chord and tempo, biases the sampling logits, and resamples when the player changes chords, running on a Jetson Orin Nano. The creator says the control offsets were hand-tuned by ear and released the project’s code.
The project shows that a pretrained symbolic music model can respond interactively through inference-time steering rather than additional training, although the demonstration and performance details come from one developer.
I wanted to see how far you can get making a pretrained symbolic music model "listen" to a live player without training it. Turns out pretty far.
Setup: I play a MIDI keyboard, the Anticipatory Music Transformer (Thickstun et al., music-medium-800k) plays a second piano. While I play I track my key, the chord I'm holding and my tempo, and add biases to the logits before sampling. Out-of-key notes get pushed down, chord tones and tensions get pushed up, the keys right around my hands get pushed down so it doesn't step on me, and when I stop it gets pulled up to where a melody would be. There's also a small boost for continuing the intervals of my last phrase, which makes it sound like it's answering.
It samples about a second ahead, and when I change chord I throw away what it had planned and resample. Runs on a Jetson Orin Nano.
Video + code: https://github.com/RiccardoCataldi/duetto
The offsets are all hand-tuned by ear, which feels a bit dumb. Has anyone tried something more principled for this, like a small learned conditioning head or guidance-style tricks on a symbolic model?
submitted by /u/GGAllin43 [link] [comments]
#Duetto#Anticipatory Music Transformer#music-medium-800k#NVIDIA Jetson Orin Nano