arXiv:2503.09055cs.SDeess.AS2025-03

用网页实现14位高精度MIDI远程传输,支持跨设备音乐控制

Zero to 16383 Through the Wire: Transmitting High- Resolution MIDI with WebSockets and the Browser

  • 通过双通道控制消息打包14位MIDI数据,实现在浏览器中传输
  • 利用WebSocket实现全球范围内的多端实时同步,无需本地网络
  • 可直接控制本地或远程的合成器等音乐软件,适合远程协作场景

本文介绍如何利用Web MIDI API和网页技术,将JavaScript中的数值转换为最高有效字节与最低有效字节组合,以双并发控制变化消息形式暂存,并通过WebSockets发送至多个终端。该方法支持用户通过14位MIDI消息远程控制本机或远程应用。由于采用WebSocket,连接不依赖本地网络,实现了全球范围内的远程软件控制与协作。相比其他网页控制方案,Web MIDI API能无缝接入操作系统级MIDI功能,提供更流畅的用户体验。论文展示了一个实际案例:在浏览器中传输高分辨率MIDI数据,并将其转换为控制电压信号,用于驱动模块化合成器。

原文摘要 · Abstract (English)

This paper outlines how to leverage the Web MIDI API and web technologies to convert numerical data in JavaScript to Most Significant Byte and Least Significant Byte combos, stage the data as dual concurrent CC messages, use WebSockets to send it to multiple endpoints, and wire the browser to other music software. This method allows users to control their own native application via 14-bit MIDI messaging and even applications housed on a remote source. Because the technology utilizes WebSockets, it is not reliant on local networks for connectivity and opens the possibilities of remote software control and collaboration anywhere in the world. While no shortage of options exists for controlling music software from the web, the Web MIDI API allows for a more streamlined end user experience as it seamlessly links to core OS MIDI functionality. The paper will share a use case of transmitting high-resolution MIDI through the browser and translating it to control voltage data for use with a modular synthesizer.

MIDIWeb音频远程控制模块化合成器

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。