Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何让 pygame 在没有连接 midi 设备的情况下产生 midi 声音?喜欢通过使用soundFonts?
我试过了
import pygame from pygame import midi import time output = midi.Output(0) output.set_instrument(0) output.note_on(64)
期待它产生声音,尽管我怀疑它试图将 midi 事件输出到设备,但这并不存在。