如何更改 pygame 或流体合成器的预设声音字体?
我使用 Python 3.7.3、pygame 2.0.1、fluidsynth 1.1.11 来播放 Midi 文件。当我调用 pygame.mixer.music.load(<midi_filepath>) 时,我收到一些流体合成错误:
fluidsynth: error: Unable to open file "/usr/share/sounds/sf3/FluidR3Mono_GM.sf3" fluidsynth: error: Couldn't load soundfont file fluidsynth: error: Failed to load SoundFont "/usr/share/sounds/sf3/FluidR3Mono_GM.sf3" fluidsynth: error: Unable to open file "/usr/share/sounds/sf2/TimGM6mb.sf2" fluidsynth: error: Couldn't load soundfont file fluidsynth: error: Failed to load SoundFont "/usr/share/sounds/sf2/TimGM6mb.sf2"
这些声音字体文件不在我的设备上。所以我想将流体合成器指向另一个声音字体。如何在 PyGame 中更改流体合成器的预设声音字体?