我正在使用外部声音字体播放 MusicStrings,一切正常。当我使用 player.saveMidi(etc, etc) 时,文件会使用原始 MIDI soundfont 保存。
Soundbank soundbank = MidiSystem.getSoundbank(new File("SGM-V2.01.sf2"));
Synthesizer synth = MidiSystem.getSynthesizer();
synth.open();
synth.loadAllInstruments(soundbank);
Player player = new Player(synth);
Pattern pattern = new Pattern("C5majw C5majw C5majw");
player.play(pattern); // works fine with external soundbank
player.saveMidi(pattern, filename); //Doesn't save with external soundbank instruments
是否有任何解决方法或支持此功能的内置功能?
谢谢!