启用 MIDI 编辑器在 Linux 上播放 MIDI 文件(无需外部音乐设备)

启用 MIDI 编辑器在 Linux 上播放 MIDI 文件(无需外部音乐设备)

我无法在 Linux 上使用以下编辑器播放 MIDI 文件:拖拉机或者Midi编辑器. 为什么它不起作用甚高频液晶可以播放这些 MIDI 文件吗?

细节:

我可以甚高频液晶.mid通过安装以下内容在 Ubuntu 22.04 LTS 上播放文件:

sudo apt-get install fluid-soundfont-gm fluid-soundfont-gs
sudo apt-get install vlc-plugin-fluidsynth 

但是,我无法让它们在某些 MIDI 编辑器上播放,例如 Midi编辑器拖拉机。问题总是相同的 - 它找不到 MIDI 输出设备。我不想使用任何外部硬件输出设备。相反,我希望以与 VLC 相同的方式使用软件合成器 (fluidsynth)。

例如,使用 Qtractor 我得到了这个错误

The audio/MIDI engine could not be initialized. Make sure the JACK audio server (jackd) and/or the ALSA Sequencer kernel module (snd-seq-midi) are up and running and then restart the session.

我试图通过安装qsynthqjackctl按照说明来解决这个问题这里。但出于某种我不明白的原因,我无法做到。终端输出:

myComputer:~/SW$ sudo apt install qsynth

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 midieditor : Depends: qtbase5-dev but it is not going to be installed
              Depends: qtdeclarative5-dev but it is not going to be installed
              Depends: libqt5webkit5-dev but it is not going to be installed
              Depends: libsqlite3-dev but it is not going to be installed
              Depends: qt5-default but it is not installable
              Depends: qtmultimedia5-dev but it is not going to be installed
              Depends: qttools5-dev-tools
              Depends: libqt5multimedia5-plugins but it is not going to be installed
              Depends: gstreamer1.0-plugins-bad but it is not going to be installed
              Depends: gstreamer1.0-doc but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

答案1

好的,我找到了解决方案。也许这对遇到类似问题的人有帮助:

  • 此问题:You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:是由损坏的MidiEditor软件包引起的,当我卸载它时它apt开始正常工作
  • 然后我安装了也sudo apt-get install fluidsynth安装了的qsynth
  • 我意识到qsynth抱怨JACK服务器不工作
  • 所以我安装了sudo apt install qjackctl
    • 它向我征求许可,即时的内核权限。我不确定那是什么,但我遵守了。
  • Qtractor 现在不会抱怨,但我仍然听不到任何声音(MIDI 似乎在播放,但却是无声的)
  • 所以我查看了 QsynthSetup...按钮,发现Soundfonts选项卡是空的。所以我使用按钮.sf2在那里添加了一些文件Open...
  • 我重启了 Qtractor,现在可以正常传输 MIDI 文件了

相关内容