预训练音乐模型用MIDI实时引导伴奏
一名开发者展示了 Duetto:系统无需训练或微调,即可利用实时 MIDI 键盘输入引导预训练的 Anticipatory Music Transformer。它会跟踪调性、和弦与速度,调整采样 logits,并在演奏者更换和弦时重新采样,运行于 Jetson Orin Nano。开发者称控制参数均靠听感手动调节,并已公开项目代码。
该项目展示了对预训练符号音乐模型进行推理时引导、而非追加训练来实现实时交互的可能性,但演示与性能细节目前仅来自一名开发者。
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