arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.07612cs.SDcs.AI
收藏

实时人机音乐合奏:基于潜在扩散模型和MAX/MSP的伴奏生成

Towards Real-Time Human-AI Musical Co-Performance: Accompaniment Generation with Latent Diffusion Models and MAX/MSP

University of California San Diego(加州大学圣迭戈分校)

Tornike Karchkhadze, Shlomo Dubnov

AI总结:

本文提出实时人机音乐合奏框架,利用潜在扩散模型生成伴奏,结合MAX/MSP实时音频处理与Python服务器,实现低延迟的伴奏生成与评估。

摘要:

我们提出一个实时人机音乐合奏框架,其中潜在扩散模型根据实时音频流生成伴奏。系统结合MAX/MSP前端处理实时音频输入、缓冲和播放,与Python推理服务器通过OSC/UDP消息通信。这使音乐家能够在MAX/MSP环境中演奏,同时与大型Python生成模型交互,克服了实时音乐工具与先进AI模型之间的根本性断层。我们将伴奏生成建模为滑动窗口前瞻协议,训练模型根据部分上下文预测未来音频,其中系统延迟是关键约束。为减少延迟,我们对扩散模型应用一致性蒸馏,实现采样时间减少5.4倍,两种模型均实现实时操作。在音乐连贯性、节拍对齐和音频质量上评估,两种模型在回顾模式中表现优异,随着前瞻深度增加而逐渐退化。这些结果证明了基于扩散的实时伴奏可行性,并暴露了此类系统必须权衡的模型延迟、前瞻深度和生成质量的根本性折衷。

英文摘要:

We present a framework for real-time human-AI musical co-performance, in which a latent diffusion model generates instrumental accompaniment in response to a live stream of context audio. The system combines a MAX/MSP front-end-handling real-time audio input, buffering, and playback-with a Python inference server running the generative model, communicating via OSC/UDP messages. This allows musicians to perform in MAX/MSP - a well-established, real-time capable environment - while interacting with a large-scale Python-based generative model, overcoming the fundamental disconnect between real-time music tools and state-of-the-art AI models. We formulate accompaniment generation as a sliding-window look-ahead protocol, training the model to predict future audio from partial context, where system latency is a critical constraint. To reduce latency, we apply consistency distillation to our diffusion model, achieving a 5.4x reduction in sampling time, with both models achieving real-time operation. Evaluated on musical coherence, beat alignment, and audio quality, both models achieve strong performance in the Retrospective regime and degrade gracefully as look-ahead increases. These results demonstrate the feasibility of diffusion-based real-time accompaniment and expose the fundamental trade-off between model latency, look-ahead depth, and generation quality that any such system must navigate.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑