- add
\midi {}
line to\score {}
section - click
LilyPond - Engrave
- check if there is now line like
MIDI output to 'example.midi'...
inLilyPond Log
window - see also https://www.frescobaldi.org/uguide#help_ts_midi_generate
- install package
fluidsynth
andsoundfont-fluid
to your system - create symlink
sudo ln -s /usr/share/soundfonts/FluidR3_GM.sf2 /usr/share/soundfonts/default.sf2
- create service file
~/.config/systemd/user/fluidsynth.service
with content as follows - start service
systemctl --user daemon-reload; systemctl --user start fluidsynth.service
- select
Edit - Preferences - MIDI Settings - Player output: FluidSynth
- jfyi,
Close unusend MIDI output
is a recommended option - (feel free to restart Frescobaldi)
- click
LilyPond - Engrave
- click play in
MIDI player
window (Tools - MIDI - MIDI Player
) and hear the music! - see also https://github.com/frescobaldi/frescobaldi/wiki/MIDI-playback-on-Linux and https://wiki.archlinux.org/title/FluidSynth